summaryrefslogtreecommitdiff
path: root/CydiaAppliance.mm
blob: 821461733d6c6bfdf7521434c16c7c76002929e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#import <BackRow/BRAppliance.h>
#import <BackRow/BRApplianceCategory.h>
#import <BackRow/BRBaseAppliance.h>
#import <BackRow/BRTopShelfController.h>
#import <BackRow/BRTopShelfView.h>
#import <BackRow/BRViewController.h>

@interface CydiaTopShelfController : NSObject <BRTopShelfController> {
    BRTopShelfView *view_;
}

@end

@implementation CydiaTopShelfController

- (void) dealloc {
    [view_ release];

    [super dealloc];
}

- (BRTopShelfView *) topShelfView {
    return view_;
}

- (void) selectCategoryWithIdentifier:(NSString *)identifier {
}

@end


@interface CydiaManageViewController : BRViewController {
}
@end

@implementation CydiaManageViewController
@end


@interface CydiaAppliance : BRBaseAppliance {
}
@end

@implementation CydiaAppliance

- (id) applianceCategories {
    return [NSArray arrayWithObjects:
        [BRApplianceCategory categoryWithName:@"Install" identifier:@"cydia-install" preferredOrder:0],
        [BRApplianceCategory categoryWithName:@"Manage" identifier:@"cydia-manage" preferredOrder:0],
        [BRApplianceCategory categoryWithName:@"Search" identifier:@"cydia-search" preferredOrder:0],
    nil];
}

- (id) controllerForIdentifier:(NSString *)identifier args:(NSDictionary *)args {
    return nil;
}

- (id) topShelfController {
    return [[[CydiaTopShelfController alloc] init] autorelease];
}

- (int) noContentBRError {
    // XXX: research
    return 0;
}

@end