forked from KOed/welly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WLGrowlBridge.h
45 lines (36 loc) · 1.62 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
//
// 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>
extern NSString *const WLGrowlNotificationNameFileTransfer;
extern NSString *const WLGrowlNotificationNameEXIFInformation;
extern 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>
+ (BOOL)isMistEnabled;
// 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
clickTarget:(id)clickContext
clickSelector:(SEL)clickSelector
identifier:(id)identifier;
@end