The calendar list API provides the set of the definitions and interfaces that enable you to handle list.
Required Header
#include <calendar.h>
Functions |
int | calendar_list_create (calendar_list_h *out_list) |
| Creates a calendar list handle.
|
int | calendar_list_destroy (calendar_list_h list, bool delete_record) |
| Destroys a calendar list handle and releases all its resources.
|
int | calendar_list_get_count (calendar_list_h list, int *count) |
| Retrieves the number of calendar entities in a calendar list.
|
int | calendar_list_add (calendar_list_h list, calendar_record_h record) |
| Adds a record to the calendar list.
|
int | calendar_list_remove (calendar_list_h list, calendar_record_h record) |
| Removes a record from the calendar list.
|
int | calendar_list_get_current_record_p (calendar_list_h list, calendar_record_h *record) |
| Retrieves a record from the calendar list.
|
int | calendar_list_prev (calendar_list_h list) |
| Moves a calendar list to the previous position.
|
int | calendar_list_next (calendar_list_h list) |
| Moves a calendar list to the next position.
|
int | calendar_list_first (calendar_list_h list) |
| Moves a calendar list to the first position.
|
int | calendar_list_last (calendar_list_h list) |
| Moves a calendar list to the last position.
|
Function Documentation
Adds a record to the calendar list.
- Since :
- 2.3
- Parameters:
-
[in] | list | The calendar list handle |
[in] | record | The record handle |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- calendar_list_remove()
Creates a calendar list handle.
- Since :
- 2.3
- Parameters:
-
[out] | out_list | The calendar list handle |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- calendar_list_destroy()
Destroys a calendar list handle and releases all its resources.
- Since :
- 2.3
- Parameters:
-
[in] | list | The calendar list handle |
[in] | delete_record | If true , child records are destroyed automatically, otherwise false |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- calendar_list_create()
Moves a calendar list to the first position.
- Since :
- 2.3
- Parameters:
-
[in] | list | The calendar list handle |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- calendar_list_last()
Retrieves the number of calendar entities in a calendar list.
- Since :
- 2.3
- Parameters:
-
[in] | list | The calendar list handle |
[out] | count | The count of the calendar entity |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- calendar_list_add()
Retrieves a record from the calendar list.
The default current record is the first record.
- Since :
- 2.3
- Parameters:
-
[in] | list | The calendar list handle |
[out] | record | The record handle |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Moves a calendar list to the last position.
- Since :
- 2.3
- Parameters:
-
[in] | list | The calendar list handle |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- calendar_list_first()
Moves a calendar list to the next position.
- Since :
- 2.3
- Parameters:
-
[in] | list | The calendar list handle |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- calendar_list_prev()
Moves a calendar list to the previous position.
- Since :
- 2.3
- Parameters:
-
[in] | list | The calendar list handle |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- calendar_list_next()
Removes a record from the calendar list.
If the record is the current record, then the current record is changed to the next record.
If the record is the last record then the current record will be NULL
.
- Since :
- 2.3
- Parameters:
-
[in] | list | The calendar list handle |
[in] | record | The record handle |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- calendar_list_add()