-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGrowlApplicationNotification.h
72 lines (55 loc) · 2.23 KB
/
GrowlApplicationNotification.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//
// GrowlApplicationNotification.h
// Growl
//
// Created by Mac-arena the Bored Zo on 2005-07-31.
// Copyright 2005-2006 The Growl Project. All rights reserved.
//
@interface GrowlApplicationNotification: NSObject
{
NSString *name, *applicationName;
NSString *title, *description;
NSAttributedString *attributedTitle, *attributedDescription;
NSDictionary *dictionary, *auxiliaryDictionary;
unsigned GANReserved: 30;
}
+ (GrowlApplicationNotification *) notificationWithDictionary:(NSDictionary *)dict;
- (GrowlApplicationNotification *) initWithDictionary:(NSDictionary *)dict;
//you can pass nil for description.
- (GrowlApplicationNotification *) initWithName:(NSString *)newName
applicationName:(NSString *)newAppName
title:(NSString *)newTitle
description:(NSString *)newDesc;
//you can pass nil for description.
- (GrowlApplicationNotification *) initWithName:(NSString *)newName
applicationName:(NSString *)newAppName
title:(NSString *)newTitle
description:(NSString *)newDesc;
#pragma mark -
/*as of 0.8, this returns:
* * GROWL_NOTIFICATION_NAME
* * GROWL_APP_NAME
* * GROWL_NOTIFICATION_TITLE
* * GROWL_NOTIFICATION_DESCRIPTION
*you can pass this set to -dictionaryRepresentationWithKeys:.
*/
+ (NSSet *) standardKeys;
//same as dictionaryRepresentationWithKeys:nil.
- (NSDictionary *) dictionaryRepresentation;
/*with nil, returns all of the standard keys plus the auxiliary dictionary.
*with non-nil, returns only the keys (from internal storage plus the auxiliary
* dictionary) that are in the set.
*in other words, returns the intersection of the standard dictionary keys, the
* auxiliary dictionary, and the provided keys.
*/
- (NSDictionary *) dictionaryRepresentationWithKeys:(NSSet *)keys;
#pragma mark -
- (NSString *) name;
- (NSString *) applicationName;
- (NSString *) title;
- (NSAttributedString *) attributedTitle;
- (NSString *) notificationDescription;
- (NSAttributedString *) attributedDescription;
- (NSDictionary *) auxiliaryDictionary;
- (void) setAuxiliaryDictionary:(NSDictionary *)newAuxDict;
@end