summaryrefslogtreecommitdiff
path: root/CydiaAppliance.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-10-28 02:25:18 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2010-11-01 22:56:25 -0700
commite17a8c4f2ae16f8daab460936a9b130d024173dd (patch)
tree1544816ffb283219f2de45b0a8e99d6f7ebe24f6 /CydiaAppliance.mm
parent6067f1b8116d8fb2502359f430b9d958e10807b9 (diff)
Rename Cydia.* to MobileCydia.* and add Cydia.frappliance.
Diffstat (limited to 'CydiaAppliance.mm')
-rw-r--r--CydiaAppliance.mm67
1 files changed, 67 insertions, 0 deletions
diff --git a/CydiaAppliance.mm b/CydiaAppliance.mm
new file mode 100644
index 0000000..8214617
--- /dev/null
+++ b/CydiaAppliance.mm
@@ -0,0 +1,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