return @"du";
else if (selector == @selector(stringWithFormat:arguments:))
return @"format";
+ else if (selector == @selector(getAllSources))
+ return @"getAllSourcs";
else if (selector == @selector(getInstalledPackages))
return @"getInstalledPackages";
else if (selector == @selector(getPackageById:))
[delegate_ performSelectorOnMainThread:@selector(syncData) withObject:nil waitUntilDone:NO];
}
+- (NSArray *) getAllSources {
+ return [[Database sharedInstance] sources];
+}
+
- (NSArray *) getInstalledPackages {
NSArray *packages([[Database sharedInstance] packages]);
NSMutableArray *installed([NSMutableArray arrayWithCapacity:1024]);