Gammu internals
1.38.0
|
#include <ctype.h>
#include <string.h>
#include <time.h>
#include <gammu-calendar.h>
#include <gammu-message.h>
#include <gammu-unicode.h>
#include <gammu-debug.h>
#include "../../misc/coding/coding.h"
#include "../../debug.h"
Go to the source code of this file.
Variables | |
static GSM_UDHHeader | UDHHeaders [] |
|
static |
Definition at line 89 of file gsmsms.c.
References CheckDate(), CheckTime(), GSM_DateTime::Day, DecodeWithBCDAlphabet(), ERR_NONE, GSM_DateTime::Hour, GSM_DateTime::Minute, GSM_DateTime::Month, OSDateTime(), GSM_DateTime::Second, smfprintf(), GSM_DateTime::Timezone, TRUE, and GSM_DateTime::Year.
Referenced by GSM_DecodePDUFrame(), and GSM_DecodeSMSFrame().
GSM_Error GSM_DecodeSMSStatusReportData | ( | GSM_Debug_Info * | di, |
GSM_SMSMessage * | SMS, | ||
int | TP_ST | ||
) |
Definition at line 384 of file gsmsms.c.
References GSM_SMSMessage::Coding, GSM_SMSMessage::DeliveryStatus, EncodeUnicode(), ERR_NONE, GSM_SMSMessage::Length, smfprintf(), SMS_Coding_Unicode_No_Compression, and GSM_SMSMessage::Text.
Referenced by GSM_DecodePDUFrame(), and GSM_DecodeSMSFrameStatusReportData().
|
static |
Definition at line 909 of file gsmsms.c.
References GSM_DateTime::Day, EncodeWithBCDAlphabet(), ERR_NONE, GSM_DateTime::Hour, GSM_DateTime::Minute, GSM_DateTime::Month, OSDate(), GSM_DateTime::Second, smfprintf(), and GSM_DateTime::Year.
Referenced by GSM_EncodeSMSFrame().
|
static |
Definition at line 934 of file gsmsms.c.
References GSM_SMSMessage::Coding, DecodeUnicodeString(), DumpMessageText(), EncodeDefault(), EncodeUnicodeSpecialNOKIAChars(), GSM_SMSMessageLayout::firstbyte, GSM_MAX_8BIT_SMS_LENGTH, GSM_PackSevenBitsToEight(), GSM_UDHHeader::Length, GSM_SMSMessage::Length, MIN, smfprintf(), SMS_Coding_8bit, SMS_Coding_Default_No_Compression, SMS_Coding_Unicode_No_Compression, GSM_UDHHeader::Text, GSM_SMSMessage::Text, GSM_SMSMessageLayout::Text, GSM_SMSMessageLayout::TPDCS, GSM_SMSMessageLayout::TPUDL, TRUE, GSM_UDHHeader::Type, GSM_SMSMessage::UDH, UDH_NoUDH, and UnicodeLength().
Referenced by GSM_EncodeSMSFrame().
GSM_Coding_Type GSM_GetMessageCoding | ( | GSM_Debug_Info * | di, |
const char | TPDCS | ||
) |
Finds out coding type based on TPDCS header byte as defined by GSM 03.38.
Definition at line 261 of file gsmsms.c.
References smfprintf(), SMS_Coding_8bit, SMS_Coding_Default_Compression, SMS_Coding_Default_No_Compression, SMS_Coding_Unicode_Compression, and SMS_Coding_Unicode_No_Compression.
Referenced by GSM_DecodePDUFrame(), and GSM_DecodeSMSFrame().
const char* GSM_SMSCodingToString | ( | GSM_Coding_Type | type | ) |
Converts SMS coding to string.
Definition at line 1284 of file gsmsms.c.
References SMS_Coding_8bit, SMS_Coding_Default_Compression, SMS_Coding_Default_No_Compression, SMS_Coding_Unicode_Compression, and SMS_Coding_Unicode_No_Compression.
GSM_Coding_Type GSM_StringToSMSCoding | ( | const char * | s | ) |
Converts SMS coding to type.
Definition at line 1260 of file gsmsms.c.
References SMS_Coding_8bit, SMS_Coding_Default_Compression, SMS_Coding_Default_No_Compression, SMS_Coding_Unicode_Compression, and SMS_Coding_Unicode_No_Compression.
|
static |