Gammu internals
1.38.0
|
Data Structures | |
struct | GSM_ToDoStatus |
struct | GSM_SubToDoEntry |
struct | GSM_ToDoEntry |
Functions | |
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) |
GSM_Error | GSM_GetToDoStatus (GSM_StateMachine *s, GSM_ToDoStatus *status) |
GSM_Error | GSM_GetToDo (GSM_StateMachine *s, GSM_ToDoEntry *ToDo) |
GSM_Error | GSM_GetNextToDo (GSM_StateMachine *s, GSM_ToDoEntry *ToDo, gboolean start) |
GSM_Error | GSM_SetToDo (GSM_StateMachine *s, GSM_ToDoEntry *ToDo) |
GSM_Error | GSM_AddToDo (GSM_StateMachine *s, GSM_ToDoEntry *ToDo) |
GSM_Error | GSM_DeleteToDo (GSM_StateMachine *s, GSM_ToDoEntry *ToDo) |
GSM_Error | GSM_DeleteAllToDo (GSM_StateMachine *s) |
Todo entries manipulations.
enum GSM_ToDo_Priority |
Priority of to do.
Enumerator | |
---|---|
GSM_Priority_None | |
GSM_Priority_High | |
GSM_Priority_Medium | |
GSM_Priority_Low | |
GSM_Priority_INVALID |
Definition at line 433 of file gammu-calendar.h.
enum GSM_ToDoType |
Types of to do values. In parenthesis is member of GSM_SubToDoEntry, where value is stored.
Definition at line 365 of file gammu-calendar.h.
enum GSM_VToDoVersion |
Format of vTodo.
Definition at line 538 of file gammu-calendar.h.
GSM_Error GSM_AddToDo | ( | GSM_StateMachine * | s, |
GSM_ToDoEntry * | ToDo | ||
) |
Adds ToDo in phone.
s | State machine pointer. |
ToDo | ToDo to add. |
Adds ToDo in phone.
Definition at line 1370 of file api.c.
References GSM_Phone_Functions::AddToDo, CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and PRINT_TODO_INFO.
GSM_Error GSM_DeleteAllToDo | ( | GSM_StateMachine * | s | ) |
Deletes all todo entries in phone.
s | State machine pointer. |
Deletes all todo entries in phone.
Definition at line 1398 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone_Functions::DeleteAllToDo, GSM_Phone::Functions, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
GSM_Error GSM_DeleteToDo | ( | GSM_StateMachine * | s, |
GSM_ToDoEntry * | ToDo | ||
) |
Deletes ToDo entry in phone.
s | State machine pointer. |
ToDo | ToDo to delete, only location is actually used. |
Deletes ToDo entry in phone.
Definition at line 1384 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone_Functions::DeleteToDo, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and PRINT_TODO_INFO.
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_GetNextToDo | ( | GSM_StateMachine * | s, |
GSM_ToDoEntry * | ToDo, | ||
gboolean | start | ||
) |
Reads ToDo from phone.
s | State machine pointer. |
ToDo | 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. |
Reads ToDo from phone.
Definition at line 1341 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetNextToDo, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, PRINT_START, and PRINT_TODO_INFO.
GSM_Error GSM_GetToDo | ( | GSM_StateMachine * | s, |
GSM_ToDoEntry * | ToDo | ||
) |
Reads ToDo from phone.
s | State machine pointer. |
ToDo | Storage for note. |
Reads ToDo from phone.
Definition at line 1327 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetToDo, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and PRINT_TODO_INFO.
GSM_Error GSM_GetToDoStatus | ( | GSM_StateMachine * | s, |
GSM_ToDoStatus * | status | ||
) |
Gets status of ToDos (count of used entries).
s | State machine pointer. |
status | Storage for todo status. |
Gets status of ToDos (count of used entries).
Definition at line 1314 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetToDoStatus, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
GSM_Error GSM_SetToDo | ( | GSM_StateMachine * | s, |
GSM_ToDoEntry * | ToDo | ||
) |
Sets ToDo in phone.
s | State machine pointer. |
ToDo | ToDo to set, should contain valid location. |
Sets ToDo in phone.
Definition at line 1356 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, PRINT_TODO_INFO, and GSM_Phone_Functions::SetToDo.