dlog
capi-base-common
gio-2.0
- gio-unix-2.0)
+ gio-unix-2.0
+ capi-system-info)
INCLUDE_DIRECTORIES(${client_pkgs_INCLUDE_DIRS})
LINK_DIRECTORIES(${client_pkgs_LIBRARY_DIRS})
EXPORT_API int calendar_db_insert_record(calendar_record_h record, int* id)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_update_record(calendar_record_h record)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_delete_record(const char* view_uri, int id)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_replace_record(calendar_record_h record, int record_id)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_get_record(const char* view_uri, int id, calendar_record_h* out_record)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_get_all_records(const char* view_uri, int offset, int limit, calendar_list_h* out_list)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_get_records_with_query(calendar_query_h query, int offset, int limit, calendar_list_h* out_list)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_clean_after_sync(int book_id, int calendar_db_version)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_get_count(const char *view_uri, int *out_count)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_get_count_with_query(calendar_query_h query, int *out_count)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_insert_records(calendar_list_h record_list, int** record_id_array, int* count)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_update_records(calendar_list_h record_list)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_delete_records(const char* view_uri, int record_id_array[], int count)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_replace_records(calendar_list_h record_list, int *record_id_array, int count)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
int calendar_db_version, calendar_list_h* record_list, int* current_version)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_get_current_version(int* current_version)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_add_changed_cb(const char* view_uri, calendar_db_changed_cb callback, void* user_data)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_remove_changed_cb(const char* view_uri, calendar_db_changed_cb callback, void* user_data)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_insert_vcalendars(const char* vcalendar_stream, int **record_id_array, int *count)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_replace_vcalendars(const char* vcalendar_stream, int *record_id_array, int count)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_get_last_change_version(int* last_version)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
int original_event_id, int calendar_db_version, calendar_list_h* record_list)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
int ret = 0;
calendar_h handle = NULL;
EXPORT_API int calendar_db_link_record(int base_id, int record_id)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
RETV_IF(base_id <= 0, CALENDAR_ERROR_INVALID_PARAMETER);
RETV_IF(record_id <= 0, CALENDAR_ERROR_INVALID_PARAMETER);
EXPORT_API int calendar_db_unlink_record(int record_id)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
RETV_IF(record_id <= 0, CALENDAR_ERROR_INVALID_PARAMETER);
EXPORT_API int calendar_reminder_add_cb(calendar_reminder_cb callback, void *user_data)
{
+ CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
RETV_IF(NULL == callback, CALENDAR_ERROR_INVALID_PARAMETER);
pthread_mutex_lock(&cal_mutex_reminder);
EXPORT_API int calendar_reminder_remove_cb(calendar_reminder_cb callback, void *user_data)
{
+ CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
RETV_IF(NULL == callback, CALENDAR_ERROR_INVALID_PARAMETER);
pthread_mutex_lock(&cal_mutex_reminder);
EXPORT_API int calendar_connect(void)
{
CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret;
calendar_h handle = NULL;
unsigned int id = cal_client_get_pid();
EXPORT_API int calendar_disconnect(void)
{
+ CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret;
calendar_h handle = NULL;
unsigned int id = cal_client_get_pid();
EXPORT_API int calendar_connect_on_thread(void)
{
+ CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret;
calendar_h handle = NULL;
unsigned int id = cal_client_get_tid();
EXPORT_API int calendar_disconnect_on_thread(void)
{
+ CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret;
calendar_h handle = NULL;
unsigned int id = cal_client_get_tid();
EXPORT_API int calendar_connect_with_flags(unsigned int flags)
{
+ CAL_FN_CALL();
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret;
calendar_h handle = NULL;
unsigned int id = cal_client_get_pid();
EXPORT_API int calendar_filter_create(const char* view_uri, calendar_filter_h* out_filter)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_composite_filter_s *com_filter;
RETV_IF(NULL == view_uri, CALENDAR_ERROR_INVALID_PARAMETER);
EXPORT_API int calendar_filter_add_operator(calendar_filter_h filter, calendar_filter_operator_e op)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_composite_filter_s *com_filter;
RETV_IF(NULL == filter, CALENDAR_ERROR_INVALID_PARAMETER);
EXPORT_API int calendar_filter_add_filter(calendar_filter_h filter, calendar_filter_h add_filter)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_composite_filter_s *com_filter;
cal_composite_filter_s *com_filter2;
calendar_filter_h f = NULL;
EXPORT_API int calendar_filter_add_str(calendar_filter_h filter, unsigned int property_id,
calendar_match_str_flag_e match, const char* match_value)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_composite_filter_s *com_filter;
cal_attribute_filter_s *str_filter;
int ret;
EXPORT_API int calendar_filter_add_int(calendar_filter_h filter, unsigned int property_id,
calendar_match_int_flag_e match, int match_value)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_composite_filter_s *com_filter;
cal_attribute_filter_s *int_filter;
int ret;
EXPORT_API int calendar_filter_add_double(calendar_filter_h filter, unsigned int property_id,
calendar_match_int_flag_e match, double match_value)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_composite_filter_s *com_filter;
cal_attribute_filter_s *int_filter;
int ret;
EXPORT_API int calendar_filter_add_lli(calendar_filter_h filter, unsigned int property_id,
calendar_match_int_flag_e match, long long int match_value)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_composite_filter_s *com_filter;
cal_attribute_filter_s *int_filter;
int ret;
EXPORT_API int calendar_filter_add_caltime(calendar_filter_h filter, unsigned int property_id, calendar_match_int_flag_e match, calendar_time_s match_value)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_composite_filter_s *com_filter;
cal_attribute_filter_s *int_filter;
int ret;
EXPORT_API int calendar_filter_destroy(calendar_filter_h filter)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
RETV_IF(NULL == filter, CALENDAR_ERROR_INVALID_PARAMETER);
#ifdef CAL_IPC_CLIENT
#include <stdio.h>
#include <string.h>
+#include <system_info.h>
#define SAFE_STRDUP(src) (src) ? strdup((char *)src) : NULL
#define TLS
#endif
+#define CALENDAR_FEATURE "http://tizen.org/feature/calendar"
+#if defined(CAL_IPC_CLIENT)
+#define CHECK_CALENDAR_SUPPORTED(feature_name) \
+ do { \
+ bool is_supported = false; \
+ if (!system_info_get_platform_bool(feature_name, &is_supported)) { \
+ if (is_supported == false) { \
+ LOGE("[%s] feature is disabled", feature_name); \
+ return CALENDAR_ERROR_NOT_SUPPORTED; \
+ } \
+ } else { \
+ LOGE("Error - Feature getting from System Info"); \
+ return CALENDAR_ERROR_SYSTEM; \
+ } \
+ } while (0)
+#else
+#define CHECK_CALENDAR_SUPPORTED(feature_name)
+#endif
+
#endif /* __CAL_INTERNAL_H__ */
EXPORT_API int calendar_list_create(calendar_list_h* out_list)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_list_s *l = NULL;
RETV_IF(NULL == out_list, CALENDAR_ERROR_INVALID_PARAMETER);
EXPORT_API int calendar_list_get_count(calendar_list_h list, int *count)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_list_s *l = NULL;
RETV_IF(NULL == list, CALENDAR_ERROR_INVALID_PARAMETER);
EXPORT_API int calendar_list_add(calendar_list_h list, calendar_record_h record)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_list_s *l = NULL;
RETV_IF(NULL == list, CALENDAR_ERROR_INVALID_PARAMETER);
EXPORT_API int calendar_list_remove(calendar_list_h list, calendar_record_h record)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_list_s *l = NULL;
RETV_IF(NULL == list, CALENDAR_ERROR_INVALID_PARAMETER);
EXPORT_API int calendar_list_get_current_record_p(calendar_list_h list, calendar_record_h* record)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_list_s *l = NULL;
RETV_IF(NULL == list, CALENDAR_ERROR_INVALID_PARAMETER);
EXPORT_API int calendar_list_prev(calendar_list_h list)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_list_s *l = NULL;
RETV_IF(NULL == list, CALENDAR_ERROR_INVALID_PARAMETER);
EXPORT_API int calendar_list_next(calendar_list_h list)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_list_s *l = NULL;
RETV_IF(NULL == list, CALENDAR_ERROR_INVALID_PARAMETER);
EXPORT_API int calendar_list_first(calendar_list_h list)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_list_s *l = NULL;
RETV_IF(NULL == list, CALENDAR_ERROR_INVALID_PARAMETER);
EXPORT_API int calendar_list_last(calendar_list_h list)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_list_s *l = NULL;
RETV_IF(NULL == list, CALENDAR_ERROR_INVALID_PARAMETER);
EXPORT_API int calendar_list_destroy(calendar_list_h list, bool delete_record)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
GList *cursor;
cal_list_s *l = NULL;
EXPORT_API int calendar_query_create(const char* view_uri, calendar_query_h* out_query)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_query_s *query;
RETV_IF(NULL == view_uri, CALENDAR_ERROR_INVALID_PARAMETER);
EXPORT_API int calendar_query_set_projection(calendar_query_h query, unsigned int property_ids[], int count)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_query_s *que = NULL;
int i;
bool find;
EXPORT_API int calendar_query_set_distinct(calendar_query_h query, bool set)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_query_s *que = NULL;
RETV_IF(NULL == query, CALENDAR_ERROR_INVALID_PARAMETER);
EXPORT_API int calendar_query_set_filter(calendar_query_h query, calendar_filter_h filter)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_query_s *que;
calendar_filter_h new_filter;
int ret = CALENDAR_ERROR_NONE;
EXPORT_API int calendar_query_set_sort(calendar_query_h query, unsigned int property_id, bool asc)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_query_s *que;
bool find = false;
EXPORT_API int calendar_query_destroy(calendar_query_h query)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
cal_query_s *que;
RETV_IF(NULL == query, CALENDAR_ERROR_INVALID_PARAMETER);
EXPORT_API int calendar_record_create(const char* view_uri, calendar_record_h* out_record)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret = CALENDAR_ERROR_NONE;
cal_record_type_e type = CAL_RECORD_TYPE_INVALID;
EXPORT_API int calendar_record_destroy(calendar_record_h record, bool delete_child)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret = CALENDAR_ERROR_NONE;
RETV_IF(NULL == record, CALENDAR_ERROR_INVALID_PARAMETER);
EXPORT_API int calendar_record_clone(calendar_record_h record, calendar_record_h* out_record)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret = CALENDAR_ERROR_NONE;
cal_record_s *temp = (cal_record_s*)(record);
EXPORT_API int calendar_record_get_uri_p(calendar_record_h record, char** out_str)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret = CALENDAR_ERROR_NONE;
cal_record_s *temp = (cal_record_s*)(record);
EXPORT_API int calendar_record_get_str(calendar_record_h record, unsigned int property_id, char** out_str)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret = CALENDAR_ERROR_NONE;
cal_record_s *temp = (cal_record_s*)(record);
EXPORT_API int calendar_record_get_str_p(calendar_record_h record, unsigned int property_id, char** out_str)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret = CALENDAR_ERROR_NONE;
cal_record_s *temp = (cal_record_s*)(record);
return ret;
}
+
EXPORT_API int calendar_record_get_int(calendar_record_h record, unsigned int property_id, int* out_value)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret = CALENDAR_ERROR_NONE;
cal_record_s *temp = (cal_record_s*)(record);
EXPORT_API int calendar_record_get_double(calendar_record_h record, unsigned int property_id, double* out_value)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret = CALENDAR_ERROR_NONE;
cal_record_s *temp = (cal_record_s*)(record);
return ret;
}
+
EXPORT_API int calendar_record_get_lli(calendar_record_h record, unsigned int property_id, long long int* out_value)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret = CALENDAR_ERROR_NONE;
cal_record_s *temp = (cal_record_s*)(record);
EXPORT_API int calendar_record_get_caltime(calendar_record_h record, unsigned int property_id, calendar_time_s *out_value)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret = CALENDAR_ERROR_NONE;
cal_record_s *temp = (cal_record_s*)(record);
EXPORT_API int calendar_record_set_str(calendar_record_h record, unsigned int property_id, const char* value)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
RETV_IF(NULL == record, CALENDAR_ERROR_INVALID_PARAMETER);
__CHECK_READ_ONLY_PROPERTY();
EXPORT_API int calendar_record_set_int(calendar_record_h record, unsigned int property_id, int value)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
RETV_IF(NULL == record, CALENDAR_ERROR_INVALID_PARAMETER);
__CHECK_READ_ONLY_PROPERTY();
EXPORT_API int calendar_record_set_double(calendar_record_h record, unsigned int property_id, double value)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
RETV_IF(NULL == record, CALENDAR_ERROR_INVALID_PARAMETER);
__CHECK_READ_ONLY_PROPERTY();
EXPORT_API int calendar_record_set_lli(calendar_record_h record, unsigned int property_id, long long int value)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
RETV_IF(NULL == record, CALENDAR_ERROR_INVALID_PARAMETER);
__CHECK_READ_ONLY_PROPERTY();
EXPORT_API int calendar_record_set_caltime(calendar_record_h record, unsigned int property_id, calendar_time_s value)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
RETV_IF(NULL == record, CALENDAR_ERROR_INVALID_PARAMETER);
__CHECK_READ_ONLY_PROPERTY();
EXPORT_API int calendar_record_add_child_record(calendar_record_h record, unsigned int property_id, calendar_record_h child_record)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret = CALENDAR_ERROR_NONE;
cal_record_s *temp = (cal_record_s*)(record);
return ret;
}
+
EXPORT_API int calendar_record_remove_child_record(calendar_record_h record, unsigned int property_id, calendar_record_h child_record)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret = CALENDAR_ERROR_NONE;
cal_record_s *temp = (cal_record_s*)(record);
EXPORT_API int calendar_record_get_child_record_count(calendar_record_h record, unsigned int property_id, unsigned int* count)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret = CALENDAR_ERROR_NONE;
cal_record_s *temp = (cal_record_s*)(record);
return ret;
}
+
EXPORT_API int calendar_record_get_child_record_at_p(calendar_record_h record, unsigned int property_id, int index, calendar_record_h* child_record)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret = CALENDAR_ERROR_NONE;
cal_record_s *temp = (cal_record_s*)(record);
EXPORT_API int calendar_record_clone_child_record_list(calendar_record_h record, unsigned int property_id, calendar_list_h* out_list)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret = CALENDAR_ERROR_NONE;
cal_record_s *temp = (cal_record_s*)(record);
*/
EXPORT_API int calendar_vcalendar_make_from_records(calendar_list_h list, char **vcalendar_stream)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int ret;
cal_make_s *b;
char *ical = NULL;
*/
EXPORT_API int calendar_vcalendar_parse_to_calendar(const char* vcalendar_stream, calendar_list_h *out_list)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
int count = 0;
const char *cursor = NULL;
char *vcalendar_object = NULL;
EXPORT_API int calendar_vcalendar_parse_to_calendar_foreach(const char *vcalendar_file_path, calendar_vcalendar_parse_cb callback, void *user_data)
{
+ CHECK_CALENDAR_SUPPORTED(CALENDAR_FEATURE);
+
FILE *file;
int buf_size, len;
char *stream;
* </td>
* </tr>
* </table>
+ *
+ * @section CAPI_SOCIAL_CALENDAR_SVC_MODULE_FEATURE Related Features
+ * This API is related with the following features:\n
+ * - http://tizen.org/feature/calendar\n
+ * It is recommended to design feature related codes in your application for reliability.\n
+ * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.\n
+ * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
+ * More details on featuring your application can be found from <a href="https://developer.tizen.org/development/tizen-studio/native-tools/configuring-your-app/manifest-text-editor#feature"><b>Feature Element</b>.</a>
+ *
* Calendar service module works in a way similar to client-service architecture.
* In this architecture Tizen application is a client side and has to connect to service before using calendar service APIs.
* Connection/disconnection MUST be done with use of calendar_connect() / calendar_disconnect().
* @retval #CALENDAR_ERROR_DB_FAILED Database operation failure
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
* @retval #CALENDAR_ERROR_NO_DATA Data does not exist
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to open a connection to the calendar service.
* @see calendar_connect()
* @see calendar_db_update_record()
* @retval #CALENDAR_ERROR_DB_RECORD_NOT_FOUND Database not found
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
* @retval #CALENDAR_ERROR_NO_DATA Data does not exist
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to open a connection to the calendar service.
* @see calendar_connect()
* @see calendar_record_destroy()
* @retval #CALENDAR_ERROR_DB_RECORD_NOT_FOUND Database not found
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
* @retval #CALENDAR_ERROR_NO_DATA Data does not exist
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to open a connection to the calendar service.
* @see calendar_connect()
* @see calendar_db_insert_record()
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
* @retval #CALENDAR_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CALENDAR_ERROR_NO_DATA Data does not exist
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to open a connection to the calendar service.
* @see calendar_connect()
* @see calendar_db_insert_record()
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
* @retval #CALENDAR_ERROR_NO_DATA Data does not exist
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to open a connection to the calendar service.
* @see calendar_connect()
* @see calendar_list_destroy()
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
* @retval #CALENDAR_ERROR_NO_DATA Data does not exist
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to open a connection to the calendar service.
* @see calendar_connect()
* @see calendar_list_destroy()
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
* @retval #CALENDAR_ERROR_NO_DATA Data does not exist
* @retval #CALENDAR_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre This function requires an open connection to the calendar service using calendar_connect2().
* @see calendar_connect()
*/
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
* @retval #CALENDAR_ERROR_NO_DATA Data does not exist
* @retval #CALENDAR_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre This function requires an open connection to the calendar service using calendar_connect2().
* @see calendar_connect2()
*/
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
* @retval #CALENDAR_ERROR_NO_DATA Data does not exist
* @retval #CALENDAR_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to open a connection to the calendar service.
* @see calendar_connect()
* @see calendar_db_update_records()
* @retval #CALENDAR_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CALENDAR_ERROR_DB_RECORD_NOT_FOUND Database not found
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to open a connection to the calendar service.
* @see calendar_connect()
* @see calendar_db_insert_records()
* @retval #CALENDAR_ERROR_FILE_NO_SPACE File system is full
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
* @retval #CALENDAR_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to open a connection to the calendar service.
* @see calendar_connect()
* @see calendar_db_insert_records()
* @retval #CALENDAR_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method.
* @retval #CALENDAR_ERROR_DB_RECORD_NOT_FOUND Database not found
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre This function requires an open connection to the calendar service using calendar_connect().
* @see calendar_connect()
* @see calendar_db_get_changes_by_version()
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #CALENDAR_ERROR_SYSTEM Error from another modules
* @retval #CALENDAR_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CALENDAR_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method.
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre This function requires an open connection to the calendar service using calendar_connect().
* @post calendar_db_changed_cb() will be invoked when the designated view changes.
* @see calendar_connect()
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #CALENDAR_ERROR_SYSTEM Error from another modules
* @retval #CALENDAR_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method.
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre This function requires an open connection to the calendar service using calendar_connect().
* @see calendar_connect()
* @see calendar_db_changed_cb()
* @retval #CALENDAR_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method.
* @retval #CALENDAR_ERROR_DB_RECORD_NOT_FOUND Database not found
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to open a connection to the calendar service.
* @see calendar_connect()
* @see calendar_list_destroy()
* @retval #CALENDAR_ERROR_FILE_NO_SPACE File system is full
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to open a connection to the calendar service.
* @see calendar_connect()
* @see calendar_db_replace_vcalendars()
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
* @retval #CALENDAR_ERROR_DB_RECORD_NOT_FOUND Database not found
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre This function requires an open connection to the calendar service by calendar_connect().
* @see calendar_connect()
* @see calendar_db_replace_vcalendars()
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
* @retval #CALENDAR_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to open a connection to the calendar service.
* @see calendar_connect()
* @see calendar_db_update_record()
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
* @retval #CALENDAR_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to open a connection to the calendar service.
* @see calendar_connect()
* @see calendar_db_update_records()
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method.
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre This function requires an open connection to the calendar service using calendar_connect().
* @see calendar_connect()
* @see calendar_db_get_current_version()
* @retval #CALENDAR_ERROR_DB_FAILED Database operation failure
* @retval #CALENDAR_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method.
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to open a connection to the calendar service.
* @see calendar_connect()
* @see calendar_list_destroy()
* @retval #CALENDAR_ERROR_FILE_NO_SPACE File system is full
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
* @retval #CALENDAR_ERROR_NO_DATA Data does not exist
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to open a connection to the calendar service.
* @see calendar_connect()
*/
* @retval #CALENDAR_ERROR_PERMISSION_DENIED Permission denied
* @retval #CALENDAR_ERROR_FILE_NO_SPACE File system is full
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to open a connection to the calendar service.
* @see calendar_connect()
*/
* @retval #CALENDAR_ERROR_PERMISSION_DENIED Permission denied
* @retval #CALENDAR_ERROR_FILE_NO_SPACE File system is full
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to open a connection to the calendar service.
* @see calendar_connect()
*/
CALENDAR_ERROR_DB_RECORD_NOT_FOUND = TIZEN_ERROR_CALENDAR | 0x05, /**< Database not found */
CALENDAR_ERROR_IPC = TIZEN_ERROR_CALENDAR | 0xBF, /**< Unknown IPC error */
CALENDAR_ERROR_SYSTEM = TIZEN_ERROR_CALENDAR | 0xEF, /**< Error from another modules */
+ CALENDAR_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported (Since 4.0) */
} calendar_error_e;
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to initialize.
* @see calendar_filter_destroy()
*/
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_filter_create()
*/
int calendar_filter_destroy(calendar_filter_h filter);
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_filter_add_operator()
*/
int calendar_filter_add_str(calendar_filter_h filter, unsigned int property_id, calendar_match_str_flag_e match, const char* match_value);
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_filter_add_operator()
*/
int calendar_filter_add_int(calendar_filter_h filter, unsigned int property_id, calendar_match_int_flag_e match, int match_value);
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_filter_add_operator()
*/
int calendar_filter_add_double(calendar_filter_h filter, unsigned int property_id, calendar_match_int_flag_e match, double match_value);
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_filter_add_operator()
*/
int calendar_filter_add_lli(calendar_filter_h filter, unsigned int property_id, calendar_match_int_flag_e match, long long int match_value);
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_filter_add_operator()
*/
int calendar_filter_add_caltime(calendar_filter_h filter, unsigned int property_id, calendar_match_int_flag_e match, calendar_time_s match_value);
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_filter_add_operator()
*/
int calendar_filter_add_filter(calendar_filter_h parent_filter, calendar_filter_h child_filter);
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_filter_add_str()
* @see calendar_filter_add_int()
* @see calendar_filter_add_double()
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_list_destroy()
*/
int calendar_list_create(calendar_list_h* out_list);
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_list_create()
*/
int calendar_list_destroy(calendar_list_h list, bool delete_record);
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_list_add()
*/
int calendar_list_get_count(calendar_list_h list, int *count);
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_list_remove()
*/
int calendar_list_add(calendar_list_h list, calendar_record_h record);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NO_DATA Requested data does not exist
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_list_add()
*/
int calendar_list_remove(calendar_list_h list, calendar_record_h record);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NO_DATA Requested data does not exist
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
*/
int calendar_list_get_current_record_p(calendar_list_h list, calendar_record_h* record);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NO_DATA Requested data does not exist
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_list_next()
*/
int calendar_list_prev(calendar_list_h list);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NO_DATA Requested data does not exist
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_list_prev()
*/
int calendar_list_next(calendar_list_h list);
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_list_last()
*/
int calendar_list_first(calendar_list_h list);
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_list_first()
*/
int calendar_list_last(calendar_list_h list);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to initialize.
* @see calendar_query_destroy()
*/
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_query_create()
*/
int calendar_query_destroy(calendar_query_h query);
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
*/
int calendar_query_set_projection(calendar_query_h query, unsigned int property_id_array[], int count);
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
*/
int calendar_query_set_distinct(calendar_query_h query, bool set);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NO_DATA Requested data does not exist
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_query_add_operator()
*/
int calendar_query_set_filter(calendar_query_h query, calendar_filter_h filter);
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
*/
int calendar_query_set_sort(calendar_query_h query, unsigned int property_id, bool is_ascending);
* @retval #CALENDAR_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to initialize.
* @see calendar_record_destroy()
*/
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_record_create()
*/
int calendar_record_destroy(calendar_record_h record, bool delete_child);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_record_destroy()
*/
int calendar_record_clone(calendar_record_h record, calendar_record_h* out_record);
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
*/
int calendar_record_get_uri_p(calendar_record_h record, char** uri);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_record_get_str_p()
* @see calendar_record_set_str()
*/
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_record_get_str()
* @see calendar_record_set_str()
*/
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_record_set_int()
*/
int calendar_record_get_int(calendar_record_h record, unsigned int property_id, int* out_value);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_record_set_double()
*/
int calendar_record_get_double(calendar_record_h record, unsigned int property_id, double* out_value);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_record_set_lli()
*/
int calendar_record_get_lli(calendar_record_h record, unsigned int property_id, long long int* out_value);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_record_set_caltime()
*/
int calendar_record_get_caltime(calendar_record_h record, unsigned int property_id, calendar_time_s* out_value);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_record_get_str()
* @see calendar_record_get_str_p()
*/
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_record_get_int()
*/
int calendar_record_set_int(calendar_record_h record, unsigned int property_id, int value);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_record_get_double()
*/
int calendar_record_set_double(calendar_record_h record, unsigned int property_id, double value);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_record_get_lli()
*/
int calendar_record_set_lli(calendar_record_h record, unsigned int property_id, long long int value);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_record_get_caltime()
*/
int calendar_record_set_caltime(calendar_record_h record, unsigned int property_id, calendar_time_s value);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_record_remove_child_record()
*/
int calendar_record_add_child_record(calendar_record_h record, unsigned int property_id, calendar_record_h child_record);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_record_add_child_record()
*/
int calendar_record_remove_child_record(calendar_record_h record, unsigned int property_id, calendar_record_h child_record);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_record_add_child_record()
* @see calendar_record_remove_child_record()
*/
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_record_add_child_record()
* @see calendar_record_remove_child_record()
* @see calendar_record_get_child_record_count()
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_list_destroy()
*/
int calendar_record_clone_child_record_list(calendar_record_h record, unsigned int property_id, calendar_list_h* out_list);
* @retval #CALENDAR_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_reminder_remove_cb()
*/
int calendar_reminder_add_cb(calendar_reminder_cb callback, void *user_data);
* otherwise a negative error value
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_DB_FAILED Database operation failure
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_reminder_add_cb()
*/
int calendar_reminder_remove_cb(calendar_reminder_cb callback, void *user_data);
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
* @retval #CALENDAR_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
- * @retval #CALENDAR_ERROR_SYSTEM Error from another modules
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_disconnect()
*/
int calendar_connect(void);
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_connect()
*/
int calendar_disconnect(void);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_DB_FAILED Database operation failure
* @retval #CALENDAR_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_disconnect_on_thread()
*/
int calendar_connect_on_thread(void);
* @retval #CALENDAR_ERROR_DB_FAILED Database operation failure
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_connect_on_thread()
*/
int calendar_disconnect_on_thread(void);
* @retval #CALENDAR_ERROR_NOT_PERMITTED Operation not permitted
* @retval #CALENDAR_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method.
* @retval #CALENDAR_ERROR_IPC Unknown IPC error
- * @retval #CALENDAR_ERROR_SYSTEM Error from another modules
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @see calendar_disconnect(), CALENDAR_CONNECT_FLAG_RETRY
*/
int calendar_connect_with_flags(unsigned int flags);
* @retval #CALENDAR_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NO_DATA Requested data does not exist
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
*/
int calendar_vcalendar_make_from_records(calendar_list_h calendar_list, char **vcalendar_stream);
* @retval #CALENDAR_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CALENDAR_ERROR_NO_DATA Requested data does not exist
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to initialize.
*/
int calendar_vcalendar_parse_to_calendar(const char* vcalendar_stream, calendar_list_h *calendar_list);
* @retval #CALENDAR_ERROR_NONE Successful
* @retval #CALENDAR_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CALENDAR_ERROR_SYSTEM Internal system module error
+ * @retval #CALENDAR_ERROR_NOT_SUPPORTED Not supported
* @pre calendar_connect() should be called to initialize.
* @post This function invokes calendar_vcalendar_parse_cb().
* @see calendar_vcalendar_parse_cb()