summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2012-09-08 14:15:31 (GMT)
committerTobias Markmann <tm@ayena.de>2012-09-09 10:35:57 (GMT)
commit9d55b647520acc73742695517615f96165ecc8f5 (patch)
treebeac966766e6835ade79881f2c13deb7fec1fb53 /SwifTools/Notifier/NotificationCenterNotifierDelegate.h
parent60b1599f5f3d11db2842ecb0bc05208225167b01 (diff)
downloadswift-contrib-tobias/notification-center.zip
swift-contrib-tobias/notification-center.tar.bz2
Initial version of ML's NotificationCenter support.tobias/notification-center
Diffstat (limited to 'SwifTools/Notifier/NotificationCenterNotifierDelegate.h')
-rw-r--r--SwifTools/Notifier/NotificationCenterNotifierDelegate.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/SwifTools/Notifier/NotificationCenterNotifierDelegate.h b/SwifTools/Notifier/NotificationCenterNotifierDelegate.h
new file mode 100644
index 0000000..0db4370
--- /dev/null
+++ b/SwifTools/Notifier/NotificationCenterNotifierDelegate.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2012 Tobias Markmann
+ * Licensed under the simplified BSD license.
+ * See Documentation/Licenses/BSD-simplified.txt for more information.
+ */
+
+#import <Foundation/NSUserNotification.h>
+
+namespace Swift {
+ class NotificationCenterNotifier;
+}
+
+@interface NotificationCenterNotifierDelegate : NSObject<NSUserNotificationCenterDelegate> {
+ Swift::NotificationCenterNotifier* notifier;
+}
+
+@property (nonatomic) Swift::NotificationCenterNotifier* notifier;
+
+- (void) userNotificationCenter:(NSUserNotificationCenter *) center didActivateNotification:(NSUserNotification *) notification;
+
+@end