2 // GrowlApplicationNotification.h
5 // Created by Mac-arena the Bored Zo on 2005-07-31.
6 // Copyright 2005-2006 The Growl Project. All rights reserved.
9 @interface GrowlApplicationNotification: NSObject
11 NSString *name, *applicationName;
12 NSString *title, *description;
13 NSAttributedString *attributedTitle, *attributedDescription;
15 NSDictionary *dictionary, *auxiliaryDictionary;
17 unsigned GANReserved: 30;
20 + (GrowlApplicationNotification *) notificationWithDictionary:(NSDictionary *)dict;
22 - (GrowlApplicationNotification *) initWithDictionary:(NSDictionary *)dict;
24 //you can pass nil for description.
25 - (GrowlApplicationNotification *) initWithName:(NSString *)newName
26 applicationName:(NSString *)newAppName
27 title:(NSString *)newTitle
28 description:(NSString *)newDesc;
30 //you can pass nil for description.
31 - (GrowlApplicationNotification *) initWithName:(NSString *)newName
32 applicationName:(NSString *)newAppName
33 title:(NSString *)newTitle
34 description:(NSString *)newDesc;
38 /*as of 0.8, this returns:
39 * * GROWL_NOTIFICATION_NAME
41 * * GROWL_NOTIFICATION_TITLE
42 * * GROWL_NOTIFICATION_DESCRIPTION
43 *you can pass this set to -dictionaryRepresentationWithKeys:.
45 + (NSSet *) standardKeys;
47 //same as dictionaryRepresentationWithKeys:nil.
48 - (NSDictionary *) dictionaryRepresentation;
50 /*with nil, returns all of the standard keys plus the auxiliary dictionary.
51 *with non-nil, returns only the keys (from internal storage plus the auxiliary
52 * dictionary) that are in the set.
53 *in other words, returns the intersection of the standard dictionary keys, the
54 * auxiliary dictionary, and the provided keys.
56 - (NSDictionary *) dictionaryRepresentationWithKeys:(NSSet *)keys;
61 - (NSString *) applicationName;
64 - (NSAttributedString *) attributedTitle;
66 - (NSString *) notificationDescription;
67 - (NSAttributedString *) attributedDescription;
69 - (NSDictionary *) auxiliaryDictionary;
70 - (void) setAuxiliaryDictionary:(NSDictionary *)newAuxDict;