Gammu internals  1.38.0
gammu-settings.h File Reference
#include <gammu-wap.h>
#include <gammu-limits.h>
Include dependency graph for gammu-settings.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GSM_SyncMLSettings
 
struct  GSM_ChatSettings
 
struct  GSM_Profile
 
struct  GSM_FMStation
 
struct  GSM_GPRSAccessPoint
 
struct  GSM_Locale
 
struct  GSM_Profile_PhoneTableValue
 

Enumerations

enum  GSM_ResetSettingsType {
  GSM_RESET_PHONESETTINGS = 1, GSM_RESET_USERINTERFACE, GSM_RESET_USERINTERFACE_PHONESETTINGS, GSM_RESET_DEVICE,
  GSM_RESET_FULLFACTORY
}
 
enum  GSM_Profile_Feat_Value {
  PROFILE_KEYPAD_LEVEL1 = 1, PROFILE_KEYPAD_LEVEL2, PROFILE_KEYPAD_LEVEL3, PROFILE_KEYPAD_OFF,
  PROFILE_CALLALERT_RINGING, PROFILE_CALLALERT_BEEPONCE, PROFILE_CALLALERT_OFF, PROFILE_CALLALERT_RINGONCE,
  PROFILE_CALLALERT_ASCENDING, PROFILE_CALLALERT_CALLERGROUPS, PROFILE_VOLUME_LEVEL1, PROFILE_VOLUME_LEVEL2,
  PROFILE_VOLUME_LEVEL3, PROFILE_VOLUME_LEVEL4, PROFILE_VOLUME_LEVEL5, PROFILE_MESSAGE_NOTONE,
  PROFILE_MESSAGE_STANDARD, PROFILE_MESSAGE_SPECIAL, PROFILE_MESSAGE_BEEPONCE, PROFILE_MESSAGE_ASCENDING,
  PROFILE_MESSAGE_PERSONAL, PROFILE_VIBRATION_OFF, PROFILE_VIBRATION_ON, PROFILE_VIBRATION_FIRST,
  PROFILE_WARNING_ON, PROFILE_WARNING_OFF, PROFILE_AUTOANSWER_ON, PROFILE_AUTOANSWER_OFF,
  PROFILE_LIGHTS_OFF, PROFILE_LIGHTS_AUTO, PROFILE_SAVER_ON, PROFILE_SAVER_OFF,
  PROFILE_SAVER_TIMEOUT_5SEC, PROFILE_SAVER_TIMEOUT_20SEC, PROFILE_SAVER_TIMEOUT_1MIN, PROFILE_SAVER_TIMEOUT_2MIN,
  PROFILE_SAVER_TIMEOUT_5MIN, PROFILE_SAVER_TIMEOUT_10MIN
}
 
enum  GSM_Profile_Feat_ID {
  Profile_KeypadTone = 1, Profile_CallAlert, Profile_RingtoneVolume, Profile_MessageTone,
  Profile_Vibration, Profile_WarningTone, Profile_AutoAnswer, Profile_Lights,
  Profile_ScreenSaverTime, Profile_ScreenSaver, Profile_ScreenSaverNumber, Profile_RingtoneID,
  Profile_MessageToneID, Profile_CallerGroups
}
 
enum  GSM_DateFormat {
  GSM_Date_DDMMYYYY = 1, GSM_Date_MMDDYYYY, GSM_Date_YYYYMMDD, GSM_Date_DDMMMYY,
  GSM_Date_MMDDYY, GSM_Date_DDMMYY, GSM_Date_YYMMDD, GSM_Date_OFF
}
 

Functions

GSM_Error GSM_GetLocale (GSM_StateMachine *s, GSM_Locale *locale)
 
GSM_Error GSM_SetLocale (GSM_StateMachine *s, GSM_Locale *locale)
 
GSM_Error GSM_GetSyncMLSettings (GSM_StateMachine *s, GSM_SyncMLSettings *settings)
 
GSM_Error GSM_SetSyncMLSettings (GSM_StateMachine *s, GSM_SyncMLSettings *settings)
 
GSM_Error GSM_GetChatSettings (GSM_StateMachine *s, GSM_ChatSettings *settings)
 
GSM_Error GSM_SetChatSettings (GSM_StateMachine *s, GSM_ChatSettings *settings)
 
