+ (NSString *) webScriptNameForSelector:(SEL)selector {
if (false);
+ else if (selector == @selector(addTrivialSource:))
+ return @"addTrivialSource";
else if (selector == @selector(close))
return @"close";
else if (selector == @selector(du:))
return @"installPackages";
else if (selector == @selector(localizedStringForKey:value:table:))
return @"localize";
+ else if (selector == @selector(refreshSources))
+ return @"refreshSources";
else if (selector == @selector(setButtonImage:withStyle:toFunction:))
return @"setButtonImage";
else if (selector == @selector(setButtonTitle:withStyle:toFunction:))
return [feature isEqualToString:@"window.open"];
}
+- (void) addTrivialSource:(NSString *)href {
+ [delegate_ addTrivialSource:href];
+}
+
+- (void) refreshSources {
+ [delegate_ performSelectorOnMainThread:@selector(syncData) withObject:nil waitUntilDone:NO];
+}
+
- (NSArray *) getInstalledPackages {
NSArray *packages([[Database sharedInstance] packages]);
NSMutableArray *installed([NSMutableArray arrayWithCapacity:1024]);