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/gsmcal.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/gsmcal.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | gammu/emb/common/service/gsmcal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gammu/emb/common/service/gsmcal.h b/gammu/emb/common/service/gsmcal.h index 067a4a4..0a41b7b 100644 --- a/gammu/emb/common/service/gsmcal.h +++ b/gammu/emb/common/service/gsmcal.h | |||
@@ -312,134 +312,134 @@ typedef enum { | |||
312 | */ | 312 | */ |
313 | TODO_TEXT, | 313 | TODO_TEXT, |
314 | /** | 314 | /** |
315 | * Whether entry is private (Number). | 315 | * Whether entry is private (Number). |
316 | */ | 316 | */ |
317 | TODO_PRIVATE, | 317 | TODO_PRIVATE, |
318 | /** | 318 | /** |
319 | * Category of entry (Number). | 319 | * Category of entry (Number). |
320 | */ | 320 | */ |
321 | TODO_CATEGORY, | 321 | TODO_CATEGORY, |
322 | /** | 322 | /** |
323 | * Related contact ID (Number). | 323 | * Related contact ID (Number). |
324 | */ | 324 | */ |
325 | TODO_CONTACTID, | 325 | TODO_CONTACTID, |
326 | /** | 326 | /** |
327 | * Number to call (Text). | 327 | * Number to call (Text). |
328 | */ | 328 | */ |
329 | TODO_PHONE | 329 | TODO_PHONE |
330 | } GSM_ToDoType; | 330 | } GSM_ToDoType; |
331 | 331 | ||
332 | /** | 332 | /** |
333 | * Priority of to do. | 333 | * Priority of to do. |
334 | */ | 334 | */ |
335 | typedef enum { | 335 | typedef enum { |
336 | GSM_Priority_High = 1, | 336 | GSM_Priority_High = 1, |
337 | GSM_Priority_Medium, | 337 | GSM_Priority_Medium, |
338 | GSM_Priority_Low | 338 | GSM_Priority_Low |
339 | } GSM_ToDo_Priority; | 339 | } GSM_ToDo_Priority; |
340 | 340 | ||
341 | /** | 341 | /** |
342 | * Value of to do entry. | 342 | * Value of to do entry. |
343 | */ | 343 | */ |
344 | typedef struct { | 344 | typedef struct { |
345 | /** | 345 | /** |
346 | * Type of entry. | 346 | * Type of entry. |
347 | */ | 347 | */ |
348 | GSM_ToDoType EntryType; | 348 | GSM_ToDoType EntryType; |
349 | /** | 349 | /** |
350 | * Text of value, if appropriate, see @ref GSM_ToDoType. | 350 | * Text of value, if appropriate, see @ref GSM_ToDoType. |
351 | */ | 351 | */ |
352 | unsigned char Text[(MAX_TODO_TEXT_LENGTH + 1)*2]; | 352 | unsigned char Text[(MAX_TODO_TEXT_LENGTH + 1)*2]; |
353 | /** | 353 | /** |
354 | * Date of value, if appropriate, see @ref GSM_ToDoType. | 354 | * Date of value, if appropriate, see @ref GSM_ToDoType. |
355 | */ | 355 | */ |
356 | GSM_DateTime Date; | 356 | GSM_DateTime Date; |
357 | /** | 357 | /** |
358 | * Number of value, if appropriate, see @ref GSM_ToDoType. | 358 | * Number of value, if appropriate, see @ref GSM_ToDoType. |
359 | */ | 359 | */ |
360 | unsigned int Number; | 360 | unsigned int Number; |
361 | } GSM_SubToDoEntry; | 361 | } GSM_SubToDoEntry; |
362 | 362 | ||
363 | /** | 363 | /** |
364 | * To do entry. | 364 | * To do entry. |
365 | */ | 365 | */ |
366 | typedef struct { | 366 | typedef struct { |
367 | /** | 367 | /** |
368 | * Priority of entry. | 368 | * Priority of entry. |
369 | */ | 369 | */ |
370 | GSM_ToDo_Priority Priority; | 370 | GSM_ToDo_Priority Priority; |
371 | /** | 371 | /** |
372 | * Location in memory. | 372 | * Location in memory. |
373 | */ | 373 | */ |
374 | int Location; | 374 | int Location; |
375 | /** | 375 | /** |
376 | * Number of entries. | 376 | * Number of entries. |
377 | */ | 377 | */ |
378 | int EntriesNum; | 378 | int EntriesNum; |
379 | /** | 379 | /** |
380 | * Values of current entry. | 380 | * Values of current entry. |
381 | */ | 381 | */ |
382 | GSM_SubToDoEntryEntries[GSM_TODO_ENTRIES]; | 382 | GSM_SubToDoEntryEntries[GSM_TODO_ENTRIES]; |
383 | } GSM_ToDoEntry; | 383 | } GSM_ToDoEntry; |
384 | 384 | ||
385 | void GSM_ToDoFindDefaultTextTimeAlarmCompleted(GSM_ToDoEntry *entry, int *Text, int *Alarm, int *Completed, int *EndTime, int *Phone); | 385 | void GSM_ToDoFindDefaultTextTimeAlarmCompleted(GSM_ToDoEntry *entry, int *Text, int *Alarm, int *Completed, int *EndTime, int *Phone); |
386 | 386 | ||
387 | typedef enum { | 387 | typedef enum { |
388 | Nokia_VToDo = 1, | 388 | Nokia_VToDo = 1, |
389 | SonyEricsson_VToDo | 389 | SonyEricsson_VToDo |
390 | } GSM_VToDoVersion; | 390 | } GSM_VToDoVersion; |
391 | 391 | ||
392 | GSM_Error GSM_EncodeVTODO(char *Buffer, int *Length, GSM_ToDoEntry *note, bool header, GSM_VToDoVersion Version); | 392 | GSM_Error GSM_EncodeVTODO(char *Buffer, int *Length, GSM_ToDoEntry *note, bool header, GSM_VToDoVersion Version); |
393 | 393 | ||
394 | /** | 394 | /** |
395 | * Status of to do entries. | 395 | * Status of to do entries. |
396 | */ | 396 | */ |
397 | typedef struct { | 397 | typedef struct { |
398 | /** | 398 | /** |
399 | * Number of used positions. | 399 | * Number of used positions. |
400 | */ | 400 | */ |
401 | int Used; | 401 | int Used; |
402 | } GSM_ToDoStatus; | 402 | } GSM_ToDoStatus; |
403 | 403 | ||
404 | /* --------------------------- note ---------------------------------------- */ | 404 | /* --------------------------- note ---------------------------------------- */ |
405 | 405 | ||
406 | typedef struct { | 406 | typedef struct { |
407 | int Location; | 407 | int Location; |
408 | char Text[100]; | 408 | char Text[3000*2]; |
409 | } GSM_NoteEntry; | 409 | } GSM_NoteEntry; |
410 | 410 | ||
411 | GSM_Error GSM_EncodeVNTFile(unsigned char *Buffer, int *Length, GSM_NoteEntry *Note); | 411 | GSM_Error GSM_EncodeVNTFile(unsigned char *Buffer, int *Length, GSM_NoteEntry *Note); |
412 | 412 | ||
413 | /* --------------------------- alarm --------------------------------------- */ | 413 | /* --------------------------- alarm --------------------------------------- */ |
414 | 414 | ||
415 | /** | 415 | /** |
416 | * Alarm values. | 416 | * Alarm values. |
417 | */ | 417 | */ |
418 | typedef struct { | 418 | typedef struct { |
419 | /** | 419 | /** |
420 | * Location where it is stored. | 420 | * Location where it is stored. |
421 | */ | 421 | */ |
422 | int Location; | 422 | int Location; |
423 | /** | 423 | /** |
424 | * Date and time of alarm. | 424 | * Date and time of alarm. |
425 | */ | 425 | */ |
426 | GSM_DateTime DateTime; | 426 | GSM_DateTime DateTime; |
427 | /** | 427 | /** |
428 | * Whether it repeats each day. | 428 | * Whether it repeats each day. |
429 | */ | 429 | */ |
430 | bool Repeating; | 430 | bool Repeating; |
431 | /** | 431 | /** |
432 | * Text that is shown on display. | 432 | * Text that is shown on display. |
433 | */ | 433 | */ |
434 | char Text[(MAX_CALENDAR_TEXT_LENGTH + 1) * 2]; | 434 | char Text[(MAX_CALENDAR_TEXT_LENGTH + 1) * 2]; |
435 | } GSM_Alarm; | 435 | } GSM_Alarm; |
436 | 436 | ||
437 | /* --------------------------- calendar & todo ----------------------------- */ | 437 | /* --------------------------- calendar & todo ----------------------------- */ |
438 | 438 | ||
439 | GSM_Error GSM_DecodeVCALENDAR_VTODO(unsigned char *Buffer, int *Pos, GSM_CalendarEntry *Calendar, GSM_ToDoEntry *ToDo, GSM_VCalendarVersion CalVer, GSM_VToDoVersion ToDoVer); | 439 | GSM_Error GSM_DecodeVCALENDAR_VTODO(unsigned char *Buffer, int *Pos, GSM_CalendarEntry *Calendar, GSM_ToDoEntry *ToDo, GSM_VCalendarVersion CalVer, GSM_VToDoVersion ToDoVer); |
440 | 440 | ||
441 | #endif | 441 | #endif |
442 | 442 | ||
443 | /* How should editor hadle tabs in this file? Add editor commands here. | 443 | /* How should editor hadle tabs in this file? Add editor commands here. |
444 | * vim: noexpandtab sw=8 ts=8 sts=8: | 444 | * vim: noexpandtab sw=8 ts=8 sts=8: |
445 | */ | 445 | */ |