From d8165c742ecad32dcc2350d4b5386cc38c9dcb10 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 2 Nov 2009 23:28:53 +0000 Subject: [PATCH] Added currentConfiguration mechanism. --- Tweak.mm | 15 +++++++++++++++ control | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) 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) -- 2.7.4