Category

GSM_Error GSM_GetCategory(GSM_StateMachine * s, GSM_Category * Category)

Reads category from phone.

Return
Error code
Parameters
  • s: State machine pointer.
  • Category: Storage for category, containing its type and location.

GSM_Error GSM_AddCategory(GSM_StateMachine * s, GSM_Category * Category)

Adds category to phone.

Return
Error code
Parameters
  • s: State machine pointer.
  • Category: New category, containing its type and location.

GSM_Error GSM_GetCategoryStatus(GSM_StateMachine * s, GSM_CategoryStatus * Status)

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

Return
Error code
Parameters
  • s: State machine pointer.
  • Status: Category status, fill in type before calling.

enum GSM_CategoryType

Type of category

Values:

Category_ToDo = 1

Todo entry category

Category_Phonebook

Phonebook entry category

struct GSM_Category

Category entry.

Public Members

GSM_CategoryType Type

Type of category

int Location

Location of category

unsigned char GSM_Category::Name[(GSM_MAX_CATEGORY_NAME_LENGTH+1) *2]

Name of category

struct GSM_CategoryStatus

Status of categories.

Public Members

GSM_CategoryType Type

Type of category.

int Used

Number of used category names.