OpenAFS
OpenAFS distributed network file system
/cygdrive/c/src/openafs/openafs.git/repo/src/platform/DARWIN/growlagent/GrowlDefines.h
00001 //
00002 //  GrowlDefines.h
00003 //
00004 
00005 #ifndef _GROWLDEFINES_H
00006 #define _GROWLDEFINES_H
00007 
00008 #ifdef __OBJC__
00009 #define XSTR(x) (@x)
00010 #define STRING_TYPE NSString *
00011 #else
00012 #define XSTR CFSTR
00013 #define STRING_TYPE CFStringRef
00014 #endif
00015 
00026 // UserInfo Keys for Registration
00027 #pragma mark UserInfo Keys for Registration
00028 
00030 /*      @abstract       Keys for the userInfo dictionary of a GROWL_APP_REGISTRATION distributed notification.
00031  *      @discussion The values of these keys describe the application and the
00032  *       notifications it may post.
00033  *
00034  *       Your application must register with Growl before it can post Growl
00035  *       notifications (and have them not be ignored). However, as of Growl 0.6,
00036  *       posting GROWL_APP_REGISTRATION notifications directly is no longer the
00037  *       preferred way to register your application. Your application should instead
00038  *       use Growl.framework's delegate system.
00039  *       See +[GrowlApplicationBridge setGrowlDelegate:] or Growl_SetDelegate for
00040  *       more information.
00041  */
00042 
00050 #define GROWL_APP_NAME                                  XSTR("ApplicationName")
00051 
00058 #define GROWL_APP_ID                                    XSTR("ApplicationId")
00059 
00069 #define GROWL_APP_ICON                                  XSTR("ApplicationIcon")
00070 
00077 #define GROWL_NOTIFICATIONS_DEFAULT             XSTR("DefaultNotifications")
00078 
00084 #define GROWL_NOTIFICATIONS_ALL                 XSTR("AllNotifications")
00085 
00094 #define GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES                XSTR("HumanReadableNames")
00095 
00103 #define GROWL_NOTIFICATIONS_DESCRIPTIONS                XSTR("NotificationDescriptions")
00104 
00110 #define GROWL_TICKET_VERSION                    XSTR("TicketVersion")
00111 // UserInfo Keys for Notifications
00112 #pragma mark UserInfo Keys for Notifications
00113 
00115 /*      @abstract       Keys for the userInfo dictionary of a GROWL_NOTIFICATION distributed notification.
00116  *      @discussion The values of these keys describe the content of a Growl
00117  *       notification.
00118  *
00119  *       Not all of these keys are supported by all displays. Only the name, title,
00120  *       and description of a notification are universal. Most of the built-in
00121  *       displays do support all of these keys, and most other visual displays
00122  *       probably will also. But, as of 0.6, the Log, MailMe, and Speech displays
00123  *       support only textual data.
00124  */
00125 
00132 #define GROWL_NOTIFICATION_NAME                 XSTR("NotificationName")
00133 
00138 #define GROWL_NOTIFICATION_TITLE                XSTR("NotificationTitle")
00139 
00145 #define GROWL_NOTIFICATION_DESCRIPTION          XSTR("NotificationDescription")
00146 
00152 #define GROWL_NOTIFICATION_ICON                 XSTR("NotificationIcon")
00153 
00160 #define GROWL_NOTIFICATION_APP_ICON             XSTR("NotificationAppIcon")
00161 
00167 #define GROWL_NOTIFICATION_PRIORITY             XSTR("NotificationPriority")
00168 
00173 #define GROWL_NOTIFICATION_STICKY               XSTR("NotificationSticky")
00174 
00186 #define GROWL_NOTIFICATION_CLICK_CONTEXT                        XSTR("NotificationClickContext")
00187 
00196 #define GROWL_DISPLAY_PLUGIN                            XSTR("NotificationDisplayPlugin")
00197 
00207 #define GROWL_NOTIFICATION_IDENTIFIER   XSTR("GrowlNotificationIdentifier")
00208 
00216 #define GROWL_APP_PID                                   XSTR("ApplicationPID")
00217 
00225 #define GROWL_NOTIFICATION_PROGRESS             XSTR("NotificationProgress")
00226 
00227 // Notifications
00228 #pragma mark Notifications
00229 
00231 /*      @abstract       Names of distributed notifications used by Growl.
00232  *      @discussion     These are notifications used by applications (directly or
00233  *       indirectly) to interact with Growl, and by Growl for interaction between
00234  *       its components.
00235  *
00236  *       Most of these should no longer be used in Growl 0.6 and later, in favor of
00237  *       Growl.framework's GrowlApplicationBridge APIs.
00238  */
00239 
00258 #define GROWL_APP_REGISTRATION                  XSTR("GrowlApplicationRegistrationNotification")
00259 
00265 #define GROWL_APP_REGISTRATION_CONF             XSTR("GrowlApplicationRegistrationConfirmationNotification")
00266 
00290 #define GROWL_NOTIFICATION                              XSTR("GrowlNotification")
00291 
00296 #define GROWL_SHUTDOWN                                  XSTR("GrowlShutdown")
00297 
00302 #define GROWL_PING                                              XSTR("Honey, Mind Taking Out The Trash")
00303 
00307 #define GROWL_PONG                                              XSTR("What Do You Want From Me, Woman")
00308 
00315 #define GROWL_IS_READY                                  XSTR("Lend Me Some Sugar; I Am Your Neighbor!")
00316 
00323 #define GROWL_NOTIFICATION_CLICKED              XSTR("GrowlClicked!")
00324 #define GROWL_NOTIFICATION_TIMED_OUT    XSTR("GrowlTimedOut!")
00325 
00327 /* Symbols which don't fit into any of the other categories. */
00328 
00334 #define GROWL_KEY_CLICKED_CONTEXT               XSTR("ClickedContext")
00335 
00343 #define GROWL_REG_DICT_EXTENSION                XSTR("growlRegDict")
00344 
00345 
00346 #define GROWL_POSITION_PREFERENCE_KEY                   @"GrowlSelectedPosition"
00347 
00348 #endif //ndef _GROWLDEFINES_H
 All Data Structures Files Functions Variables