- GSM_NoUDH,
- GSM_ConcatenatedMessages,
- GSM_OpLogo,
- GSM_CallerIDLogo,
- GSM_RingtoneUDH,
- GSM_EnableVoice,
- GSM_DisableVoice,
- GSM_EnableEmail,
- GSM_DisableEmail,
- GSM_EnableFax,
- GSM_DisableFax,
- GSM_VoidSMS,
- GSM_HangSMS,
- GSM_BugSMS,
- GSM_UnknownUDH, //Gnokii doesn't know this UDH
- GSM_WAPBookmarkUDH,
- GSM_WAPBookmarkUDHLong,
- GSM_WAPSettingsUDH,
- GSM_CalendarNoteUDH,
- GSM_CalendarNoteUDH2,
- GSM_PhonebookUDH,
- GSM_ProfileUDH,
-} GSM_UDH;
-
-/* Define datatype for SMS messages, used for getting SMS messages from the
- phones memory. */
-typedef struct {
- GSM_Coding_Type Coding;
- GSM_DateTime Time; /* Date of reception/response of messages. */
- GSM_DateTime SMSCTime; /* Date of SMSC response if DeliveryReport messages. */
- int Length; /* Length of the SMS message. */
- int Validity; /* Validity Period of the SMS message. */
- GSM_UDH UDHType; /* If UDH is present - type of UDH */
- unsigned char UDH[GSM_MAX_USER_DATA_HEADER_LENGTH]; /* If UDH is present - content of UDH */
- unsigned char MessageText[GSM_MAX_SMS_LENGTH + 1]; /* Room for null term. */
- GSM_MessageCenter MessageCenter; /* SMS Center. */
- char Sender[GSM_MAX_SENDER_LENGTH + 1]; /* Sender of the SMS message. */
- char Destination[GSM_MAX_DESTINATION_LENGTH+1];/* Destination of the message. */
- int MessageNumber; /* Location in the memory, where SMS is saved */
- GSM_MemoryType MemoryType; /* Type of memory message is stored in. */
- GSM_SMSMessageType Type; /* Type of the SMS message */
- GSM_SMSMessageStatus Status; /* Status of the SMS message */
- int Class; /* Class Message: 0, 1, 2, 3 or none; see GSM 03.38 */
- bool Compression; /* Indicates whether SMS contains compressed data */
- int Location; /* Location in the memory, when save SMS */
- bool ReplyViaSameSMSC; /* Indicates whether "Reply via same center" is set */
- int folder; /* Folder: 0-Inbox,1-Outbox, etc. */
- bool SMSData; /* if folder contains sender, SMSC number and sending date */
- unsigned char Name[25+1]; /* Name in Nokia 6210/7110, etc. Ignored in other */
-} GSM_SMSMessage;
+ SMS_NoUDH = 0x00,
+ SMS_ConcatenatedMessages = 0x01,
+ SMS_OpLogo = 0x02,
+ SMS_CallerIDLogo = 0x03,
+ SMS_Ringtone = 0x04,
+ SMS_VoiceMessage = 0x05,
+ SMS_FaxMessage = 0x06,
+ SMS_EmailMessage = 0x07,
+ SMS_OtherMessage = 0x08,
+ SMS_UnknownUDH = 0x09
+} SMS_UDHType;