]> git.saurik.com Git - cydia.git/blob - UICaboodle/RVPage.h
Add cydia.setBadgeValue() for tab badges.
[cydia.git] / UICaboodle / RVPage.h
1 #import <UICaboodle/UCPlatform.h>
2
3 #import <UIKit/UIKit.h>
4
5 @interface UIViewController (Cydia)
6 - (BOOL) hasLoaded;
7 - (void) reloadData;
8 - (void) unloadData;
9 @end
10
11 @interface CYViewController : UIViewController {
12 _transient id delegate_;
13 BOOL loaded_;
14 }
15
16 // The default implementation of this method is essentially a no-op,
17 // but calling the superclass implementation is *required*.
18 - (void) reloadData;
19
20 - (void) unloadData;
21
22 // This URL is used to save the state of the view controller. Return
23 // nil if you cannot or should not save the URL for this page.
24 - (NSURL *) navigationURL;
25
26 // By default, this delegate is unused. However, it's provided here in case
27 // you need some kind of delegate in a subclass.
28 - (void) setDelegate:(id)delegate;
29 - (id) delegate;
30
31 // Override this in subclasses if you manage the "has seen first load" state yourself.
32 - (BOOL) hasLoaded;
33
34 // This is called when the view managed by the view controller is released.
35 // That is not always when the controller itself is released: it also can
36 // happen when more memory is needed by the system or whenever the controller
37 // just happens not to be visible.
38 - (void) releaseSubviews;
39
40 @end