UNCUserNotification.h [plain text]
#ifndef _UNCUSERNOTIFICATION_H_
#define _UNCUSERNOTIFICATION_H_
typedef struct __UNCUserNotification *UNCUserNotificationRef;
extern UNCUserNotificationRef UNCUserNotificationCreate(double timeout, unsigned long flags, int *error, const char **contents);
extern int UNCUserNotificationReceiveResponse(UNCUserNotificationRef userNotification, double timeout, unsigned long *responseFlags);
extern const char *UNCUserNotificationGetResponseValue(UNCUserNotificationRef userNotification, const char *key, unsigned long index);
extern const char **UNCUserNotificationGetResponseContents(UNCUserNotificationRef userNotification);
extern int UNCUserNotificationUpdate(UNCUserNotificationRef userNotification, double timeout, unsigned long flags, const char **contents);
extern int UNCUserNotificationCancel(UNCUserNotificationRef userNotification);
extern void UNCUserNotificationFree(UNCUserNotificationRef userNotification);
extern int UNCDisplayNotice(double timeout, unsigned long flags, const char *iconPath, const char *soundPath, const char *localizationPath, const char *alertHeader, const char *alertMessage, const char *defaultButtonTitle);
extern int UNCDisplayAlert(double timeout, unsigned long flags, const char *iconPath, const char *soundPath, const char *localizationPath, const char *alertHeader, const char *alertMessage, const char *defaultButtonTitle, const char *alternateButtonTitle, const char *otherButtonTitle, unsigned long *responseFlags);
enum {
kUNCStopAlertLevel = 0,
kUNCNoteAlertLevel = 1,
kUNCCautionAlertLevel = 2,
kUNCPlainAlertLevel = 3
};
enum {
kUNCDefaultResponse = 0,
kUNCAlternateResponse = 1,
kUNCOtherResponse = 2,
kUNCCancelResponse = 3
};
enum {
kUNCNoDefaultButtonFlag = (1 << 5),
kUNCUseRadioButtonsFlag = (1 << 6)
};
#define UNCCheckBoxChecked(i) (1 << (8 + i))
#define UNCSecureTextField(i) (1 << (16 + i))
#define UNCPopUpSelection(n) (n << 24)
extern const char kUNCIconPathKey[];
extern const char kUNCSoundPathKey[];
extern const char kUNCLocalizationPathKey[];
extern const char kUNCAlertHeaderKey[];
extern const char kUNCDefaultButtonTitleKey[];
extern const char kUNCAlternateButtonTitleKey[];
extern const char kUNCOtherButtonTitleKey[];
extern const char kUNCProgressIndicatorValueKey[];
extern const char kUNCAlertMessageKey[];
extern const char kUNCPopUpTitlesKey[];
extern const char kUNCTextFieldTitlesKey[];
extern const char kUNCCheckBoxTitlesKey[];
extern const char kUNCTextFieldValuesKey[];
extern const char kUNCPopUpSelectionKey[];
#endif