forked from KOed/welly
-
Notifications
You must be signed in to change notification settings - Fork 1
/
WLGrowlBridge.h
54 lines (45 loc) · 2.02 KB
/
WLGrowlBridge.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// TYGrowlBridge.h
// Welly
//
// Created by aqua9 on 20/3/2008.
// Copyright 2008 TANG Yang. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <Growl/GrowlApplicationBridge.h>
NSString *const WLGrowlNotificationNameFileTransfer;
NSString *const WLGrowlNotificationNameEXIFInformation;
NSString *const WLGrowlNotificationNameNewMessageReceived;
#define kGrowlNotificationNameFileTransfer NSLocalizedString(WLGrowlNotificationNameFileTransfer, @"Growl Notification Name")
#define kGrowlNotificationNameEXIFInformation NSLocalizedString(WLGrowlNotificationNameEXIFInformation, @"Growl Notification Name")
#define kGrowlNotificationNameNewMessageReceived NSLocalizedString(WLGrowlNotificationNameNewMessageReceived, @"Growl Notification Name")
@interface WLGrowlBridge : NSObject <GrowlApplicationBridgeDelegate>
// iconData:nil priority:0 isSticky:NO
+ (void)notifyWithTitle:(NSString *)title
description:(NSString *)description
notificationName:(NSString *)notifName;
// iconData:nil priority:0
// identifier can be any object, not restricted to NSString
+ (void)notifyWithTitle:(NSString *)title
description:(NSString *)description
notificationName:(NSString *)notifName
isSticky:(BOOL)isSticky
identifier:(id)identifier;
+ (void)notifyWithTitle:(NSString *)title
description:(NSString *)description
notificationName:(NSString *)notifName
isSticky:(BOOL)isSticky
clickContext:(id)clickContext
clickSelector:(SEL)clickSelector
identifier:(id)identifier;
// clickContext can be any object, not restricted to plist-encodable
+ (void)notifyWithTitle:(NSString *)title
description:(NSString *)description
notificationName:(NSString *)notifName
iconData:(NSData *)iconData
priority:(signed int)priority
isSticky:(BOOL)isSticky
clickContext:(id)clickContext
clickSelector:(SEL)clickSelector
identifier:(id)identifier;
@end