Gammu internals
1.38.0
|
Data Structures | |
struct | GSM_Category |
struct | GSM_CategoryStatus |
Enumerations | |
enum | GSM_CategoryType { Category_ToDo = 1, Category_Phonebook } |
Functions | |
GSM_Error | GSM_GetCategory (GSM_StateMachine *s, GSM_Category *Category) |
GSM_Error | GSM_AddCategory (GSM_StateMachine *s, GSM_Category *Category) |
GSM_Error | GSM_GetCategoryStatus (GSM_StateMachine *s, GSM_CategoryStatus *Status) |
GSM_Error | GSM_GetDateTime (GSM_StateMachine *s, GSM_DateTime *date_time) |
GSM_Error | GSM_SetDateTime (GSM_StateMachine *s, GSM_DateTime *date_time) |
Categories handling.
enum GSM_CategoryType |
Type of category
Enumerator | |
---|---|
Category_ToDo | Todo entry category |
Category_Phonebook | Phonebook entry category |
Definition at line 28 of file gammu-category.h.
GSM_Error GSM_AddCategory | ( | GSM_StateMachine * | s, |
GSM_Category * | Category | ||
) |
Adds category to phone.
s | State machine pointer. |
Category | New category, containing its type and location. |
Adds category to phone.
Definition at line 476 of file api.c.
References GSM_Phone_Functions::AddCategory, CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
GSM_Error GSM_GetCategory | ( | GSM_StateMachine * | s, |
GSM_Category * | Category | ||
) |
Reads category from phone.
s | State machine pointer. |
Category | Storage for category, containing its type and location. |
Reads category from phone.
Definition at line 463 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetCategory, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
GSM_Error GSM_GetCategoryStatus | ( | GSM_StateMachine * | s, |
GSM_CategoryStatus * | Status | ||
) |
Reads category status (number of used entries) from phone.
s | State machine pointer. |
Status | Category status, fill in type before calling. |
Reads category status (number of used entries) from phone.
Definition at line 489 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetCategoryStatus, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
GSM_Error GSM_GetDateTime | ( | GSM_StateMachine * | s, |
GSM_DateTime * | date_time | ||
) |
Reads date and time from phone.
s | State machine pointer. |
date_time | Storage for date. |
Reads date and time from phone.
Definition at line 229 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetDateTime, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
GSM_Error GSM_SetDateTime | ( | GSM_StateMachine * | s, |
GSM_DateTime * | date_time | ||
) |
Sets date and time in phone.
s | State machine pointer. |
date_time | Date to set. |
Sets date and time in phone.
Definition at line 242 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_Phone_Functions::SetDateTime.