]> git.saurik.com Git - cydia.git/blame - CydiaAppliance.mm
ConfirmationController cancel doesn't work for ReInstall.
[cydia.git] / CydiaAppliance.mm
CommitLineData
e17a8c4f
JF
1#import <BackRow/BRAppliance.h>
2#import <BackRow/BRApplianceCategory.h>
3#import <BackRow/BRBaseAppliance.h>
4#import <BackRow/BRTopShelfController.h>
5#import <BackRow/BRTopShelfView.h>
6#import <BackRow/BRViewController.h>
7
8@interface CydiaTopShelfController : NSObject <BRTopShelfController> {
9 BRTopShelfView *view_;
10}
11
12@end
13
14@implementation CydiaTopShelfController
15
16- (void) dealloc {
17 [view_ release];
18
19 [super dealloc];
20}
21
22- (BRTopShelfView *) topShelfView {
23 return view_;
24}
25
26- (void) selectCategoryWithIdentifier:(NSString *)identifier {
27}
28
29@end
30
31
32@interface CydiaManageViewController : BRViewController {
33}
34@end
35
36@implementation CydiaManageViewController
37@end
38
39
40@interface CydiaAppliance : BRBaseAppliance {
41}
42@end
43
44@implementation CydiaAppliance
45
46- (id) applianceCategories {
47 return [NSArray arrayWithObjects:
48 [BRApplianceCategory categoryWithName:@"Install" identifier:@"cydia-install" preferredOrder:0],
49 [BRApplianceCategory categoryWithName:@"Manage" identifier:@"cydia-manage" preferredOrder:0],
50 [BRApplianceCategory categoryWithName:@"Search" identifier:@"cydia-search" preferredOrder:0],
51 nil];
52}
53
54- (id) controllerForIdentifier:(NSString *)identifier args:(NSDictionary *)args {
55 return nil;
56}
57
58- (id) topShelfController {
59 return [[[CydiaTopShelfController alloc] init] autorelease];
60}
61
62- (int) noContentBRError {
63 // XXX: research
64 return 0;
65}
66
67@end