diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-12-23 22:35:52 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-12-23 22:43:52 (GMT) |
commit | 5862dcdf8dc6e1bb160693ad6a5ca0609ddb990a (patch) | |
tree | 0f999c987daef5468eae9e2b8e7cd6ddf3c2c110 /SwifTools/Notifier/GrowlNotifierDelegate.mm | |
parent | 732253a9b3e88b99b36dd3298157cf502f743294 (diff) | |
download | swift-contrib-5862dcdf8dc6e1bb160693ad6a5ca0609ddb990a.zip swift-contrib-5862dcdf8dc6e1bb160693ad6a5ca0609ddb990a.tar.bz2 |
Updated Growl notifier to work against Growl 1.3.
Diffstat (limited to 'SwifTools/Notifier/GrowlNotifierDelegate.mm')
-rw-r--r-- | SwifTools/Notifier/GrowlNotifierDelegate.mm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/SwifTools/Notifier/GrowlNotifierDelegate.mm b/SwifTools/Notifier/GrowlNotifierDelegate.mm new file mode 100644 index 0000000..c7f725f --- /dev/null +++ b/SwifTools/Notifier/GrowlNotifierDelegate.mm @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2011 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#import "GrowlNotifierDelegate.h" + +#include <SwifTools/Notifier/GrowlNotifier.h> + +@implementation GrowlNotifierDelegate; + +@synthesize registrationDictionary; +@synthesize name; + +using namespace Swift; + +- (NSString *) applicationNameForGrowl { + return name; +} + +- (NSDictionary*) registrationDictionaryForGrowl { + return registrationDictionary; +} + +- (void) growlNotificationWasClicked: (id) clickContext { + notifier->handleNotificationClicked(clickContext); +} + +- (void) growlNotificationTimedOut: (id) clickContext { + notifier->handleNotificationTimedOut(clickContext); +} + +@end |