author | zautrix <zautrix> | 2004-10-05 11:13:51 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-05 11:13:51 (UTC) |
commit | 50ab40e1e02ad7c65c17a78d08116a808b1257aa (patch) (unidiff) | |
tree | 0d1939e2297fa7bbd8e1f2030f154463854164c6 /gammu/emb/common/service/gsmmisc.h | |
parent | cf8616f64f20e5448d4ff644f7cc15750cf3f85f (diff) | |
download | kdepimpi-50ab40e1e02ad7c65c17a78d08116a808b1257aa.zip kdepimpi-50ab40e1e02ad7c65c17a78d08116a808b1257aa.tar.gz kdepimpi-50ab40e1e02ad7c65c17a78d08116a808b1257aa.tar.bz2 |
updated to latest gammu version
Diffstat (limited to 'gammu/emb/common/service/gsmmisc.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | gammu/emb/common/service/gsmmisc.h | 7 |
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 | ||
205 | typedef enum { | 205 | typedef enum { |
206 | Category_ToDo = 1, | 206 | Category_ToDo = 1, |
207 | Category_Phonebook | 207 | Category_Phonebook |
208 | } GSM_CategoryType; | 208 | } GSM_CategoryType; |
209 | 209 | ||
210 | typedef struct { | 210 | typedef 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 | ||
216 | typedef struct { | 216 | typedef 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 | ||
226 | typedef struct { | 226 | typedef 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 | ||
234 | typedef enum { | 234 | typedef 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 | ||
251 | typedef struct { | 251 | typedef 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 | ||
270 | GSM_Error GSM_ReadFile(char *FileName, GSM_File *File); | 270 | GSM_Error GSM_ReadFile(char *FileName, GSM_File *File); |
271 | 271 | ||
272 | GSM_Error GSM_JADFindData(GSM_File File, char *Vendor, char *Name, char *JAR, char *Version, int *Size); | 272 | GSM_Error GSM_JADFindData(GSM_File File, char *Vendor, char *Name, char *JAR, char *Version, int *Size); |
273 | 273 | ||
274 | void GSM_IdentifyFileFormat(GSM_File *File); | 274 | void GSM_IdentifyFileFormat(GSM_File *File); |
275 | 275 | ||
276 | typedef struct { | 276 | typedef 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 | ||
283 | typedef struct { | 283 | typedef 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 | ||
292 | typedef enum { | 292 | typedef 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 | ||
298 | typedef struct { | 303 | typedef 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 | ||
306 | void ReadVCALDateTime(char *Buffer, GSM_DateTime *dt); | 311 | void ReadVCALDateTime(char *Buffer, GSM_DateTime *dt); |
307 | void SaveVCALDateTime(char *Buffer, int *Length, GSM_DateTime *Date, char *Start); | 312 | void SaveVCALDateTime(char *Buffer, int *Length, GSM_DateTime *Date, char *Start); |
308 | 313 | ||
309 | void SaveVCALText(char *Buffer, int *Length, char *Text, char *Start); | 314 | void SaveVCALText(char *Buffer, int *Length, char *Text, char *Start); |
310 | bool ReadVCALText(char *Buffer, char *Start, char *Value); | 315 | bool 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 | */ |