From: Jay Freeman (saurik) Date: Mon, 2 Nov 2009 23:28:53 +0000 (+0000) Subject: Added currentConfiguration mechanism. X-Git-Tag: v0.9.4000~64 X-Git-Url: https://git.saurik.com/cydget.git/commitdiff_plain/d8165c742ecad32dcc2350d4b5386cc38c9dcb10 Added currentConfiguration mechanism. --- diff --git a/Tweak.mm b/Tweak.mm index e07af3b..9ac3ba0 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -58,6 +58,21 @@ static unsigned lock_; static _H cydgets_; static size_t active_ = _not(size_t); +@interface CydgetController : NSObject { +} + ++ (NSDictionary *) currentConfiguration; + +@end + +@implementation CydgetController + ++ (NSDictionary *) currentConfiguration { + return active_ == _not(size_t) ? nil : [[cydgets_ objectAtIndex:active_] objectForKey:@"Configuration"]; +} + +@end + @interface NSDictionary (Cydgets) - (void) enableCydget:(SBAwayController *)away; - (void) disableCydget:(SBAwayController *)away; diff --git a/control b/control index 0a4aebd..f1bebcf 100644 --- a/control +++ b/control @@ -3,7 +3,7 @@ Priority: optional Section: Tweaks Maintainer: Jay Freeman (saurik) Architecture: iphoneos-arm -Version: 0.9.3065-1 +Version: 0.9.3066-1 Description: framework for managing lock screen plugins Name: Cydget Depends: mobilesubstrate (>= 0.9.2587-1)