|
Gammu internals
1.38.0
|
#include <string.h>#include <stdio.h>#include <gammu-debug.h>#include <gammu-datetime.h>#include "gsmdata.h"#include "../misc/coding/coding.h"#include "../debug.h"
Go to the source code of this file.
Functions | |
| static void | AddWAPSMSParameterText (unsigned char *Buffer, size_t *Length, unsigned char ID, char *Text, int Len) |
| static void | AddWAPSMSParameterInt (unsigned char *Buffer, size_t *Length, unsigned char ID, unsigned char Value) |
| void | NOKIA_EncodeWAPMMSSettingsSMSText (unsigned char *Buffer, size_t *Length, GSM_WAPSettings *settings, gboolean MMS) |
| void | NOKIA_EncodeWAPBookmarkSMSText (unsigned char *Buffer, size_t *Length, GSM_WAPBookmark *bookmark) |
| void | GSM_EncodeWAPIndicatorSMSText (unsigned char *Buffer, size_t *Length, char *Text, char *URL) |
| GSM_Error | GSM_EncodeURLFile (unsigned char *Buffer, size_t *Length, GSM_WAPBookmark *bookmark) |
| void | GSM_EncodeMMSIndicatorSMSText (unsigned char *Buffer, size_t *Length, GSM_MMSIndicator *Indicator) |
| GSM_Error | GSM_ClearMMSMultiPart (GSM_EncodedMultiPartMMSInfo *info) |
| void | GSM_AddWAPMIMEType (int type, char *buffer) |
| GSM_Error | GSM_DecodeMMSFileToMultiPart (GSM_Debug_Info *di, GSM_File *file, GSM_EncodedMultiPartMMSInfo *info) |
|
static |
Definition at line 30 of file gsmdata.c.
Referenced by NOKIA_EncodeWAPMMSSettingsSMSText().
|
static |
Definition at line 14 of file gsmdata.c.
Referenced by NOKIA_EncodeWAPBookmarkSMSText(), and NOKIA_EncodeWAPMMSSettingsSMSText().
| void GSM_AddWAPMIMEType | ( | int | type, |
| char * | buffer | ||
| ) |
| void GSM_EncodeMMSIndicatorSMSText | ( | unsigned char * | Buffer, |
| size_t * | Length, | ||
| GSM_MMSIndicator * | Indicator | ||
| ) |
Definition at line 307 of file gsmdata.c.
References GSM_MMSIndicator::Address, GSM_MMSIndicator::Class, GSM_MMS_Advertisement, GSM_MMS_Auto, GSM_MMS_Info, GSM_MMS_INVALID, GSM_MMS_None, GSM_MMS_Personal, GSM_MMSIndicator::MessageSize, GSM_MMSIndicator::Sender, and GSM_MMSIndicator::Title.
Referenced by GSM_EncodeMultiPartSMS().
| void GSM_EncodeWAPIndicatorSMSText | ( | unsigned char * | Buffer, |
| size_t * | Length, | ||
| char * | Text, | ||
| char * | URL | ||
| ) |
Encodes WAP indicator message.
Produced output is WBXML, as defined in WAP-167.
Definition at line 233 of file gsmdata.c.
Referenced by GSM_EncodeMultiPartSMS().
| void NOKIA_EncodeWAPBookmarkSMSText | ( | unsigned char * | Buffer, |
| size_t * | Length, | ||
| GSM_WAPBookmark * | bookmark | ||
| ) |
Definition at line 190 of file gsmdata.c.
References GSM_WAPBookmark::Address, AddWAPSMSParameterText(), EncodeUTF8(), and GSM_WAPBookmark::Title.
Referenced by GSM_EncodeMultiPartSMS().
| void NOKIA_EncodeWAPMMSSettingsSMSText | ( | unsigned char * | Buffer, |
| size_t * | Length, | ||
| GSM_WAPSettings * | settings, | ||
| gboolean | MMS | ||
| ) |
Definition at line 41 of file gsmdata.c.
References AddWAPSMSParameterInt(), AddWAPSMSParameterText(), GSM_WAPSettings::Bearer, DecodeUnicodeString(), GSM_WAPSettings::DialUp, GSM_WAPSettings::HomePage, GSM_WAPSettings::IPAddress, GSM_WAPSettings::IsContinuous, GSM_WAPSettings::IsISDNCall, GSM_WAPSettings::IsNormalAuthentication, GSM_WAPSettings::IsSecurity, GSM_WAPSettings::ManualLogin, GSM_WAPSettings::Password, GSM_WAPSettings::Speed, GSM_WAPSettings::Title, UnicodeLength(), GSM_WAPSettings::User, WAPSETTINGS_BEARER_DATA, WAPSETTINGS_BEARER_GPRS, WAPSETTINGS_BEARER_SMS, WAPSETTINGS_BEARER_USSD, WAPSETTINGS_SPEED_14400, WAPSETTINGS_SPEED_9600, and WAPSETTINGS_SPEED_AUTO.
Referenced by GSM_EncodeMultiPartSMS().