GSM_Error GSM_GetMMSSettings (GSM_StateMachine *s, GSM_MultiWAPSettings *settings)
 
GSM_Error GSM_SetMMSSettings (GSM_StateMachine *s, GSM_MultiWAPSettings *settings)
 
GSM_Error GSM_SetAutoNetworkLogin (GSM_StateMachine *s)
 
GSM_Error GSM_Reset (GSM_StateMachine *s, gboolean hard)
 
GSM_Error GSM_ResetPhoneSettings (GSM_StateMachine *s, GSM_ResetSettingsType Type)
 
GSM_Error GSM_GetProfile (GSM_StateMachine *s, GSM_Profile *Profile)
 
GSM_Error GSM_SetProfile (GSM_StateMachine *s, GSM_Profile *Profile)
 
GSM_Error GSM_GetFMStation (GSM_StateMachine *s, GSM_FMStation *FMStation)
 
GSM_Error GSM_SetFMStation (GSM_StateMachine *s, GSM_FMStation *FMStation)
 
GSM_Error GSM_ClearFMStations (GSM_StateMachine *s)
 
GSM_Error GSM_GetGPRSAccessPoint (GSM_StateMachine *s, GSM_GPRSAccessPoint *point)
 
GSM_Error GSM_SetGPRSAccessPoint (GSM_StateMachine *s, GSM_GPRSAccessPoint *point)
 

Detailed Description

Author
Michal Čihař

Phone settings data and functions.

Definition in file gammu-settings.h.

Enumeration Type Documentation

§ GSM_DateFormat

Enumerator
GSM_Date_DDMMYYYY 
GSM_Date_MMDDYYYY 
GSM_Date_YYYYMMDD 
GSM_Date_DDMMMYY 
GSM_Date_MMDDYY 
GSM_Date_DDMMYY 
GSM_Date_YYMMDD 
GSM_Date_OFF 

Definition at line 156 of file gammu-settings.h.

§ GSM_Profile_Feat_ID

Enumerator
Profile_KeypadTone 
Profile_CallAlert 
Profile_RingtoneVolume 
Profile_MessageTone 
Profile_Vibration 
Profile_WarningTone 
Profile_AutoAnswer 
Profile_Lights 
Profile_ScreenSaverTime 
Profile_ScreenSaver 
Profile_ScreenSaverNumber 
Profile_RingtoneID 
Profile_MessageToneID 
Profile_CallerGroups 

Definition at line 97 of file gammu-settings.h.

§ GSM_Profile_Feat_Value

Enumerator
PROFILE_KEYPAD_LEVEL1 
PROFILE_KEYPAD_LEVEL2 
PROFILE_KEYPAD_LEVEL3 
PROFILE_KEYPAD_OFF 
PROFILE_CALLALERT_RINGING 
PROFILE_CALLALERT_BEEPONCE 
PROFILE_CALLALERT_OFF 
PROFILE_CALLALERT_RINGONCE 
PROFILE_CALLALERT_ASCENDING 
PROFILE_CALLALERT_CALLERGROUPS 
PROFILE_VOLUME_LEVEL1 
PROFILE_VOLUME_LEVEL2 
PROFILE_VOLUME_LEVEL3 
PROFILE_VOLUME_LEVEL4 
PROFILE_VOLUME_LEVEL5 
PROFILE_MESSAGE_NOTONE 
PROFILE_MESSAGE_STANDARD 
PROFILE_MESSAGE_SPECIAL 
PROFILE_MESSAGE_BEEPONCE 
PROFILE_MESSAGE_ASCENDING 
PROFILE_MESSAGE_PERSONAL 
PROFILE_VIBRATION_OFF 
PROFILE_VIBRATION_ON 
PROFILE_VIBRATION_FIRST 
PROFILE_WARNING_ON 
PROFILE_WARNING_OFF 
PROFILE_AUTOANSWER_ON 
PROFILE_AUTOANSWER_OFF 
PROFILE_LIGHTS_OFF 
PROFILE_LIGHTS_AUTO 
PROFILE_SAVER_ON 
PROFILE_SAVER_OFF 
PROFILE_SAVER_TIMEOUT_5SEC 
PROFILE_SAVER_TIMEOUT_20SEC 
PROFILE_SAVER_TIMEOUT_1MIN 
PROFILE_SAVER_TIMEOUT_2MIN 
PROFILE_SAVER_TIMEOUT_5MIN 
PROFILE_SAVER_TIMEOUT_10MIN 

