4 #include "../gsmcomon.h"
6 /* Define an enum for specifying memory types for getting phonebook entries,
7 * SMS messages etc. Phone modules can translate it to own values
10 /* Two letter codes are from GSM 07.07 release 6.2.0 */
12 * Internal memory of the mobile equipment
36 * Combined ME and SIM phonebook
50 /* --------------------------- resetting phone settings ------------------- */
53 GSM_RESET_PHONESETTINGS
= 1,
54 GSM_RESET_USERINTERFACE
,
55 GSM_RESET_USERINTERFACE_PHONESETTINGS
,
58 } GSM_ResetSettingsType
;
60 /* --------------------------- security codes ------------------------------ */
63 * Definition of security codes.
69 GSCT_SecurityCode
= 0x01,
90 } GSM_SecurityCodeType
;
92 #define GSM_SECURITY_CODE_LEN 15
95 * Security code definition.
101 GSM_SecurityCodeType Type
;
105 char Code
[GSM_SECURITY_CODE_LEN
+1];
108 /* ---------------------------- keyboard ----------------------------------- */
132 * in some phone ie. N5110 sometimes works identical to POWER
136 * (c) key in some phone: ie. N5110
140 * doesn't available in some phones as separate button: ie. N5110
142 GSM_KEY_INCREASEVOLUME
,
144 * doesn't available in some phones as separate button: ie. N5110
146 GSM_KEY_DECREASEVOLUME
,
151 * doesn't available in some phone: ie. N5110
156 GSM_Error
MakeKeySequence(char *text
, GSM_KeyCode
*KeyCode
, int *Length
);
158 /* ------------------------------- display features ------------------------ */
167 GSM_SMSMemoryFull
/* blinking envelope */
168 } GSM_DisplayFeature
;
172 GSM_DisplayFeature Feature
[7];
173 } GSM_DisplayFeatures
;
175 /* ----------------------------- power source ------------------------------ */
178 GSM_BatteryPowered
= 1,
179 GSM_BatteryConnected
,
180 GSM_BatteryNotConnected
,
186 * Signal strength in percent, -1 = unknown
192 GSM_ChargeState ChargeState
;
195 /* ------------------------------ categories ------------------------------- */
197 #define GSM_MAX_CATEGORY_NAME_LENGTH 50
205 GSM_CategoryType Type
;
207 unsigned char Name
[(GSM_MAX_CATEGORY_NAME_LENGTH
+ 1)*2];
211 GSM_CategoryType Type
;
213 } GSM_CategoryStatus
;
215 /* ------------------- radio FM stations ---------------------------------- */
217 #define GSM_MAX_FMSTATION_LENGTH 12
218 #define GSM_MAX_FM_STATION 20
222 char StationName
[(GSM_MAX_FMSTATION_LENGTH
+1)*2];
226 /* ----------------------- filesystem ------------------------------------- */
229 GSM_File_Java_JAR
= 1,
235 GSM_File_Ringtone_MIDI
,
243 int Used
; /* how many bytes used */
244 unsigned char Name
[300]; /* Name */
245 bool Folder
; /* true, when folder */
248 unsigned char ID_FullName
[400];
249 unsigned char *Buffer
;
251 GSM_DateTime Modified
;
254 /* File attributes */
261 GSM_Error
GSM_ReadFile(char *FileName
, GSM_File
*File
);
263 GSM_Error
GSM_JADFindData(GSM_File File
, char *Vendor
, char *Name
, char *JAR
, char *Version
, int *Size
);
265 void GSM_IdentifyFileFormat(GSM_File
*File
);
270 } GSM_FileSystemStatus
;
272 /* ----------------------------- GPRS access points ----------------------- */
276 unsigned char Name
[300];
277 unsigned char URL
[500];
279 } GSM_GPRSAccessPoint
;
281 /* ------------------------------------------------------------------------ */
284 GSM_Date_DDMMYYYY
= 1,
290 unsigned char DateSeparator
;
291 GSM_DateFormat DateFormat
;
295 /* ------------------------------------------------------------------------ */
297 void ReadVCALDateTime(char *Buffer
, GSM_DateTime
*dt
);
298 void SaveVCALDateTime(char *Buffer
, int *Length
, GSM_DateTime
*Date
, char *Start
);
300 void SaveVCALText(char *Buffer
, int *Length
, char *Text
, char *Start
);
301 bool ReadVCALText(char *Buffer
, char *Start
, char *Value
);
305 /* How should editor hadle tabs in this file? Add editor commands here.
306 * vim: noexpandtab sw=8 ts=8 sts=8: