diff options
Diffstat (limited to 'Source/SPGrowlController.h')
-rw-r--r-- | Source/SPGrowlController.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Source/SPGrowlController.h b/Source/SPGrowlController.h index 707f6601..cd0f1ded 100644 --- a/Source/SPGrowlController.h +++ b/Source/SPGrowlController.h @@ -26,22 +26,38 @@ #import <Cocoa/Cocoa.h> #import <Growl/Growl.h> +#define SP_LONGRUNNING_NOTIFICATION_TIME 3.0 + @interface SPGrowlController : NSObject <GrowlApplicationBridgeDelegate> +{ + NSString *timingNotificationName; + double timingNotificationStart; +} // Singleton controller + (SPGrowlController *)sharedGrowlController; // Post notification - (void)notifyWithTitle:(NSString *)title - description:(NSString *)description + description:(NSString *)description + window:(NSWindow *)window notificationName:(NSString *)name; +- (void)notifyWithObject:(NSDictionary *)notificationDictionary; + - (void)notifyWithTitle:(NSString *)title description:(NSString *)description + window:(NSWindow *)window notificationName:(NSString *)name iconData:(NSData *)data priority:(int)priority isSticky:(BOOL)sticky clickContext:(id)clickContext; +// Receive notification click +- (void) growlNotificationWasClicked:(NSDictionary *)clickContext; + +// Timing functions +- (void) setVisibilityForNotificationName:(NSString *)name; +- (double) milliTime; @end |