Imported gammu 0.90.7
[gammu.git] / common / service / gsmprof.h
blobc1a604fadae78f2cbfa8a7234f144aecb2f43a1d
1 #ifndef __gsm_profile_h
2 #define __gsm_profile_h
4 typedef enum {
5 PROFILE_KEYPAD_LEVEL1 = 1,
6 PROFILE_KEYPAD_LEVEL2,
7 PROFILE_KEYPAD_LEVEL3,
8 PROFILE_KEYPAD_OFF,
9 PROFILE_CALLALERT_RINGING,
10 PROFILE_CALLALERT_BEEPONCE,
11 PROFILE_CALLALERT_OFF,
12 PROFILE_CALLALERT_RINGONCE,
13 PROFILE_CALLALERT_ASCENDING,
14 PROFILE_CALLALERT_CALLERGROUPS,
15 PROFILE_VOLUME_LEVEL1,
16 PROFILE_VOLUME_LEVEL2,
17 PROFILE_VOLUME_LEVEL3,
18 PROFILE_VOLUME_LEVEL4,
19 PROFILE_VOLUME_LEVEL5,
20 PROFILE_MESSAGE_NOTONE,
21 PROFILE_MESSAGE_STANDARD,
22 PROFILE_MESSAGE_SPECIAL,
23 PROFILE_MESSAGE_BEEPONCE,
24 PROFILE_MESSAGE_ASCENDING,
25 PROFILE_MESSAGE_PERSONAL,
26 PROFILE_VIBRATION_OFF,
27 PROFILE_VIBRATION_ON,
28 PROFILE_VIBRATION_FIRST,
29 PROFILE_WARNING_ON,
30 PROFILE_WARNING_OFF,
31 PROFILE_AUTOANSWER_ON,
32 PROFILE_AUTOANSWER_OFF,
33 PROFILE_LIGHTS_OFF,
34 PROFILE_LIGHTS_AUTO,
35 PROFILE_SAVER_ON,
36 PROFILE_SAVER_OFF,
37 PROFILE_SAVER_TIMEOUT_5SEC,
38 PROFILE_SAVER_TIMEOUT_20SEC,
39 PROFILE_SAVER_TIMEOUT_1MIN,
40 PROFILE_SAVER_TIMEOUT_2MIN,
41 PROFILE_SAVER_TIMEOUT_5MIN,
42 PROFILE_SAVER_TIMEOUT_10MIN
43 } GSM_Profile_Feat_Value;
45 typedef enum {
46 Profile_KeypadTone = 1,
47 Profile_CallAlert,
48 Profile_RingtoneVolume,
49 Profile_MessageTone,
50 Profile_Vibration,
51 Profile_WarningTone,
52 Profile_AutoAnswer,
53 Profile_Lights,
54 Profile_ScreenSaverTime,
55 Profile_ScreenSaver,
57 Profile_ScreenSaverNumber,
58 Profile_RingtoneID,
59 Profile_MessageToneID,
60 Profile_CallerGroups
61 } GSM_Profile_Feat_ID;
63 /**
64 * It contains phone profiles
66 typedef struct {
67 bool Active;
69 /**
70 * Profile number
72 int Location;
73 /**
74 * Profile name
76 char Name[40*2];
77 /**
78 * Is it default name for profile ?
80 bool DefaultName;
81 bool HeadSetProfile;
82 bool CarKitProfile;
84 int FeaturesNumber;
85 GSM_Profile_Feat_Value FeatureValue[15];
86 GSM_Profile_Feat_ID FeatureID[15];
88 bool CallerGroups[5];
89 } GSM_Profile;
91 typedef struct {
92 GSM_Profile_Feat_ID ID;
93 GSM_Profile_Feat_Value Value;
94 unsigned char PhoneID;
95 unsigned char PhoneValue;
96 } GSM_Profile_PhoneTableValue;
98 #endif
100 /* How should editor hadle tabs in this file? Add editor commands here.
101 * vim: noexpandtab sw=8 ts=8 sts=8: