8 #include "../gsmstate.h" 9 #include "../misc/coding/coding.h" 10 #include "../misc/locales.h" 11 #include "../service/gsmring.h" 72 smprintf(s,
"No SMSC in SMS Deliver\n");
107 switch (note.
Style) {
113 if (error !=
ERR_NONE)
return error;
114 usleep ((1400000000L/note.
Tempo*duration)-(7500000));
117 usleep(1400000000L/note.
Tempo*duration);
120 usleep(1400000000L/note.
Tempo*duration-50000);
122 if (error !=
ERR_NONE)
return error;
148 path = malloc(
MAX(strlen(
GAMMU_DATA_PATH), ExtraPath == NULL ? 0 : strlen(ExtraPath)) + 50);
153 if (ExtraPath != NULL) {
154 sprintf(path,
"%s/%s", ExtraPath, filename);
155 smprintf(s,
"Trying to load from extra path: %s\n", path);
165 smprintf(s,
"Trying to load from data path: %s\n", path);
int GSM_RingNoteGetFrequency(GSM_RingNote Note)
unsigned char Name[2 *(GSM_MAX_FILENAME_LENGTH+1)]
GSM_Error(* SetIncomingSMS)(GSM_StateMachine *s, gboolean enable)
GSM_Error GSM_SendFilePart(GSM_StateMachine *s, GSM_File *File, size_t *Pos, int *Handle)
GSM_Debug_Info * GSM_GetDI(GSM_StateMachine *s)
gboolean EnableIncomingCB
GSM_Error(* GetSMSC)(GSM_StateMachine *s, GSM_SMSC *smsc)
GSM_OneSMSFolder Folder[GSM_MAX_SMS_FOLDERS]
GSM_Error NoneReply(GSM_Protocol_Message *msg UNUSED, GSM_StateMachine *s)
GSM_SMSMessageLayout PHONE_SMSDeliver
GSM_Error PHONE_Terminate(GSM_StateMachine *s)
char Version[GSM_MAX_VERSION_LENGTH+1]
GSM_Error PHONE_RTTLPlayOneNote(GSM_StateMachine *s, GSM_RingNote note, gboolean first)
void StringToDouble(char *text, double *d)
void EncodeUnicode(unsigned char *dest, const char *src, size_t len)
GSM_Error PHONE_FindDataFile(GSM_StateMachine *s, GSM_File *File, const char *ExtraPath, const char *filename)
unsigned char Name[(GSM_MAX_SMS_FOLDER_NAME_LEN+1) *2]
int GSM_RingNoteGetFullDuration(GSM_RingNote Note)
GSM_Error PHONE_GetSMSFolders(GSM_StateMachine *s UNUSED, GSM_SMSFolders *folders)
unsigned char Number[(GSM_MAX_NUMBER_LENGTH+1) *2]
GSM_Error(* PlayTone)(GSM_StateMachine *s, int Herz, unsigned char Volume, gboolean start)
GSM_SMSMessageLayout PHONE_SMSStatusReport
GSM_Error GSM_ReadFile(const char *FileName, GSM_File *File)
GSM_Error(* SetIncomingCB)(GSM_StateMachine *s, gboolean enable)
GSM_Error GSM_EncodeSMSFrame(GSM_Debug_Info *di, GSM_SMSMessage *SMS, unsigned char *buffer, GSM_SMSMessageLayout Layout, int *length, gboolean clear)
GSM_Phone_Functions * Functions
GSM_SMSMessageLayout PHONE_SMSSubmit
void GSM_CreateFirmwareNumber(GSM_StateMachine *s)
GSM_Error PHONE_UploadFile(GSM_StateMachine *s, GSM_File *File)
gboolean EnableIncomingSMS
GSM_Error PHONE_EncodeSMSFrame(GSM_StateMachine *s, GSM_SMSMessage *SMS, unsigned char *buffer, GSM_SMSMessageLayout Layout, int *length, gboolean clear)
GSM_Error PHONE_Beep(GSM_StateMachine *s)
int smprintf(GSM_StateMachine *s, const char *format,...)