Definition at line 56 of file gammu-settings.h.

56  {
GSM_Profile_Feat_Value

§ GSM_ResetSettingsType

Enumerator
GSM_RESET_PHONESETTINGS 
GSM_RESET_USERINTERFACE 
GSM_RESET_USERINTERFACE_PHONESETTINGS 
GSM_RESET_DEVICE 
GSM_RESET_FULLFACTORY 

Definition at line 38 of file gammu-settings.h.

Function Documentation

§ GSM_ClearFMStations()

GSM_Error GSM_ClearFMStations ( GSM_StateMachine s)

Clears defined FM stations.

Definition at line 1685 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone_Functions::ClearFMStations, GSM_Phone::Functions, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.

1686 {
1687  GSM_Error err;
1688 
1690 
1691  err = s->Phone.Functions->ClearFMStations(s);
1692  PRINT_LOG_ERROR(err);
1693  return err;
1694 }
GSM_Error
Definition: gammu-error.h:23
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373
GSM_Error(* ClearFMStations)(GSM_StateMachine *s)
Definition: gsmstate.h:1249

§ GSM_GetChatSettings()

GSM_Error GSM_GetChatSettings ( GSM_StateMachine s,
GSM_ChatSettings settings 
)

Acquires chat/presence settings.

Definition at line 1209 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetChatSettings, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.

1210 {
1211  GSM_Error err;
1212 
1214 
1215  err = s->Phone.Functions->GetChatSettings(s, settings);
1216  PRINT_LOG_ERROR(err);
1217  return err;
1218 }
GSM_Error
Definition: gammu-error.h:23
GSM_Error(* GetChatSettings)(GSM_StateMachine *s, GSM_ChatSettings *settings)
Definition: gsmstate.h:1107
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373

§ GSM_GetFMStation()

GSM_Error GSM_GetFMStation ( GSM_StateMachine s,
GSM_FMStation FMStation 
)

Reads FM station.

Definition at line 1659 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetFMStation, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.

1660 {
1661  GSM_Error err;
1662 
1664 
1665  err = s->Phone.Functions->GetFMStation(s, FMStation);
1666  PRINT_LOG_ERROR(err);
1667  return err;
1668 }
GSM_Error
Definition: gammu-error.h:23
GSM_Error(* GetFMStation)(GSM_StateMachine *s, GSM_FMStation *FMStation)
Definition: gsmstate.h:1241
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373

§ GSM_GetGPRSAccessPoint()

GSM_Error GSM_GetGPRSAccessPoint ( GSM_StateMachine s,
GSM_GPRSAccessPoint point 
)

Gets GPRS access point.

Definition at line 1843 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetGPRSAccessPoint, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.

1844 {
1845  GSM_Error err;
1846 
1848 
1849  err = s->Phone.Functions->GetGPRSAccessPoint(s, point);
1850  PRINT_LOG_ERROR(err);
1851  return err;
1852 }
GSM_Error(* GetGPRSAccessPoint)(GSM_StateMachine *s, GSM_GPRSAccessPoint *point)
Definition: gsmstate.h:1297
GSM_Error
Definition: gammu-error.h:23
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373

§ GSM_GetLocale()

GSM_Error GSM_GetLocale ( GSM_StateMachine s,
GSM_Locale locale 
)

Gets locale from phone.

Definition at line 281 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetLocale, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.

282 {
283  GSM_Error err;
284 
286 
287  err = s->Phone.Functions->GetLocale(s, locale);
288  PRINT_LOG_ERROR(err);
289  return err;
290 }
GSM_Error
Definition: gammu-error.h:23
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373
GSM_Error(* GetLocale)(GSM_StateMachine *s, GSM_Locale *locale)
Definition: gsmstate.h:830

§ GSM_GetMMSSettings()

GSM_Error GSM_GetMMSSettings ( GSM_StateMachine s,
GSM_MultiWAPSettings settings 
)

Acquires MMS settings.

Definition at line 1235 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetMMSSettings, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.

1236 {
1237  GSM_Error err;
1238 
1240 
1241  err = s->Phone.Functions->GetMMSSettings(s, settings);
1242  PRINT_LOG_ERROR(err);
1243  return err;
1244 }
GSM_Error
Definition: gammu-error.h:23
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373
GSM_Error(* GetMMSSettings)(GSM_StateMachine *s, GSM_MultiWAPSettings *settings)
Definition: gsmstate.h:1115

§ GSM_GetProfile()

GSM_Error GSM_GetProfile ( GSM_StateMachine s,
GSM_Profile Profile 
)

Reads profile.

Definition at line 1633 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetProfile, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.

1634 {
1635  GSM_Error err;
1636 
1638 
1639  err = s->Phone.Functions->GetProfile(s, Profile);
1640  PRINT_LOG_ERROR(err);
1641  return err;
1642 }
GSM_Error
Definition: gammu-error.h:23
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Error(* GetProfile)(GSM_StateMachine *s, GSM_Profile *Profile)
Definition: gsmstate.h:1233
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373

§ GSM_GetSyncMLSettings()

GSM_Error GSM_GetSyncMLSettings ( GSM_StateMachine s,
GSM_SyncMLSettings settings 
)

Acquires SyncML settings.

Definition at line 1183 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetSyncMLSettings, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.

1184 {
1185  GSM_Error err;
1186 
1188 
1189  err = s->Phone.Functions->GetSyncMLSettings(s, settings);
1190  PRINT_LOG_ERROR(err);
1191  return err;
1192 }
GSM_Error(* GetSyncMLSettings)(GSM_StateMachine *s, GSM_SyncMLSettings *settings)
Definition: gsmstate.h:1099
GSM_Error
Definition: gammu-error.h:23
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373

§ GSM_Reset()

GSM_Error GSM_Reset ( GSM_StateMachine s,
gboolean  hard 
)

Performs phone reset.

Definition at line 333 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_Phone_Functions::Reset.

Referenced by GSM_WaitFor().

334 {
335  GSM_Error err;
336 
338 
339  err = s->Phone.Functions->Reset(s, hard);
340  PRINT_LOG_ERROR(err);
341  return err;
342 }
GSM_Error(* Reset)(GSM_StateMachine *s, gboolean hard)
Definition: gsmstate.h:842
GSM_Error
Definition: gammu-error.h:23
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373

§ GSM_ResetPhoneSettings()

GSM_Error GSM_ResetPhoneSettings ( GSM_StateMachine s,
GSM_ResetSettingsType  Type 
)

Resets phone settings.

Definition at line 346 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_Phone_Functions::ResetPhoneSettings.

347 {
348  GSM_Error err;
349 
351 
352  err = s->Phone.Functions->ResetPhoneSettings(s, Type);
353  PRINT_LOG_ERROR(err);
354  return err;
355 }
GSM_Error
Definition: gammu-error.h:23
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373
GSM_Error(* ResetPhoneSettings)(GSM_StateMachine *s, GSM_ResetSettingsType Type)
Definition: gsmstate.h:846

§ GSM_SetAutoNetworkLogin()

GSM_Error GSM_SetAutoNetworkLogin ( GSM_StateMachine s)

Enables network auto login.

Definition at line 398 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_Phone_Functions::SetAutoNetworkLogin.

399 {
400  GSM_Error err;
401 
403 
404  err = s->Phone.Functions->SetAutoNetworkLogin(s);
405  PRINT_LOG_ERROR(err);
406  return err;
407 }
GSM_Error(* SetAutoNetworkLogin)(GSM_StateMachine *s)
Definition: gsmstate.h:862
GSM_Error
Definition: gammu-error.h:23
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373

§ GSM_SetChatSettings()

GSM_Error GSM_SetChatSettings ( GSM_StateMachine s,
GSM_ChatSettings settings 
)

Changes chat/presence settings.

Definition at line 1222 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_Phone_Functions::SetChatSettings.

1223 {
1224  GSM_Error err;
1225 
1227 
1228  err = s->Phone.Functions->SetChatSettings(s, settings);
1229  PRINT_LOG_ERROR(err);
1230  return err;
1231 }
GSM_Error
Definition: gammu-error.h:23
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373
GSM_Error(* SetChatSettings)(GSM_StateMachine *s, GSM_ChatSettings *settings)
Definition: gsmstate.h:1111

§ GSM_SetFMStation()

GSM_Error GSM_SetFMStation ( GSM_StateMachine s,
GSM_FMStation FMStation 
)

Sets FM station.

Definition at line 1672 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_Phone_Functions::SetFMStation.

1673 {
1674  GSM_Error err;
1675 
1677 
1678  err = s->Phone.Functions->SetFMStation(s, FMStation);
1679  PRINT_LOG_ERROR(err);
1680  return err;
1681 }
GSM_Error(* SetFMStation)(GSM_StateMachine *s, GSM_FMStation *FMStation)
Definition: gsmstate.h:1245
GSM_Error
Definition: gammu-error.h:23
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373

§ GSM_SetGPRSAccessPoint()

GSM_Error GSM_SetGPRSAccessPoint ( GSM_StateMachine s,
GSM_GPRSAccessPoint point 
)

Sets GPRS access point.

Definition at line 1856 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_Phone_Functions::SetGPRSAccessPoint.

1857 {
1858  GSM_Error err;
1859 
1861 
1862  err = s->Phone.Functions->SetGPRSAccessPoint(s, point);
1863  PRINT_LOG_ERROR(err);
1864  return err;
1865 }
GSM_Error
Definition: gammu-error.h:23
GSM_Error(* SetGPRSAccessPoint)(GSM_StateMachine *s, GSM_GPRSAccessPoint *point)
Definition: gsmstate.h:1301
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373

§ GSM_SetLocale()

GSM_Error GSM_SetLocale ( GSM_StateMachine s,
GSM_Locale locale 
)

Sets locale of phone.

Definition at line 294 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_Phone_Functions::SetLocale.

295 {
296  GSM_Error err;
297 
299 
300  err = s->Phone.Functions->SetLocale(s, locale);
301  PRINT_LOG_ERROR(err);
302  return err;
303 }
GSM_Error
Definition: gammu-error.h:23
GSM_Error(* SetLocale)(GSM_StateMachine *s, GSM_Locale *locale)
Definition: gsmstate.h:834
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373

§ GSM_SetMMSSettings()

GSM_Error GSM_SetMMSSettings ( GSM_StateMachine s,
GSM_MultiWAPSettings settings 
)

Changes MMS settings.

Definition at line 1248 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_Phone_Functions::SetMMSSettings.

1249 {
1250  GSM_Error err;
1251 
1253 
1254  err = s->Phone.Functions->SetMMSSettings(s, settings);
1255  PRINT_LOG_ERROR(err);
1256  return err;
1257 }
GSM_Error(* SetMMSSettings)(GSM_StateMachine *s, GSM_MultiWAPSettings *settings)
Definition: gsmstate.h:1119
GSM_Error
Definition: gammu-error.h:23
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373

§ GSM_SetProfile()

GSM_Error GSM_SetProfile ( GSM_StateMachine s,
GSM_Profile Profile 
)

Updates profile.

Definition at line 1646 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_Phone_Functions::SetProfile.

1647 {
1648  GSM_Error err;
1649 
1651 
1652  err = s->Phone.Functions->SetProfile(s, Profile);
1653  PRINT_LOG_ERROR(err);
1654  return err;
1655 }
GSM_Error
Definition: gammu-error.h:23
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373
GSM_Error(* SetProfile)(GSM_StateMachine *s, GSM_Profile *Profile)
Definition: gsmstate.h:1237

§ GSM_SetSyncMLSettings()

GSM_Error GSM_SetSyncMLSettings ( GSM_StateMachine s,
GSM_SyncMLSettings settings 
)

Changes SyncML settings.

Definition at line 1196 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_Phone_Functions::SetSyncMLSettings.

1197 {
1198  GSM_Error err;
1199 
1201 
1202  err = s->Phone.Functions->SetSyncMLSettings(s, settings);
1203  PRINT_LOG_ERROR(err);
1204  return err;
1205 }
GSM_Error
Definition: gammu-error.h:23
GSM_Error(* SetSyncMLSettings)(GSM_StateMachine *s, GSM_SyncMLSettings *settings)
Definition: gsmstate.h:1103
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373