7 #ifndef __gammu_backup_h 8 #define __gammu_backup_h 28 #ifdef GSM_ENABLE_BACKUP 35 #define GSM_BACKUP_MAX_SMS 100000 59 GSM_Error GSM_ReadSMSBackupFile(
const char *FileName, GSM_SMS_Backup * backup);
71 GSM_Error GSM_AddSMSBackupFile(
const char *FileName, GSM_SMS_Backup * backup);
80 void GSM_ClearSMSBackup(GSM_SMS_Backup * backup);
89 void GSM_FreeSMSBackup(GSM_SMS_Backup * backup);
98 #define GSM_BACKUP_MAX_PHONEPHONEBOOK 1001 106 #define GSM_BACKUP_MAX_SIMPHONEBOOK 251 114 #define GSM_BACKUP_MAX_CALLER 101 122 #define GSM_BACKUP_MAX_SMSC 10 130 #define GSM_BACKUP_MAX_WAPBOOKMARK 40 138 #define GSM_BACKUP_MAX_WAPSETTINGS 30 146 #define GSM_BACKUP_MAX_MMSSETTINGS 30 154 #define GSM_BACKUP_MAX_SYNCMLSETTINGS 30 162 #define GSM_BACKUP_MAX_CHATSETTINGS 30 170 #define GSM_BACKUP_MAX_RINGTONES 30 178 #define GSM_BACKUP_MAX_PROFILES 10 186 #define GSM_BACKUP_MAX_FMSTATIONS 20 194 #define GSM_BACKUP_MAX_GPRSPOINT 10 202 #define GSM_BACKUP_MAX_NOTE 50 233 char MD5Original[100];
237 char MD5Calculated[100];
253 GSM_Bitmap *CallerLogos[GSM_BACKUP_MAX_CALLER + 1];
257 GSM_SMSC *SMSC[GSM_BACKUP_MAX_SMSC + 1];
289 GSM_Profile *Profiles[GSM_BACKUP_MAX_PROFILES + 1];
331 GSM_Backup_AutoUnicode = 1,
340 GSM_Backup_VCalendar,
366 GSM_Backup_GammuUCS2,
384 GSM_Error GSM_SaveBackupFile(
char *FileName, GSM_Backup * Backup,
385 GSM_BackupFormat Format);
397 GSM_BackupFormat GSM_GuessBackupFormat(
const char *FileName,
412 GSM_Error GSM_ReadBackupFile(
const char *FileName, GSM_Backup * backup,
413 GSM_BackupFormat Format);
422 void GSM_ClearBackup(GSM_Backup * backup);
431 void GSM_FreeBackup(GSM_Backup * backup);
471 void GSM_GetBackupFormatFeatures(GSM_BackupFormat Format,
472 GSM_Backup_Info * info);
483 void GSM_GetBackupFileFeatures(GSM_BackupFormat Format, GSM_Backup_Info * info,
484 GSM_Backup * backup);
#define GSM_MAX_VERSION_LENGTH
#define GSM_MAX_MODEL_LENGTH
#define GSM_MAX_IMEI_LENGTH
#define GSM_MAXCALENDARTODONOTES