2 * \file gammu-category.h
7 #ifndef __gammu_category_h
8 #define __gammu_category_h
11 * \defgroup Category Category
12 * Categories handling.
15 #include <gammu-limits.h>
16 #include <gammu-error.h>
17 #include <gammu-statemachine.h>
30 * Phonebook entry category
43 GSM_CategoryType Type
;
45 * Location of category
51 unsigned char Name
[(GSM_MAX_CATEGORY_NAME_LENGTH
+ 1) * 2];
55 * Status of categories.
62 GSM_CategoryType Type
;
64 * Number of used category names.
70 * Reads category from phone.
72 * \param s State machine pointer.
73 * \param Category Storage for category, containing its type and location.
79 GSM_Error
GSM_GetCategory(GSM_StateMachine
* s
, GSM_Category
* Category
);
82 * Adds category to phone.
84 * \param s State machine pointer.
85 * \param Category New category, containing its type and location.
91 GSM_Error
GSM_AddCategory(GSM_StateMachine
* s
, GSM_Category
* Category
);
94 * Reads category status (number of used entries) from phone.
96 * \param s State machine pointer.
97 * \param Status Category status, fill in type before calling.
103 GSM_Error
GSM_GetCategoryStatus(GSM_StateMachine
* s
,
104 GSM_CategoryStatus
* Status
);
107 /* Editor configuration
108 * vim: noexpandtab sw=8 ts=8 sts=8 tw=72: