Gammu internals
1.38.0
|
#include <gammu-message.h>
Go to the source code of this file.
Macros | |
#define | SM30_ISOTEXT 0 /* ISO 8859-1 text */ |
#define | SM30_UNICODETEXT 1 |
#define | SM30_OTA 2 |
#define | SM30_RINGTONE 3 |
#define | SM30_PROFILENAME 4 |
#define | SM30_SCREENSAVER 6 |
#define | ALCATELTDD_PICTURE 4 |
#define | ALCATELTDD_ANIMATION 5 |
#define | ALCATELTDD_SMSTEMPLATE 6 |
Functions | |
GSM_Error | GSM_AddSMS_Text_UDH (GSM_Debug_Info *di, GSM_MultiSMSMessage *SMS, GSM_Coding_Type Coding, char *Buffer, size_t BufferLen, gboolean UDH, size_t *UsedText, size_t *CopiedText, size_t *CopiedSMSText) |
void | GSM_MakeMultiPartSMS (GSM_Debug_Info *di, GSM_MultiSMSMessage *SMS, unsigned char *MessageBuffer, size_t MessageLength, GSM_UDH UDHType, GSM_Coding_Type Coding, int Class, unsigned char RejectDuplicates) |
void | GSM_Find_Free_Used_SMS2 (GSM_Debug_Info *di, GSM_Coding_Type Coding, GSM_SMSMessage *SMS, size_t *UsedText, size_t *FreeText, size_t *FreeBytes) |
unsigned char | GSM_MakeSMSIDFromTime (void) |
gboolean | GSM_DecodeMMSIndication (GSM_Debug_Info *di, GSM_MultiPartSMSInfo *Info, GSM_MultiSMSMessage *SMS) |
#define ALCATELTDD_ANIMATION 5 |
Definition at line 26 of file gsmmulti.h.
Referenced by GSM_EncodeMultiPartSMS().
#define ALCATELTDD_PICTURE 4 |
Definition at line 25 of file gsmmulti.h.
Referenced by GSM_EncodeMultiPartSMS().
#define ALCATELTDD_SMSTEMPLATE 6 |
Definition at line 27 of file gsmmulti.h.
Referenced by GSM_EncodeMultiPartSMS().
#define SM30_ISOTEXT 0 /* ISO 8859-1 text */ |
Definition at line 16 of file gsmmulti.h.
Referenced by GSM_DecodeNokiaProfile(), and GSM_EncodeSMS30MultiPartSMS().
#define SM30_OTA 2 |
Definition at line 18 of file gsmmulti.h.
Referenced by GSM_DecodeNokiaProfile(), and GSM_EncodeSMS30MultiPartSMS().
#define SM30_PROFILENAME 4 |
Definition at line 20 of file gsmmulti.h.
Referenced by GSM_DecodeNokiaProfile(), and GSM_EncodeSMS30MultiPartSMS().
#define SM30_RINGTONE 3 |
Definition at line 19 of file gsmmulti.h.
Referenced by GSM_DecodeNokiaProfile(), and GSM_EncodeSMS30MultiPartSMS().
#define SM30_SCREENSAVER 6 |
Definition at line 22 of file gsmmulti.h.
Referenced by GSM_DecodeNokiaProfile(), and GSM_EncodeSMS30MultiPartSMS().
#define SM30_UNICODETEXT 1 |
Definition at line 17 of file gsmmulti.h.
Referenced by GSM_DecodeNokiaProfile(), and GSM_EncodeSMS30MultiPartSMS().
GSM_Error GSM_AddSMS_Text_UDH | ( | GSM_Debug_Info * | di, |
GSM_MultiSMSMessage * | SMS, | ||
GSM_Coding_Type | Coding, | ||
char * | Buffer, | ||
size_t | BufferLen, | ||
gboolean | UDH, | ||
size_t * | UsedText, | ||
size_t * | CopiedText, | ||
size_t * | CopiedSMSText | ||
) |
Definition at line 212 of file gsmmulti.c.
References AlignSegmentForContent(), ERR_NONE, FindDefaultAlphabetLen(), GSM_Find_Free_Used_SMS2(), GSM_UDHHeader::Length, GSM_SMSMessage::Length, GSM_MultiSMSMessage::Number, smfprintf(), GSM_MultiSMSMessage::SMS, SMS_Coding_8bit, SMS_Coding_Default_No_Compression, SMS_Coding_Unicode_No_Compression, GSM_UDHHeader::Text, GSM_SMSMessage::Text, GSM_UDHHeader::Type, GSM_SMSMessage::UDH, UDH_UserUDH, and UnicodeLength().
Referenced by GSM_EncodeEMSMultiPartSMS(), and GSM_MakeMultiPartSMS().
gboolean GSM_DecodeMMSIndication | ( | GSM_Debug_Info * | di, |
GSM_MultiPartSMSInfo * | Info, | ||
GSM_MultiSMSMessage * | SMS | ||
) |
Decodes long MMS notification SMS.
Definition at line 981 of file gsmmulti.c.
References GSM_MMSIndicator::Address, GSM_MMSIndicator::Class, dbgprintf, DumpMessage(), GSM_MultiPartSMSInfo::Entries, GSM_MultiPartSMSInfo::EntriesNum, FALSE, GSM_MAX_MULTI_SMS, GSM_MAX_SMS_LENGTH, GSM_MMS_Advertisement, GSM_MMS_Auto, GSM_MMS_Info, GSM_MMS_None, GSM_MMS_Personal, GSM_MultiPartSMSEntry::ID, GSM_SMSMessage::Length, GSM_MMSIndicator::MessageSize, GSM_MultiPartSMSEntry::MMSIndicator, GSM_MultiSMSMessage::Number, GSM_MMSIndicator::Sender, GSM_MultiSMSMessage::SMS, SMS_MMSIndicatorLong, GSM_UDHHeader::Text, GSM_SMSMessage::Text, GSM_MMSIndicator::Title, TRUE, GSM_UDHHeader::Type, GSM_SMSMessage::UDH, UDH_MMSIndicatorLong, and UDH_UserUDH.
Referenced by GSM_DecodeEMSMultiPartSMS(), and GSM_DecodeMultiPartSMS().
void GSM_Find_Free_Used_SMS2 | ( | GSM_Debug_Info * | di, |
GSM_Coding_Type | Coding, | ||
GSM_SMSMessage * | SMS, | ||
size_t * | UsedText, | ||
size_t * | FreeText, | ||
size_t * | FreeBytes | ||
) |
Definition at line 37 of file gsmmulti.c.
References FindDefaultAlphabetLen(), GSM_MAX_8BIT_SMS_LENGTH, GSM_UDHHeader::Length, GSM_SMSMessage::Length, smfprintf(), SMS_Coding_8bit, SMS_Coding_Default_No_Compression, SMS_Coding_Unicode_No_Compression, GSM_SMSMessage::Text, GSM_SMSMessage::UDH, and UnicodeLength().
Referenced by GSM_AddSMS_Text_UDH(), GSM_EncodeEMSMultiPartSMS(), and GSM_SMSCounter().
void GSM_MakeMultiPartSMS | ( | GSM_Debug_Info * | di, |
GSM_MultiSMSMessage * | SMS, | ||
unsigned char * | MessageBuffer, | ||
size_t | MessageLength, | ||
GSM_UDH | UDHType, | ||
GSM_Coding_Type | Coding, | ||
int | Class, | ||
unsigned char | RejectDuplicates | ||
) |
Definition at line 305 of file gsmmulti.c.
References GSM_UDHHeader::AllParts, GSM_SMSMessage::Class, GSM_SMSMessage::Coding, FALSE, GSM_AddSMS_Text_UDH(), GSM_EncodeUDHHeader(), GSM_GetCurrentDateTime(), GSM_MakeSMSIDFromTime(), GSM_MAX_MULTI_SMS, GSM_SetDefaultSMSData(), GSM_DateTime::Hour, GSM_UDHHeader::ID16bit, GSM_UDHHeader::ID8bit, GSM_MultiSMSMessage::Number, GSM_UDHHeader::PartNumber, GSM_SMSMessage::ReplaceMessage, smfprintf(), GSM_MultiSMSMessage::SMS, SMS_Coding_8bit, GSM_UDHHeader::Type, and GSM_SMSMessage::UDH.
Referenced by GSM_EncodeMultiPartSMS(), and GSM_SMSCounter().
unsigned char GSM_MakeSMSIDFromTime | ( | void | ) |
Definition at line 21 of file gsmmulti.c.
References GSM_GetCurrentDateTime(), GSM_DateTime::Minute, and GSM_DateTime::Second.
Referenced by GSM_EncodeAlcatelMultiPartSMS(), GSM_EncodeEMSMultiPartSMS(), and GSM_MakeMultiPartSMS().