30 #ifndef _SML_NOTIFICATION_H_ 31 #define _SML_NOTIFICATION_H_ 34 SML_SAN_VERSION_UNKNOWN = 0,
35 SML_SAN_VERSION_10 = 1,
36 SML_SAN_VERSION_11 = 2,
37 SML_SAN_VERSION_12 = 3
38 } SmlNotificationVersion;
41 SML_SAN_UIMODE_UNSPECIFIED = 0,
42 SML_SAN_UIMODE_BACKGROUND = 1,
43 SML_SAN_UIMODE_INFORMATIVE = 2,
44 SML_SAN_UIMODE_USER = 3
45 } SmlNotificationUIMode;
48 SML_SAN_INITIATOR_USER = 0,
49 SML_SAN_INITIATOR_SERVER = 1
50 } SmlNotificationInitiator;
52 SmlNotification *smlNotificationNew(SmlNotificationVersion version, SmlNotificationUIMode mode, SmlNotificationInitiator init,
unsigned int sessionID,
const char *identifier,
const char *target, SmlMimeType type,
SmlError **error);
60 SmlBool smlNotificationNewAlert(
SmlNotification *san, SmlAlertType type,
const char *contenttype,
const char *serverURI,
SmlError **error);
65 SmlNotificationInitiator smlNotificationGetInitiator(
SmlNotification *san);
71 SmlAlertType smlSanAlertGetType(
SmlSanAlert *alert);
72 const char *smlSanAlertGetContentType(
SmlSanAlert *alert);
73 const char *smlSanAlertGetServerURI(
SmlSanAlert *alert);
75 #endif //_SML_NOTIFICATION_H_