summaryrefslogtreecommitdiff
path: root/CydiaAppliance.mm
blob: 6ac3f42f5d9e3c746d7cd8b1a347b38b25ab6ccc (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
#import <BackRow/BRAppliance.h>
#import <BackRow/BRApplianceCategory.h>
#import <BackRow/BRBaseAppliance.h>
#import <BackRow/BRTopShelfController.h>
#import <BackRow/BRTopShelfView.h>
#import <BackRow/BRViewController.h>

#include <CydiaSubstrate/CydiaSubstrate.h>

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

@end

@implementation CydiaTopShelfController

- (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