|
Gammu internals
1.38.0
|
Data Structures | |
| struct | GSM_CalendarSettings |
| struct | GSM_CalendarStatus |
| struct | GSM_SubCalendarEntry |
| struct | GSM_CalendarEntry |
| struct | GSM_Alarm |
Macros | |
| #define | _GNU_SOURCE |
This module implements calendar related opreations.
Calendar events manipulations.
| enum GSM_CalendarNoteType |
Enum defines types of calendar notes
Definition at line 86 of file gammu-calendar.h.
| enum GSM_CalendarType |
One value of calendar event.
Definition at line 210 of file gammu-calendar.h.
| enum GSM_TimeUnit |
Time Units.
| Enumerator | |
|---|---|
| GSM_TimeUnit_Unknown | |
| GSM_TimeUnit_Days | |
| GSM_TimeUnit_Hours | |
| GSM_TimeUnit_Minutes | |
| GSM_TimeUnit_Seconds | |
Definition at line 29 of file gsmcal.h.
| enum GSM_VCalendarVersion |
Format of vCalendar export.
Definition at line 558 of file gammu-calendar.h.
| GSM_Error GSM_AddCalendar | ( | GSM_StateMachine * | s, |
| GSM_CalendarEntry * | Note | ||
| ) |
Adds calendar entry.
| s | State machine pointer. |
| Note | Note to add. |
Adds calendar entry.
Definition at line 1468 of file api.c.
References GSM_Phone_Functions::AddCalendar, CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_CALENDAR_INFO, and PRINT_LOG_ERROR.
| void GSM_Calendar_AdjustDate | ( | GSM_CalendarEntry * | note, |
| GSM_DeltaTime * | delta | ||
| ) |
Adjusts all datetime information in calendar entry according to delta.
Definition at line 748 of file gsmcal.c.
References CAL_CONTACTID, CAL_DESCRIPTION, CAL_END_DATETIME, CAL_LAST_MODIFIED, CAL_LOCATION, CAL_LUID, CAL_PHONE, CAL_PRIVATE, CAL_REPEAT_COUNT, CAL_REPEAT_DAY, CAL_REPEAT_DAYOFWEEK, CAL_REPEAT_DAYOFYEAR, CAL_REPEAT_FREQUENCY, CAL_REPEAT_MONTH, CAL_REPEAT_STARTDATE, CAL_REPEAT_STOPDATE, CAL_REPEAT_WEEKOFMONTH, CAL_SILENT_ALARM_DATETIME, CAL_START_DATETIME, CAL_TEXT, CAL_TONE_ALARM_DATETIME, GSM_SubCalendarEntry::Date, GSM_CalendarEntry::Entries, GSM_CalendarEntry::EntriesNum, GSM_SubCalendarEntry::EntryType, and GSM_AddTime().
Referenced by GSM_DecodeVCALENDAR_VTODO().
| void GSM_CalendarFindDefaultTextTimeAlarmPhone | ( | GSM_CalendarEntry * | entry, |
| int * | Text, | ||
| int * | Time, | ||
| int * | Alarm, | ||
| int * | Phone, | ||
| int * | EndTime, | ||
| int * | Location | ||
| ) |
Finds inxedes of default entries.
Definition at line 279 of file gsmcal.c.
References CAL_END_DATETIME, CAL_LOCATION, CAL_PHONE, CAL_SILENT_ALARM_DATETIME, CAL_START_DATETIME, CAL_TEXT, CAL_TONE_ALARM_DATETIME, GSM_CalendarEntry::Entries, GSM_CalendarEntry::EntriesNum, and GSM_SubCalendarEntry::EntryType.
Referenced by NOKIA_EncodeDateTime().
| GSM_Error GSM_DecodeVCAL_DOW | ( | const char * | Buffer, |
| int * | Output | ||
| ) |
Decode day of week to gammu enumeration (1 = Monday...7 = Sunday).
Definition at line 1261 of file gsmcal.c.
References ERR_NONE, and ERR_UNKNOWN.
| GSM_Error GSM_DecodeVCAL_RRULE | ( | GSM_Debug_Info * | di, |
| const char * | Buffer, | ||
| GSM_CalendarEntry * | Calendar, | ||
| int | TimePos | ||
| ) |
Decodes vCalendar RRULE recurrance format into calendar entry. It should be implemented according to following grammar:
Definition at line 1404 of file gsmcal.c.
References GSM_SubCalendarEntry::AddError, CAL_REPEAT_COUNT, CAL_REPEAT_DAY, CAL_REPEAT_DAYOFWEEK, CAL_REPEAT_DAYOFYEAR, CAL_REPEAT_MONTH, CAL_REPEAT_STOPDATE, CAL_REPEAT_WEEKOFMONTH, GSM_SubCalendarEntry::Date, GSM_DateTime::Day, GSM_CalendarEntry::Entries, GSM_CalendarEntry::EntriesNum, GSM_SubCalendarEntry::EntryType, ERR_NONE, ERR_UNKNOWN, FALSE, GET_DOW, GET_FREQUENCY, GET_NUMBER, GetDayOfWeek(), GetDayOfYear(), GetWeekOfMonth(), GSM_DateTime::Month, NEXT_CHAR, NEXT_NOSPACE, GSM_SubCalendarEntry::Number, ReadVCALDateTime(), smfprintf(), TRUE, and GSM_DateTime::Year.
Referenced by GSM_DecodeVCALENDAR_VTODO().
| GSM_Error GSM_DecodeVCALENDAR_VTODO | ( | GSM_Debug_Info * | di, |
| char * | Buffer, | ||
| size_t * | Pos, | ||
| GSM_CalendarEntry * | Calendar, | ||
| GSM_ToDoEntry * | ToDo, | ||
| GSM_VCalendarVersion | CalVer, | ||
| GSM_VToDoVersion | ToDoVer | ||
| ) |
Decodes vCalendar and vTodo buffer.
| di | Pointer to debugging description. |
| Buffer | Buffer to decode. |
| Pos | Current position in buffer (will be updated). |
| Calendar | Storage for calendar entry. |
| ToDo | Storage for todo entry. |
| CalVer | Format of vCalendar. |
| ToDoVer | Format of vTodo. |
Definition at line 1673 of file gsmcal.c.
References GSM_SubCalendarEntry::AddError, CAL_DESCRIPTION, CAL_END_DATETIME, CAL_LAST_MODIFIED, CAL_LOCATION, CAL_LUID, CAL_PRIVATE, CAL_SILENT_ALARM_DATETIME, CAL_START_DATETIME, CAL_TEXT, CAL_TONE_ALARM_DATETIME, CopyUnicodeString(), GSM_SubCalendarEntry::Date, GSM_SubToDoEntry::Date, GSM_DateTime::Day, DecodeUnicodeString(), GSM_CalendarEntry::Entries, GSM_ToDoEntry::Entries, GSM_CalendarEntry::EntriesNum, GSM_ToDoEntry::EntriesNum, GSM_SubCalendarEntry::EntryType, GSM_SubToDoEntry::EntryType, ERR_EMPTY, ERR_NONE, ERR_UNKNOWN, FALSE, GSM_AddTime(), GSM_CAL_MEETING, GSM_CAL_MEMO, GSM_Calendar_AdjustDate(), GSM_DecodeVCAL_RRULE(), GSM_Make_VCAL_Lines(), GSM_Priority_High, GSM_Priority_Low, GSM_Priority_Medium, GSM_Priority_None, GSM_ToDo_AdjustDate(), GSM_Translate_Category_From_VCal(), GSM_DateTime::Hour, GSM_ToDoEntry::Location, GSM_DateTime::Minute, GSM_DateTime::Month, Mozilla_iCalendar, Mozilla_VToDo, MyGetLine(), mywstrncasecmp(), GSM_SubCalendarEntry::Number, GSM_SubToDoEntry::Number, GSM_ToDoEntry::Priority, ReadVCALDate(), ReadVCALInt(), ReadVCALText(), ReadVCALTriggerTime(), Siemens_VCalendar, smfprintf(), GSM_SubCalendarEntry::Text, GSM_SubToDoEntry::Text, GSM_DeltaTime::Timezone, TODO_ALARM_DATETIME, TODO_COMPLETED, TODO_COMPLETED_DATETIME, TODO_DESCRIPTION, TODO_END_DATETIME, TODO_LAST_MODIFIED, TODO_LOCATION, TODO_LUID, TODO_PRIVATE, TODO_SILENT_ALARM_DATETIME, TODO_START_DATETIME, TODO_TEXT, TRUE, GSM_CalendarEntry::Type, GSM_ToDoEntry::Type, and GSM_DateTime::Year.
| GSM_Error GSM_DecodeVNOTE | ( | char * | Buffer, |
| size_t * | Pos, | ||
| GSM_NoteEntry * | Note | ||
| ) |
Decodes vNote from buffer.
| Buffer | Buffer to decode. |
| Pos | Current position in buffer (will be updated). |
| Note | Storage for note entry. |
Definition at line 2030 of file gsmcal.c.
References CopyUnicodeString(), ERR_EMPTY, ERR_NONE, FALSE, MyGetLine(), ReadVCALText(), GSM_NoteEntry::Text, TRUE, and UnicodeLength().
| GSM_Error GSM_DeleteAllCalendar | ( | GSM_StateMachine * | s | ) |
Deletes all calendar entries.
| s | State machine pointer. |
Deletes all calendar entries.
Definition at line 1496 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone_Functions::DeleteAllCalendar, GSM_Phone::Functions, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| GSM_Error GSM_DeleteCalendar | ( | GSM_StateMachine * | s, |
| GSM_CalendarEntry * | Note | ||
| ) |
Deletes calendar entry.
| s | State machine pointer. |
| Note | Note to delete, must contain position. |
Deletes calendar entry.
Definition at line 1482 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone_Functions::DeleteCalendar, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_CALENDAR_INFO, and PRINT_LOG_ERROR.
| GSM_Error GSM_EncodeVCAL_RRULE | ( | char * | Buffer, |
| const size_t | buff_len, | ||
| size_t * | Length, | ||
| GSM_CalendarEntry * | note, | ||
| int TimePos | UNUSED, | ||
| GSM_VCalendarVersion | Version | ||
| ) |
Converts Gammu recurrence to vCal format. See GSM_DecodeVCAL_RRULE for grammar description.
Definition at line 441 of file gsmcal.c.
References CAL_CONTACTID, CAL_DESCRIPTION, CAL_END_DATETIME, CAL_LAST_MODIFIED, CAL_LOCATION, CAL_LUID, CAL_PHONE, CAL_PRIVATE, CAL_REPEAT_COUNT, CAL_REPEAT_DAY, CAL_REPEAT_DAYOFWEEK, CAL_REPEAT_DAYOFYEAR, CAL_REPEAT_FREQUENCY, CAL_REPEAT_MONTH, CAL_REPEAT_STARTDATE, CAL_REPEAT_STOPDATE, CAL_REPEAT_WEEKOFMONTH, CAL_SILENT_ALARM_DATETIME, CAL_START_DATETIME, CAL_TEXT, CAL_TONE_ALARM_DATETIME, GSM_SubCalendarEntry::Date, GSM_DateTime::Day, GSM_CalendarEntry::Entries, GSM_CalendarEntry::EntriesNum, GSM_SubCalendarEntry::EntryType, ERR_EMPTY, ERR_NONE, FALSE, Mozilla_iCalendar, GSM_SubCalendarEntry::Number, Siemens_VCalendar, TRUE, VC_Store(), VC_StoreDate(), and VC_StoreLine().
Referenced by GSM_EncodeVCALENDAR().
| GSM_Error GSM_EncodeVCALENDAR | ( | char * | Buffer, |
| const size_t | buff_len, | ||
| size_t * | Length, | ||
| GSM_CalendarEntry * | note, | ||
| const gboolean | header, | ||
| const GSM_VCalendarVersion | Version | ||
| ) |
Encodes vCalendar to buffer.
| Buffer | Storage for data. | |
| [in] | buff_len | Size of output buffer. |
| Length | Pointer to current position in data (will be incremented). | |
| note | Note to encode. | |
| header | Whether to include vCalendar header. | |
| Version | Format of vCalendar to create. |
Definition at line 814 of file gsmcal.c.
References CAL_CONTACTID, CAL_DESCRIPTION, CAL_END_DATETIME, CAL_LAST_MODIFIED, CAL_LOCATION, CAL_LUID, CAL_PHONE, CAL_PRIVATE, CAL_REPEAT_COUNT, CAL_REPEAT_DAY, CAL_REPEAT_DAYOFWEEK, CAL_REPEAT_DAYOFYEAR, CAL_REPEAT_FREQUENCY, CAL_REPEAT_MONTH, CAL_REPEAT_STARTDATE, CAL_REPEAT_STOPDATE, CAL_REPEAT_WEEKOFMONTH, CAL_SILENT_ALARM_DATETIME, CAL_START_DATETIME, CAL_TEXT, CAL_TONE_ALARM_DATETIME, GSM_SubCalendarEntry::Date, GSM_DateTime::Day, GSM_CalendarEntry::Entries, GSM_CalendarEntry::EntriesNum, GSM_SubCalendarEntry::EntryType, ERR_EMPTY, ERR_NONE, GSM_CAL_BIRTHDAY, GSM_CAL_MEMO, GSM_EncodeVCAL_RRULE(), GSM_Translate_Category_To_VCal(), GSM_DateTime::Hour, GSM_CalendarEntry::Location, GSM_DateTime::Minute, Mozilla_iCalendar, GSM_SubCalendarEntry::Number, Siemens_VCalendar, GSM_SubCalendarEntry::Text, GSM_CalendarEntry::Type, VC_StoreDate(), VC_StoreDateTime(), VC_StoreLine(), VC_StoreText(), and VCALTimeDiff().
Referenced by GSM_EncodeMultiPartSMS().
| GSM_Error GSM_EncodeVNTFile | ( | char * | Buffer, |
| const size_t | buff_len, | ||
| size_t * | Length, | ||
| GSM_NoteEntry * | Note | ||
| ) |
Encodes vNote to buffer.
| Buffer | Storage for data. | |
| [in] | buff_len | Size of output buffer. |
| Length | Pointer to current position in data (will be incremented). | |
| Note | Note to encode. |
Definition at line 2066 of file gsmcal.c.
References ERR_NONE, FALSE, GSM_NoteEntry::Text, VC_StoreLine(), and VC_StoreText().
| GSM_Error GSM_EncodeVTODO | ( | char * | Buffer, |
| const size_t | buff_len, | ||
| size_t * | Length, | ||
| const GSM_ToDoEntry * | note, | ||
| const gboolean | header, | ||
| const GSM_VToDoVersion | Version | ||
| ) |
Encodes vTodo to buffer.
| Buffer | Storage for data. | |
| [in] | buff_len | Size of output buffer. |
| Length | Pointer to current position in data (will be incremented). | |
| note | Note to encode. | |
| header | Whether to include vCalendar header. | |
| Version | Format of vTodo to create. |
Definition at line 1038 of file gsmcal.c.
References GSM_SubToDoEntry::Date, GSM_DateTime::Day, GSM_ToDoEntry::Entries, GSM_ToDoEntry::EntriesNum, GSM_SubToDoEntry::EntryType, ERR_NONE, GSM_CAL_BIRTHDAY, GSM_Priority_High, GSM_Priority_INVALID, GSM_Priority_Low, GSM_Priority_Medium, GSM_Priority_None, GSM_Translate_Category_To_VCal(), GSM_DateTime::Hour, GSM_ToDoEntry::Location, GSM_DateTime::Minute, GSM_DateTime::Month, Mozilla_VToDo, GSM_SubToDoEntry::Number, GSM_ToDoEntry::Priority, GSM_SubToDoEntry::Text, TODO_ALARM_DATETIME, TODO_CATEGORY, TODO_COMPLETED, TODO_COMPLETED_DATETIME, TODO_CONTACTID, TODO_DESCRIPTION, TODO_END_DATETIME, TODO_LAST_MODIFIED, TODO_LOCATION, TODO_LUID, TODO_PHONE, TODO_PRIVATE, TODO_SILENT_ALARM_DATETIME, TODO_START_DATETIME, TODO_TEXT, GSM_ToDoEntry::Type, VC_StoreDateTime(), VC_StoreLine(), VC_StoreText(), and GSM_DateTime::Year.
Referenced by GSM_EncodeMultiPartSMS().
| GSM_Error GSM_GetAlarm | ( | GSM_StateMachine * | s, |
| GSM_Alarm * | Alarm | ||
| ) |
Reads alarm set in phone.
| s | State machine pointer. |
| Alarm | Storage for alarm. |
Reads alarm set in phone.
Definition at line 255 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetAlarm, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| GSM_Error GSM_GetCalendar | ( | GSM_StateMachine * | s, |
| GSM_CalendarEntry * | Note | ||
| ) |
Retrieves calendar entry.
| s | State machine pointer. |
| Note | Storage for note. |
Retrieves calendar entry.
Definition at line 1424 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetCalendar, _GSM_StateMachine::Phone, PRINT_CALENDAR_INFO, and PRINT_LOG_ERROR.
| void GSM_GetCalendarRecurranceRepeat | ( | GSM_Debug_Info * | di, |
| unsigned char * | rec, | ||
| unsigned char * | endday, | ||
| GSM_CalendarEntry * | entry | ||
| ) |
Definition at line 137 of file gsmcal.c.
References CAL_REPEAT_DAY, CAL_REPEAT_DAYOFWEEK, CAL_REPEAT_FREQUENCY, CAL_REPEAT_MONTH, CAL_REPEAT_STOPDATE, CAL_START_DATETIME, GSM_SubCalendarEntry::Date, GSM_DateTime::Day, GSM_CalendarEntry::Entries, GSM_CalendarEntry::EntriesNum, GSM_SubCalendarEntry::EntryType, GetDayOfWeek(), GetTimeDifference(), GSM_DateTime::Hour, GSM_DateTime::Minute, GSM_DateTime::Month, GSM_SubCalendarEntry::Number, GSM_DateTime::Second, smfprintf(), TRUE, and GSM_DateTime::Year.
Referenced by NOKIA_EncodeDateTime().
| GSM_Error GSM_GetCalendarSettings | ( | GSM_StateMachine * | s, |
| GSM_CalendarSettings * | settings | ||
| ) |
Reads calendar settings.
| s | State machine pointer. |
| settings | Storage for settings. |
Reads calendar settings.
Definition at line 1509 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetCalendarSettings, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| GSM_Error GSM_GetCalendarStatus | ( | GSM_StateMachine * | s, |
| GSM_CalendarStatus * | Status | ||
| ) |
Retrieves calendar status (number of used entries).
| s | State machine pointer. |
| Status | Storage for status. |
Retrieves calendar status (number of used entries).
Definition at line 1411 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetCalendarStatus, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| GSM_Error GSM_GetNextCalendar | ( | GSM_StateMachine * | s, |
| GSM_CalendarEntry * | Note, | ||
| gboolean | start | ||
| ) |
Retrieves calendar entry. This is useful for continuous reading of all calendar entries.
| s | State machine pointer. |
| Note | Storage for note, if start is FALSE, should contain data from previous read (at least position). |
| start | Whether we're doing initial read or continue in reading. |
Retrieves calendar entry. This is useful for continuous reading of all calendar entries.
Definition at line 1439 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetNextCalendar, _GSM_StateMachine::Phone, PRINT_CALENDAR_INFO, PRINT_LOG_ERROR, and PRINT_START.
| gboolean GSM_IsCalendarNoteFromThePast | ( | GSM_CalendarEntry * | note | ) |
Detects whether calendar note is in past.
| note | Note to check. |
Definition at line 224 of file gsmcal.c.
References CAL_REPEAT_DAY, CAL_REPEAT_DAYOFWEEK, CAL_REPEAT_DAYOFYEAR, CAL_REPEAT_FREQUENCY, CAL_REPEAT_MONTH, CAL_REPEAT_STOPDATE, CAL_REPEAT_WEEKOFMONTH, CAL_START_DATETIME, GSM_SubCalendarEntry::Date, GSM_DateTime::Day, GSM_CalendarEntry::Entries, GSM_CalendarEntry::EntriesNum, GSM_SubCalendarEntry::EntryType, FALSE, GSM_CAL_BIRTHDAY, GSM_GetCurrentDateTime(), GSM_SetCalendarRecurranceRepeat(), GSM_DateTime::Month, TRUE, GSM_CalendarEntry::Type, and GSM_DateTime::Year.
| int GSM_Make_VCAL_Lines | ( | unsigned char * | Buffer, |
| int * | lBuffer | ||
| ) |
Prepare input buffer (notably line continuations).
Definition at line 1239 of file gsmcal.c.
References ERR_NONE, and ERR_UNKNOWN.
Referenced by GSM_DecodeVCALENDAR_VTODO().
| GSM_Error GSM_SetAlarm | ( | GSM_StateMachine * | s, |
| GSM_Alarm * | Alarm | ||
| ) |
Sets alarm in phone.
| s | State machine pointer. |
| Alarm | Alarm to set. |
Sets alarm in phone.
Definition at line 268 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_Phone_Functions::SetAlarm.
| GSM_Error GSM_SetCalendar | ( | GSM_StateMachine * | s, |
| GSM_CalendarEntry * | Note | ||
| ) |
Sets calendar entry
| s | State machine pointer. |
| Note | New note values, needs to contain valid position. |
Sets calendar entry
Definition at line 1454 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_CALENDAR_INFO, PRINT_LOG_ERROR, and GSM_Phone_Functions::SetCalendar.
| void GSM_SetCalendarRecurranceRepeat | ( | GSM_Debug_Info * | di, |
| unsigned char * | rec, | ||
| unsigned char * | endday, | ||
| GSM_CalendarEntry * | entry | ||
| ) |
Definition at line 31 of file gsmcal.c.
References CAL_REPEAT_DAY, CAL_REPEAT_DAYOFWEEK, CAL_REPEAT_FREQUENCY, CAL_REPEAT_MONTH, CAL_REPEAT_STOPDATE, CAL_START_DATETIME, GSM_SubCalendarEntry::Date, GSM_DateTime::Day, GSM_CalendarEntry::Entries, GSM_CalendarEntry::EntriesNum, GSM_SubCalendarEntry::EntryType, Fill_Time_T(), GetDayOfWeek(), GSM_DateTime::Month, GSM_SubCalendarEntry::Number, smfprintf(), and GSM_DateTime::Year.
Referenced by GSM_IsCalendarNoteFromThePast(), and NOKIA_EncodeDateTime().
| GSM_Error GSM_SetCalendarSettings | ( | GSM_StateMachine * | s, |
| GSM_CalendarSettings * | settings | ||
| ) |
Sets calendar settings.
| s | State machine pointer. |
| settings | New calendar settings. |
Sets calendar settings.
Definition at line 1522 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_Phone_Functions::SetCalendarSettings.
| void GSM_ToDo_AdjustDate | ( | GSM_ToDoEntry * | note, |
| GSM_DeltaTime * | delta | ||
| ) |
Definition at line 784 of file gsmcal.c.
References GSM_SubToDoEntry::Date, GSM_ToDoEntry::Entries, GSM_ToDoEntry::EntriesNum, GSM_SubToDoEntry::EntryType, GSM_AddTime(), TODO_ALARM_DATETIME, TODO_CATEGORY, TODO_COMPLETED, TODO_COMPLETED_DATETIME, TODO_CONTACTID, TODO_DESCRIPTION, TODO_END_DATETIME, TODO_LAST_MODIFIED, TODO_LOCATION, TODO_LUID, TODO_PHONE, TODO_PRIVATE, TODO_SILENT_ALARM_DATETIME, TODO_START_DATETIME, and TODO_TEXT.
Referenced by GSM_DecodeVCALENDAR_VTODO().
| void GSM_ToDoFindDefaultTextTimeAlarmCompleted | ( | GSM_ToDoEntry * | entry, |
| int * | Text, | ||
| int * | Alarm, | ||
| int * | Completed, | ||
| int * | EndTime, | ||
| int * | Phone | ||
| ) |
Definition at line 1005 of file gsmcal.c.
References GSM_ToDoEntry::Entries, GSM_ToDoEntry::EntriesNum, GSM_SubToDoEntry::EntryType, TODO_ALARM_DATETIME, TODO_COMPLETED, TODO_END_DATETIME, TODO_PHONE, TODO_SILENT_ALARM_DATETIME, and TODO_TEXT.
| GSM_Error GSM_Translate_Category_From_VCal | ( | const char * | string, |
| GSM_CalendarNoteType * | Type | ||
| ) |
Definition at line 370 of file gsmcal.c.
References ERR_NONE, GSM_CAL_BIRTHDAY, GSM_CAL_CALL, GSM_CAL_MEETING, GSM_CAL_MEMO, GSM_CAL_REMINDER, GSM_CAL_SHOPPING, GSM_CAL_TRAVEL, and GSM_CAL_VACATION.
Referenced by GSM_DecodeVCALENDAR_VTODO().
| GSM_Error GSM_Translate_Category_To_VCal | ( | char * | string, |
| const GSM_CalendarNoteType | Type | ||
| ) |
Definition at line 404 of file gsmcal.c.
References ERR_NONE, GSM_CAL_BIRTHDAY, GSM_CAL_CALL, GSM_CAL_MEETING, GSM_CAL_MEMO, GSM_CAL_REMINDER, GSM_CAL_SHOPPING, GSM_CAL_TRAVEL, and GSM_CAL_VACATION.
Referenced by GSM_EncodeVCALENDAR(), and GSM_EncodeVTODO().
| GSM_DeltaTime ReadVCALTriggerTime | ( | unsigned char * | Buffer | ) |
Definition at line 1205 of file gsmcal.c.
References GSM_DeltaTime::Day, GSM_DeltaTime::Hour, GSM_DeltaTime::Minute, GSM_DeltaTime::Month, GSM_DeltaTime::Second, GSM_DeltaTime::Timezone, and GSM_DeltaTime::Year.
Referenced by GSM_DecodeVCALENDAR_VTODO().
| GSM_DateTime VCALTimeDiff | ( | GSM_DateTime * | Alarm, |
| GSM_DateTime * | Time | ||
| ) |
Function to compute time difference between alarm and event time.
Definition at line 320 of file gsmcal.c.
References GSM_DateTime::Day, GSM_DateTime::Hour, GSM_DateTime::Minute, GSM_DateTime::Month, GSM_DateTime::Second, and GSM_DateTime::Year.
Referenced by GSM_EncodeVCALENDAR().