Tizen Native API
5.5
|
The calendar filter API provides the set of the definitions and interfaces that enable you to handle filter.
#include <calendar.h>
Functions | |
int | calendar_filter_create (const char *view_uri, calendar_filter_h *filter) |
Creates a filter handle. | |
int | calendar_filter_destroy (calendar_filter_h filter) |
Destroys a filter handle. | |
int | calendar_filter_add_str (calendar_filter_h filter, unsigned int property_id, calendar_match_str_flag_e match, const char *match_value) |
Adds a condition for the string type property. | |
int | calendar_filter_add_int (calendar_filter_h filter, unsigned int property_id, calendar_match_int_flag_e match, int match_value) |
Adds a condition for the integer type property. | |
int | calendar_filter_add_double (calendar_filter_h filter, unsigned int property_id, calendar_match_int_flag_e match, double match_value) |
Adds a condition for the double type property. | |
int | calendar_filter_add_lli (calendar_filter_h filter, unsigned int property_id, calendar_match_int_flag_e match, long long int match_value) |
Adds a condition for the long long int type property. | |
int | calendar_filter_add_caltime (calendar_filter_h filter, unsigned int property_id, calendar_match_int_flag_e match, calendar_time_s match_value) |
Adds a condition for the calendar_time_s type property. | |
int | calendar_filter_add_filter (calendar_filter_h parent_filter, calendar_filter_h child_filter) |
Adds a child filter to a parent filter. | |
int | calendar_filter_add_operator (calendar_filter_h filter, calendar_filter_operator_e operator_type) |
Adds an operator between conditions. | |
Defines | |
#define | CALENDAR_BOOK_FILTER_ALL -1 |
Definition for all calendar books. |
#define CALENDAR_BOOK_FILTER_ALL -1 |
Definition for all calendar books.
Enumeration for the filter match type of an integer.
Enumeration for the filter match type of a string.
int calendar_filter_add_caltime | ( | calendar_filter_h | filter, |
unsigned int | property_id, | ||
calendar_match_int_flag_e | match, | ||
calendar_time_s | match_value | ||
) |
Adds a condition for the calendar_time_s type property.
[in] | filter | The filter handle |
[in] | property_id | The property ID to add a condition |
[in] | match | The match flag |
[in] | match_value | The match value |
0
on success, otherwise a negative error value CALENDAR_ERROR_NONE | Successful |
CALENDAR_ERROR_INVALID_PARAMETER | Invalid parameter |
CALENDAR_ERROR_SYSTEM | Internal system module error |
CALENDAR_ERROR_NOT_SUPPORTED | Not supported |
int calendar_filter_add_double | ( | calendar_filter_h | filter, |
unsigned int | property_id, | ||
calendar_match_int_flag_e | match, | ||
double | match_value | ||
) |
Adds a condition for the double type property.
[in] | filter | The filter handle |
[in] | property_id | The property ID to add a condition |
[in] | match | The match flag |
[in] | match_value | The match value |
0
on success, otherwise a negative error value CALENDAR_ERROR_NONE | Successful |
CALENDAR_ERROR_INVALID_PARAMETER | Invalid parameter |
CALENDAR_ERROR_SYSTEM | Internal system module error |
CALENDAR_ERROR_NOT_SUPPORTED | Not supported |
int calendar_filter_add_filter | ( | calendar_filter_h | parent_filter, |
calendar_filter_h | child_filter | ||
) |
Adds a child filter to a parent filter.
[in] | parent_filter | The parent filter handle |
[in] | child_filter | The child filter handle |
0
on success, otherwise a negative error value CALENDAR_ERROR_NONE | Successful |
CALENDAR_ERROR_INVALID_PARAMETER | Invalid parameter |
CALENDAR_ERROR_SYSTEM | Internal system module error |
CALENDAR_ERROR_NOT_SUPPORTED | Not supported |
int calendar_filter_add_int | ( | calendar_filter_h | filter, |
unsigned int | property_id, | ||
calendar_match_int_flag_e | match, | ||
int | match_value | ||
) |
Adds a condition for the integer type property.
[in] | filter | The filter handle |
[in] | property_id | The property ID to add a condition |
[in] | match | The match flag |
[in] | match_value | The match value |
0
on success, otherwise a negative error value CALENDAR_ERROR_NONE | Successful |
CALENDAR_ERROR_INVALID_PARAMETER | Invalid parameter |
CALENDAR_ERROR_SYSTEM | Internal system module error |
CALENDAR_ERROR_NOT_SUPPORTED | Not supported |
int calendar_filter_add_lli | ( | calendar_filter_h | filter, |
unsigned int | property_id, | ||
calendar_match_int_flag_e | match, | ||
long long int | match_value | ||
) |
Adds a condition for the long long int type property.
[in] | filter | The filter handle |
[in] | property_id | The property ID to add a condition |
[in] | match | The match flag |
[in] | match_value | The match value |
0
on success, otherwise a negative error value CALENDAR_ERROR_NONE | Successful |
CALENDAR_ERROR_INVALID_PARAMETER | Invalid parameter |
CALENDAR_ERROR_SYSTEM | Internal system module error |
CALENDAR_ERROR_NOT_SUPPORTED | Not supported |
int calendar_filter_add_operator | ( | calendar_filter_h | filter, |
calendar_filter_operator_e | operator_type | ||
) |
Adds an operator between conditions.
[in] | filter | The filter handle |
[in] | operator_type | The operator type |
0
on success, otherwise a negative error value CALENDAR_ERROR_NONE | Successful |
CALENDAR_ERROR_INVALID_PARAMETER | Invalid parameter |
CALENDAR_ERROR_SYSTEM | Internal system module error |
CALENDAR_ERROR_NOT_SUPPORTED | Not supported |
int calendar_filter_add_str | ( | calendar_filter_h | filter, |
unsigned int | property_id, | ||
calendar_match_str_flag_e | match, | ||
const char * | match_value | ||
) |
Adds a condition for the string type property.
[in] | filter | The filter handle |
[in] | property_id | The property ID to add a condition |
[in] | match | The match flag |
[in] | match_value | The match value |
0
on success, otherwise a negative error value CALENDAR_ERROR_NONE | Successful |
CALENDAR_ERROR_INVALID_PARAMETER | Invalid parameter |
CALENDAR_ERROR_SYSTEM | Internal system module error |
CALENDAR_ERROR_NOT_SUPPORTED | Not supported |
int calendar_filter_create | ( | const char * | view_uri, |
calendar_filter_h * | filter | ||
) |
Creates a filter handle.
[in] | view_uri | The view URI of a filter |
[out] | filter | The filter handle |
0
on success, otherwise a negative error value CALENDAR_ERROR_NONE | Successful |
CALENDAR_ERROR_INVALID_PARAMETER | Invalid parameter |
CALENDAR_ERROR_OUT_OF_MEMORY | Out of memory |
CALENDAR_ERROR_SYSTEM | Internal system module error |
CALENDAR_ERROR_NOT_SUPPORTED | Not supported |
int calendar_filter_destroy | ( | calendar_filter_h | filter | ) |
Destroys a filter handle.
[in] | filter | The filter handle |
0
on success, otherwise a negative error value CALENDAR_ERROR_NONE | Successful |
CALENDAR_ERROR_INVALID_PARAMETER | Invalid parameter |
CALENDAR_ERROR_SYSTEM | Internal system module error |
CALENDAR_ERROR_NOT_SUPPORTED | Not supported |