Gammu API  1.38.0
Category

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)
 

Detailed Description

Categories handling.

Enumeration Type Documentation

§ 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.

Function Documentation

§ GSM_AddCategory()

GSM_Error GSM_AddCategory ( GSM_StateMachine s,
GSM_Category Category 
)

Adds category to phone.

Parameters
sState machine pointer.
CategoryNew category, containing its type and location.
Returns
Error code

§ GSM_GetCategory()

GSM_Error GSM_GetCategory ( GSM_StateMachine s,
GSM_Category Category 
)

Reads category from phone.

Parameters
sState machine pointer.
CategoryStorage for category, containing its type and location.
Returns
Error code

§ GSM_GetCategoryStatus()

GSM_Error GSM_GetCategoryStatus ( GSM_StateMachine s,
GSM_CategoryStatus Status 
)

Reads category status (number of used entries) from phone.

Parameters
sState machine pointer.
StatusCategory status, fill in type before calling.
Returns
Error code

§ GSM_GetDateTime()

GSM_Error GSM_GetDateTime ( GSM_StateMachine s,
GSM_DateTime date_time 
)

Reads date and time from phone.

Parameters
sState machine pointer.
date_timeStorage for date.
Returns
Error code

§ GSM_SetDateTime()

GSM_Error GSM_SetDateTime ( GSM_StateMachine s,
GSM_DateTime date_time 
)

Sets date and time in phone.

Parameters
sState machine pointer.
date_timeDate to set.
Returns
Error code