5 A Linux/Unix toolset and driver for Nokia mobile phones.
7 Released under the terms of the GNU GPL, see file COPYING for more details.
11 #ifndef __gsm_calendar_h
12 #define __gsm_calendar_h
14 #include "gsm-datetime.h"
17 /* Define enums for Calendar Note types */
19 GCN_REMINDER=1, /* Reminder */
21 GCN_MEETING, /* Meeting */
22 GCN_BIRTHDAY /* Birthday */
23 } GSM_CalendarNoteType;
25 #define MAX_CALENDAR_TEXT_LENGTH 0x3a /* In 6210 max. 48 chars. 10 more precaution bytes*/
26 #define MAX_CALENDAR_PHONE_LENGTH 0x24
28 /* Calendar note type */
31 int Location; /* The number of the note in the phone memory */
32 GSM_CalendarNoteType Type; /* The type of the note */
33 GSM_DateTime Time; /* The time of the note */
34 GSM_DateTime Alarm; /* The alarm of the note */
35 char Text[MAX_CALENDAR_TEXT_LENGTH+1]; /* The text of the note */
36 char Phone[MAX_CALENDAR_PHONE_LENGTH+1]; /* For Call only: the phone number */
38 /* the following are only used for N7110/N6210 */
39 int Recurrance; /* after how many hours note repeats. 0x0000 = No Repeat */
40 int YearOfBirth; /* Only in GCN_BIRTHDAY for 62/71 - The Year of birth of recurrance */
41 u8 AlarmType; /* Only in GCN_BIRTHDAY for 62/71 - 0x00 = Tone, 0x01 = Silent */
43 bool ReadNotesInfo; /* Important in 6210/7110 - if we should read notes info or not */
46 /* NotesInfo type : Nowadays only N6210/7110 */
47 #define MAX_NOTES_INFO_ELEMS 1024
50 u16 HowMany; /* How many notes info used */
51 u16 Location[MAX_NOTES_INFO_ELEMS]; /* In N6210/7110 adresses for notes */
54 char *GSM_GetVCALENDARStart(int version);
55 char *GSM_GetVCALENDARNote(GSM_CalendarNote *note, int version);
56 char *GSM_GetVCALENDAREnd(int version);
58 int GSM_SaveCalendarNoteToSMS(GSM_MultiSMSMessage *SMS,
59 GSM_CalendarNote *note);
61 #endif /* __gsm_calendar_h */