2 * \file gammu-settings.h
5 * Phone settings data and functions.
7 #ifndef __gammu_settings_h
8 #define __gammu_settings_h
11 * \defgroup Settings Settings
12 * Phone settings manipulations.
15 #include <gammu-wap.h>
16 #include <gammu-limits.h>
21 gboolean SyncPhonebook
;
22 gboolean SyncCalendar
;
23 char Name
[(20 + 1) * 2];
24 char PhonebookDataBase
[(50 + 1) * 2];
25 char CalendarDataBase
[(50 + 1) * 2];
26 char User
[(30 + 1) * 2];
27 char Password
[(20 + 1) * 2];
28 char Server
[(128 + 1) * 2];
29 GSM_MultiWAPSettings Connection
;
32 /* ------------------------------------------------------------------------ */
35 GSM_RESET_PHONESETTINGS
= 1,
36 GSM_RESET_USERINTERFACE
,
37 GSM_RESET_USERINTERFACE_PHONESETTINGS
,
40 } GSM_ResetSettingsType
;
43 char Name
[(50 + 1) * 2];
44 char HomePage
[(200 + 1) * 2];
45 char User
[(50 + 1) * 2];
46 char Password
[(50 + 1) * 2];
49 GSM_MultiWAPSettings Connection
;
53 PROFILE_KEYPAD_LEVEL1
= 1,
54 PROFILE_KEYPAD_LEVEL2
,
55 PROFILE_KEYPAD_LEVEL3
,
57 PROFILE_CALLALERT_RINGING
,
58 PROFILE_CALLALERT_BEEPONCE
,
59 PROFILE_CALLALERT_OFF
,
60 PROFILE_CALLALERT_RINGONCE
,
61 PROFILE_CALLALERT_ASCENDING
,
62 PROFILE_CALLALERT_CALLERGROUPS
,
63 PROFILE_VOLUME_LEVEL1
,
64 PROFILE_VOLUME_LEVEL2
,
65 PROFILE_VOLUME_LEVEL3
,
66 PROFILE_VOLUME_LEVEL4
,
67 PROFILE_VOLUME_LEVEL5
,
68 PROFILE_MESSAGE_NOTONE
,
69 PROFILE_MESSAGE_STANDARD
,
70 PROFILE_MESSAGE_SPECIAL
,
71 PROFILE_MESSAGE_BEEPONCE
,
72 PROFILE_MESSAGE_ASCENDING
,
73 PROFILE_MESSAGE_PERSONAL
,
74 PROFILE_VIBRATION_OFF
,
76 PROFILE_VIBRATION_FIRST
,
79 PROFILE_AUTOANSWER_ON
,
80 PROFILE_AUTOANSWER_OFF
,
85 PROFILE_SAVER_TIMEOUT_5SEC
,
86 PROFILE_SAVER_TIMEOUT_20SEC
,
87 PROFILE_SAVER_TIMEOUT_1MIN
,
88 PROFILE_SAVER_TIMEOUT_2MIN
,
89 PROFILE_SAVER_TIMEOUT_5MIN
,
90 PROFILE_SAVER_TIMEOUT_10MIN
91 } GSM_Profile_Feat_Value
;
94 Profile_KeypadTone
= 1,
96 Profile_RingtoneVolume
,
102 Profile_ScreenSaverTime
,
105 Profile_ScreenSaverNumber
,
107 Profile_MessageToneID
,
109 } GSM_Profile_Feat_ID
;
112 * It contains phone profiles
126 * Is it default name for profile ?
128 gboolean DefaultName
;
129 gboolean HeadSetProfile
;
130 gboolean CarKitProfile
;
133 GSM_Profile_Feat_Value FeatureValue
[15];
134 GSM_Profile_Feat_ID FeatureID
[15];
136 gboolean CallerGroups
[5];
142 char StationName
[(GSM_MAX_FMSTATION_LENGTH
+ 1) * 2];
148 unsigned char Name
[(GSM_MAX_GPRS_AP_NAME_LENGTH
+ 1) * 2];
149 unsigned char URL
[(GSM_MAX_GPRS_AP_URL_LENGTH
+ 1) * 2];
150 } GSM_GPRSAccessPoint
;
153 GSM_Date_DDMMYYYY
= 1,
165 GSM_DateFormat DateFormat
;
170 GSM_Profile_Feat_ID ID
;
171 GSM_Profile_Feat_Value Value
;
172 unsigned char PhoneID
;
173 unsigned char PhoneValue
;
174 } GSM_Profile_PhoneTableValue
;
177 * Gets locale from phone.
179 GSM_Error
GSM_GetLocale(GSM_StateMachine
* s
, GSM_Locale
* locale
);
182 * Sets locale of phone.
184 GSM_Error
GSM_SetLocale(GSM_StateMachine
* s
, GSM_Locale
* locale
);
187 * Acquires SyncML settings.
189 GSM_Error
GSM_GetSyncMLSettings(GSM_StateMachine
* s
,
190 GSM_SyncMLSettings
* settings
);
192 * Changes SyncML settings.
194 GSM_Error
GSM_SetSyncMLSettings(GSM_StateMachine
* s
,
195 GSM_SyncMLSettings
* settings
);
197 * Acquires chat/presence settings.
199 GSM_Error
GSM_GetChatSettings(GSM_StateMachine
* s
,
200 GSM_ChatSettings
* settings
);
202 * Changes chat/presence settings.
204 GSM_Error
GSM_SetChatSettings(GSM_StateMachine
* s
,
205 GSM_ChatSettings
* settings
);
207 * Acquires MMS settings.
209 GSM_Error
GSM_GetMMSSettings(GSM_StateMachine
* s
,
210 GSM_MultiWAPSettings
* settings
);
212 * Changes MMS settings.
214 GSM_Error
GSM_SetMMSSettings(GSM_StateMachine
* s
,
215 GSM_MultiWAPSettings
* settings
);
217 * Enables network auto login.
219 GSM_Error
GSM_SetAutoNetworkLogin(GSM_StateMachine
* s
);
222 * Performs phone reset.
224 GSM_Error
GSM_Reset(GSM_StateMachine
* s
, gboolean hard
);
227 * Resets phone settings.
229 GSM_Error
GSM_ResetPhoneSettings(GSM_StateMachine
* s
,
230 GSM_ResetSettingsType Type
);
234 GSM_Error
GSM_GetProfile(GSM_StateMachine
* s
, GSM_Profile
* Profile
);
239 GSM_Error
GSM_SetProfile(GSM_StateMachine
* s
, GSM_Profile
* Profile
);
244 GSM_Error
GSM_GetFMStation(GSM_StateMachine
* s
, GSM_FMStation
* FMStation
);
249 GSM_Error
GSM_SetFMStation(GSM_StateMachine
* s
, GSM_FMStation
* FMStation
);
252 * Clears defined FM stations.
254 GSM_Error
GSM_ClearFMStations(GSM_StateMachine
* s
);
257 * Gets GPRS access point.
259 GSM_Error
GSM_GetGPRSAccessPoint(GSM_StateMachine
* s
,
260 GSM_GPRSAccessPoint
* point
);
262 * Sets GPRS access point.
264 GSM_Error
GSM_SetGPRSAccessPoint(GSM_StateMachine
* s
,
265 GSM_GPRSAccessPoint
* point
);
268 /* Editor configuration
269 * vim: noexpandtab sw=8 ts=8 sts=8 tw=72: