summaryrefslogtreecommitdiffabout
path: root/gammu/emb/common/service/gsmmisc.h
Unidiff
Diffstat (limited to 'gammu/emb/common/service/gsmmisc.h') (more/less context) (ignore whitespace changes)
-rw-r--r--gammu/emb/common/service/gsmmisc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gammu/emb/common/service/gsmmisc.h b/gammu/emb/common/service/gsmmisc.h
index 37501ad..793d3d1 100644
--- a/gammu/emb/common/service/gsmmisc.h
+++ b/gammu/emb/common/service/gsmmisc.h
@@ -199,118 +199,123 @@ typedef struct {
199} GSM_BatteryCharge; 199} GSM_BatteryCharge;
200 200
201/* ------------------------------ categories ------------------------------- */ 201/* ------------------------------ categories ------------------------------- */
202 202
203#define GSM_MAX_CATEGORY_NAME_LENGTH 50 203#define GSM_MAX_CATEGORY_NAME_LENGTH 50
204 204
205typedef enum { 205typedef enum {
206 Category_ToDo = 1, 206 Category_ToDo = 1,
207 Category_Phonebook 207 Category_Phonebook
208} GSM_CategoryType; 208} GSM_CategoryType;
209 209
210typedef struct { 210typedef struct {
211 GSM_CategoryType Type; 211 GSM_CategoryType Type;
212 int Location; 212 int Location;
213 unsigned char Name[(GSM_MAX_CATEGORY_NAME_LENGTH + 1)*2]; 213 unsigned char Name[(GSM_MAX_CATEGORY_NAME_LENGTH + 1)*2];
214} GSM_Category; 214} GSM_Category;
215 215
216typedef struct { 216typedef struct {
217 GSM_CategoryType Type; 217 GSM_CategoryType Type;
218 int Used; 218 int Used;
219} GSM_CategoryStatus; 219} GSM_CategoryStatus;
220 220
221/* ------------------- radio FM stations ---------------------------------- */ 221/* ------------------- radio FM stations ---------------------------------- */
222 222
223 #defineGSM_MAX_FMSTATION_LENGTH 12 223 #defineGSM_MAX_FMSTATION_LENGTH 12
224 #define GSM_MAX_FM_STATION 20 224 #define GSM_MAX_FM_STATION 20
225 225
226typedef struct { 226typedef struct {
227 int Location; 227 int Location;
228 char StationName [(GSM_MAX_FMSTATION_LENGTH+1)*2]; 228 char StationName [(GSM_MAX_FMSTATION_LENGTH+1)*2];
229 double Frequency; 229 double Frequency;
230} GSM_FMStation; 230} GSM_FMStation;
231 231
232/* ----------------------- filesystem ------------------------------------- */ 232/* ----------------------- filesystem ------------------------------------- */
233 233
234typedef enum { 234typedef enum {
235 GSM_File_Java_JAR = 1, 235 GSM_File_Java_JAR = 1,
236 GSM_File_Image_JPG, 236 GSM_File_Image_JPG,
237 GSM_File_Image_BMP, 237 GSM_File_Image_BMP,
238 GSM_File_Image_GIF, 238 GSM_File_Image_GIF,
239 GSM_File_Image_PNG, 239 GSM_File_Image_PNG,
240 GSM_File_Image_WBMP, 240 GSM_File_Image_WBMP,
241 GSM_File_Video_3GP, 241 GSM_File_Video_3GP,
242 GSM_File_Sound_AMR, 242 GSM_File_Sound_AMR,
243 GSM_File_Sound_NRT, /* DCT4 binary format */ 243 GSM_File_Sound_NRT, /* DCT4 binary format */
244 GSM_File_Sound_MIDI, 244 GSM_File_Sound_MIDI,
245#ifdef DEVELOP 245#ifdef DEVELOP
246 GSM_File_MMS, 246 GSM_File_MMS,
247#endif 247#endif
248 GSM_File_Other 248 GSM_File_Other
249} GSM_FileType; 249} GSM_FileType;
250 250
251typedef struct { 251typedef struct {
252 int Used; /* how many bytes used */ 252 int Used; /* how many bytes used */
253 unsigned char Name[300]; /* Name */ 253 unsigned char Name[300]; /* Name */
254 bool Folder; /* true, when folder */ 254 bool Folder; /* true, when folder */
255 int Level; 255 int Level;
256 GSM_FileTypeType; 256 GSM_FileTypeType;
257 unsigned charID_FullName[400]; 257 unsigned charID_FullName[400];
258 unsigned char*Buffer; 258 unsigned char*Buffer;
259 259
260 GSM_DateTimeModified; 260 GSM_DateTimeModified;
261 bool ModifiedEmpty; 261 bool ModifiedEmpty;
262 262
263 /* File attributes */ 263 /* File attributes */
264 bool Protected; 264 bool Protected;
265 bool ReadOnly; 265 bool ReadOnly;
266 bool Hidden; 266 bool Hidden;
267 bool System; 267 bool System;
268} GSM_File; 268} GSM_File;
269 269
270GSM_Error GSM_ReadFile(char *FileName, GSM_File *File); 270GSM_Error GSM_ReadFile(char *FileName, GSM_File *File);
271 271
272GSM_Error GSM_JADFindData(GSM_File File, char *Vendor, char *Name, char *JAR, char *Version, int *Size); 272GSM_Error GSM_JADFindData(GSM_File File, char *Vendor, char *Name, char *JAR, char *Version, int *Size);
273 273
274void GSM_IdentifyFileFormat(GSM_File *File); 274void GSM_IdentifyFileFormat(GSM_File *File);
275 275
276typedef struct { 276typedef struct {
277 int Free; 277 int Free;
278 int Used; 278 int Used;
279} GSM_FileSystemStatus; 279} GSM_FileSystemStatus;
280 280
281/* ----------------------------- GPRS access points ----------------------- */ 281/* ----------------------------- GPRS access points ----------------------- */
282 282
283typedef struct { 283typedef struct {
284 int Location; 284 int Location;
285 unsigned char Name[300]; 285 unsigned char Name[300];
286 unsigned char URL[500]; 286 unsigned char URL[500];
287 bool Active; 287 bool Active;
288} GSM_GPRSAccessPoint; 288} GSM_GPRSAccessPoint;
289 289
290/* ------------------------------------------------------------------------ */ 290/* ------------------------------------------------------------------------ */
291 291
292typedef enum { 292typedef enum {
293 GSM_Date_DDMMYYYY = 1, 293 GSM_Date_DDMMYYYY = 1,
294 GSM_Date_MMDDYYYY, 294 GSM_Date_MMDDYYYY,
295 GSM_Date_YYYYMMDD 295 GSM_Date_YYYYMMDD,
296 GSM_Date_DDMMMYY,
297 GSM_Date_MMDDYY,
298 GSM_Date_DDMMYY,
299 GSM_Date_YYMMDD,
300 GSM_Date_OFF
296} GSM_DateFormat; 301} GSM_DateFormat;
297 302
298typedef struct { 303typedef struct {
299 unsigned char DateSeparator; 304 unsigned char DateSeparator;
300 GSM_DateFormatDateFormat; 305 GSM_DateFormatDateFormat;
301 bool AMPMTime; 306 bool AMPMTime;
302} GSM_Locale; 307} GSM_Locale;
303 308
304/* ------------------------------------------------------------------------ */ 309/* ------------------------------------------------------------------------ */
305 310
306void ReadVCALDateTime(char *Buffer, GSM_DateTime *dt); 311void ReadVCALDateTime(char *Buffer, GSM_DateTime *dt);
307void SaveVCALDateTime(char *Buffer, int *Length, GSM_DateTime *Date, char *Start); 312void SaveVCALDateTime(char *Buffer, int *Length, GSM_DateTime *Date, char *Start);
308 313
309void SaveVCALText(char *Buffer, int *Length, char *Text, char *Start); 314void SaveVCALText(char *Buffer, int *Length, char *Text, char *Start);
310bool ReadVCALText(char *Buffer, char *Start, char *Value); 315bool ReadVCALText(char *Buffer, char *Start, char *Value);
311 316
312#endif 317#endif
313 318
314/* How should editor hadle tabs in this file? Add editor commands here. 319/* How should editor hadle tabs in this file? Add editor commands here.
315 * vim: noexpandtab sw=8 ts=8 sts=8: 320 * vim: noexpandtab sw=8 ts=8 sts=8:
316 */ 321 */