ENDIF(ENABLE_LOG_FEATURE)
pkg_check_modules(client_pkgs REQUIRED glib-2.0 pims-ipc capi-base-common dlog libtzplatform-config
- icu-uc capi-media-image-util libsystemd-login)
+ icu-uc capi-media-image-util libsystemd-login capi-system-info)
INCLUDE_DIRECTORIES(${client_pkgs_INCLUDE_DIRS})
LINK_DIRECTORIES(${client_pkgs_LIBRARY_DIRS})
EXPORT_API int contacts_activity_delete_by_contact_id(int contact_id)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_activity_delete_by_account_id(int account_id)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_insert_record(contacts_record_h record, int *id)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_get_record(const char *view_uri, int id, contacts_record_h *out_record)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_update_record(contacts_record_h record)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_delete_record(const char *view_uri, int id)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_replace_record(contacts_record_h record, int id)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_get_all_records(const char *view_uri, int offset, int limit, contacts_list_h *out_list)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_get_records_with_query(contacts_query_h query, int offset, int limit, contacts_list_h *out_list)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_get_count(const char *view_uri, int *out_count)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_get_count_with_query(contacts_query_h query, int *out_count)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_insert_records(contacts_list_h list, int **ids, int *count)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_update_records(contacts_list_h list)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_delete_records(const char *view_uri, int ids[], int count)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_replace_records(contacts_list_h list, int ids[], int count)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_get_changes_by_version(const char *view_uri, int addressbook_id,
int contacts_db_version, contacts_list_h *record_list, int *current_contacts_db_version)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_get_current_version(int *contacts_db_version)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_search_records(const char *view_uri, const char *keyword,
int offset, int limit, contacts_list_h *out_list)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_search_records_with_range(const char *view_uri, const char *keyword,
int offset, int limit, int range, contacts_list_h *out_list)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_search_records_with_query(contacts_query_h query, const char *keyword,
int offset, int limit, contacts_list_h *out_list)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
int token_number,
contacts_list_h *out_list)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
int token_number,
contacts_list_h *out_list)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
int token_number,
contacts_list_h *out_list)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_get_last_change_version(int *last_version)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_get_status(contacts_db_status_e *status)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_add_status_changed_cb(
contacts_db_status_changed_cb cb, void *user_data)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_remove_status_changed_cb(
contacts_db_status_changed_cb cb, void *user_data)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_add_changed_cb(const char *view_uri, contacts_db_changed_cb cb,
void *user_data)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
RETV_IF(NULL == view_uri, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_db_remove_changed_cb(const char *view_uri, contacts_db_changed_cb cb,
void *user_data)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
RETV_IF(NULL == view_uri, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_group_add_contact(int group_id, int contact_id)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_group_remove_contact(int group_id, int contact_id)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_group_set_group_order(int group_id, int previous_group_id, int next_group_id)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_db_add_changed_cb_with_info(const char *view_uri,
contacts_db_change_cb_with_info cb, void *user_data)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
GSList *it = NULL;
subscribe_info_s *info = NULL;
db_callback_info_s *cb_info;
EXPORT_API int contacts_db_remove_changed_cb_with_info(const char *view_uri,
contacts_db_change_cb_with_info cb, void *user_data)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
GSList *it = NULL;
subscribe_info_s *info = NULL;
EXPORT_API int contacts_person_link_person(int base_person_id, int person_id)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_person_unlink_contact(int person_id, int contact_id, int *unlinked_person_id)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_person_reset_usage(int person_id, contacts_usage_type_e type)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_person_set_favorite_order(int person_id, int previous_person_id,
int next_person_id)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_person_set_default_property(contacts_person_property_e property,
int person_id, int id)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_person_get_default_property(contacts_person_property_e property,
int person_id, int *id)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_person_get_aggregation_suggestions(int person_id, int limit, contacts_list_h *out_list)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_phone_log_reset_statistics(void)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_phone_log_reset_statistics_by_sim(int sim_slot_no)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_phone_log_delete(contacts_phone_log_delete_e op, ...)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_connect_with_flags(unsigned int flags)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
CTS_FN_CALL;
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_connect(void)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
CTS_FN_CALL;
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_disconnect(void)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
CTS_FN_CALL;
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_connect_on_thread(void)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
CTS_FN_CALL;
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_disconnect_on_thread(void)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
CTS_FN_CALL;
int ret;
contacts_h contact = NULL;
EXPORT_API int contacts_setting_get_name_display_order(
contacts_name_display_order_e *name_display_order)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret = CONTACTS_ERROR_NONE;
pims_ipc_data_h outdata = NULL;
EXPORT_API int contacts_setting_get_name_sorting_order(
contacts_name_sorting_order_e *name_sorting_order)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret = CONTACTS_ERROR_NONE;
pims_ipc_data_h outdata = NULL;
EXPORT_API int contacts_setting_set_name_display_order(
contacts_name_display_order_e name_display_order)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret = CONTACTS_ERROR_NONE;
pims_ipc_data_h indata = NULL;
pims_ipc_data_h outdata = NULL;
EXPORT_API int contacts_setting_set_name_sorting_order(
contacts_name_sorting_order_e name_sorint_order)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret = CONTACTS_ERROR_NONE;
pims_ipc_data_h indata = NULL;
pims_ipc_data_h outdata = NULL;
EXPORT_API int contacts_setting_add_name_display_order_changed_cb(
contacts_setting_name_display_order_changed_cb cb, void *user_data)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
GSList *l;
int ret;
bool result = false;
EXPORT_API int contacts_setting_remove_name_display_order_changed_cb(
contacts_setting_name_display_order_changed_cb cb, void *user_data)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
RETV_IF(cb == NULL, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_setting_add_name_sorting_order_changed_cb(
contacts_setting_name_sorting_order_changed_cb cb, void *user_data)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
GSList *l;
int ret;
bool result = false;
EXPORT_API int contacts_setting_remove_name_sorting_order_changed_cb(
contacts_setting_name_sorting_order_changed_cb cb, void *user_data)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
RETV_IF(cb == NULL, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_filter_create(const char *view_uri, contacts_filter_h *out_filter)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_composite_filter_s *com_filter;
RETV_IF(NULL == out_filter, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_filter_add_operator(contacts_filter_h filter,
contacts_filter_operator_e op)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_composite_filter_s *com_filter;
RETV_IF(NULL == filter, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_filter_add_filter(contacts_filter_h filter1, contacts_filter_h filter2)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
ctsvc_composite_filter_s *s_filter1;
ctsvc_composite_filter_s *s_filter2;
EXPORT_API int contacts_filter_add_str(contacts_filter_h filter, unsigned int property_id,
contacts_match_str_flag_e match, const char *match_value)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_composite_filter_s *com_filter;
ctsvc_attribute_filter_s *str_filter;
int ret;
EXPORT_API int contacts_filter_add_int(contacts_filter_h filter, unsigned int property_id,
contacts_match_int_flag_e match, int match_value)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_composite_filter_s *com_filter;
ctsvc_attribute_filter_s *int_filter;
int ret;
EXPORT_API int contacts_filter_add_lli(contacts_filter_h filter, unsigned int property_id,
contacts_match_int_flag_e match, long long int match_value)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_composite_filter_s *com_filter;
ctsvc_attribute_filter_s *lli_filter;
int ret;
EXPORT_API int contacts_filter_add_double(contacts_filter_h filter, unsigned int property_id,
contacts_match_int_flag_e match, double match_value)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_composite_filter_s *com_filter;
ctsvc_attribute_filter_s *double_filter;
int ret;
EXPORT_API int contacts_filter_add_bool(contacts_filter_h filter, unsigned int property_id,
bool match_value)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_composite_filter_s *com_filter;
ctsvc_attribute_filter_s *bool_filter;
int ret;
EXPORT_API int contacts_filter_destroy(contacts_filter_h filter)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
RETV_IF(NULL == filter, CONTACTS_ERROR_INVALID_PARAMETER);
#ifdef _CONTACTS_IPC_CLIENT
ctsvc_view_uri_deinit();
#include <stdio.h>
#include <assert.h>
+#include <system_info.h>
#include "contacts_errors.h"
#include "ctsvc_struct.h"
#define TLS
#endif
+#define CONTACT_FEATURE "http://tizen.org/feature/contact"
+#if defined(_CONTACTS_IPC_CLIENT)
+#define CHECK_CONTACT_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 CONTACTS_ERROR_NOT_SUPPORTED; \
+ } \
+ } else { \
+ LOGE("Error - Feature getting from System Info"); \
+ return CONTACTS_ERROR_SYSTEM; \
+ } \
+ } while (0)
+#else
+#define CHECK_CONTACT_SUPPORTED(feature_name)
+#endif
+
#endif /* __CTSVC_INTERNAL_H__ */
EXPORT_API int contacts_list_create(contacts_list_h *out_list)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_list_s *list_s;
RETV_IF(NULL == out_list, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_list_get_count(contacts_list_h list, int *count)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_list_s *list_s;
RETV_IF(NULL == count, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_list_add(contacts_list_h list, contacts_record_h child_record)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_list_s *s_list;
ctsvc_record_s *s_record;
EXPORT_API int contacts_list_remove(contacts_list_h list, contacts_record_h record)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
GList *cursor = NULL;
ctsvc_list_s *s_list;
ctsvc_record_s *s_record;
EXPORT_API int contacts_list_get_current_record_p(contacts_list_h list, contacts_record_h *record)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_list_s *list_s;
RETV_IF(NULL == record, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_list_prev(contacts_list_h list)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
return __ctsvc_list_move_cursor(list, false);
}
EXPORT_API int contacts_list_next(contacts_list_h list)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
return __ctsvc_list_move_cursor(list, true);
}
EXPORT_API int contacts_list_first(contacts_list_h list)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_list_s *list_s;
RETV_IF(NULL == list, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_list_last(contacts_list_h list)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_list_s *list_s;
RETV_IF(NULL == list, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_list_destroy(contacts_list_h list, bool delete_child)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_list_s *s_list;
GList *cursor = NULL;
EXPORT_API int contacts_query_create(const char *view_uri, contacts_query_h *out_query)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_query_s *query;
RETV_IF(NULL == out_query, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_query_set_projection(contacts_query_h query, unsigned int property_ids[], int count)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_query_s *query_s;
int i;
bool find;
EXPORT_API int contacts_query_set_filter(contacts_query_h query, contacts_filter_h filter)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
ctsvc_query_s *s_query;
contacts_filter_h new_filter;
EXPORT_API int contacts_query_set_sort(contacts_query_h query, unsigned int property_id, bool asc)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_query_s *query_s;
bool find = false;
EXPORT_API int contacts_query_destroy(contacts_query_h query)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_query_s *s_query;
RETV_IF(NULL == query, CONTACTS_ERROR_INVALID_PARAMETER);
s_query = (ctsvc_query_s*)query;
EXPORT_API int contacts_query_set_distinct(contacts_query_h query, bool set)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_query_s *query_s;
RETV_IF(NULL == query, CONTACTS_ERROR_INVALID_PARAMETER);
/* Record constuct/destruct */
EXPORT_API int contacts_record_create(const char *view_uri, contacts_record_h *out_record)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
ctsvc_record_type_e r_type;
const ctsvc_record_plugin_cb_s *plugin_cb;
EXPORT_API int contacts_record_destroy(contacts_record_h record, bool delete_child)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_record_s *s_record;
RETV_IF(NULL == record, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_record_clone(contacts_record_h record, contacts_record_h *out_record)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_record_s *s_record;
RETV_IF(NULL == out_record, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_record_get_uri_p(contacts_record_h record, const char **out_str)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret = CONTACTS_ERROR_NONE;
ctsvc_record_s *temp = (ctsvc_record_s*)(record);
/* Record get/set int,str, etc.. */
EXPORT_API int contacts_record_get_str(contacts_record_h record, unsigned int property_id, char **out_str)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_record_s *s_record;
RETV_IF(NULL == out_str, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_record_get_lli(contacts_record_h record, unsigned int property_id, long long int *value)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_record_s *s_record;
RETV_IF(NULL == value, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_record_get_double(contacts_record_h record, unsigned int property_id, double *value)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_record_s *s_record;
RETV_IF(NULL == value, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_record_get_str_p(contacts_record_h record, unsigned int property_id, char **out_str)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_record_s *s_record;
RETV_IF(NULL == out_str, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_record_get_int(contacts_record_h record, unsigned int property_id, int *out_value)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_record_s *s_record;
RETV_IF(NULL == out_value, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_record_set_str(contacts_record_h record, unsigned int property_id, const char *value)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
RETV_IF(NULL == record, CONTACTS_ERROR_INVALID_PARAMETER);
__CHECK_READ_ONLY_PROPERTY();
EXPORT_API int contacts_record_get_bool(contacts_record_h record,
unsigned int property_id, bool *value)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_record_s *s_record;
RETV_IF(NULL == value, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_record_set_bool(contacts_record_h record,
unsigned int property_id, bool value)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
RETV_IF(NULL == record, CONTACTS_ERROR_INVALID_PARAMETER);
__CHECK_READ_ONLY_PROPERTY();
EXPORT_API int contacts_record_set_int(contacts_record_h record, unsigned int property_id,
int value)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
RETV_IF(NULL == record, CONTACTS_ERROR_INVALID_PARAMETER);
__CHECK_READ_ONLY_PROPERTY();
EXPORT_API int contacts_record_set_lli(contacts_record_h record, unsigned int property_id,
long long int value)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
RETV_IF(NULL == record, CONTACTS_ERROR_INVALID_PARAMETER);
__CHECK_READ_ONLY_PROPERTY();
EXPORT_API int contacts_record_set_double(contacts_record_h record, unsigned int property_id,
double value)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
RETV_IF(NULL == record, CONTACTS_ERROR_INVALID_PARAMETER);
__CHECK_READ_ONLY_PROPERTY();
EXPORT_API int contacts_record_add_child_record(contacts_record_h record,
unsigned int property_id, contacts_record_h child_record)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_record_s *s_record;
RETV_IF(NULL == record, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_record_remove_child_record(contacts_record_h record,
unsigned int property_id, contacts_record_h child_record)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_record_s *s_record;
RETV_IF(NULL == record, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_record_get_child_record_count(contacts_record_h record,
unsigned int property_id, int *count)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_record_s *s_record;
RETV_IF(NULL == count, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_record_get_child_record_at_p(contacts_record_h record,
unsigned int property_id, int index, contacts_record_h *out_record)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_record_s *s_record;
RETV_IF(NULL == out_record, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_record_clone_child_record_list(contacts_record_h record,
unsigned int property_id, contacts_list_h *out_list)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_record_s *s_record;
RETV_IF(NULL == out_list, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_sim_import_all_contacts()
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
WARN(DEPRECATED_STRING_FORMAT, __FUNCTION__);
EXPORT_API int contacts_sim_get_initialization_status(bool *completed)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
WARN(DEPRECATED_STRING_FORMAT, __FUNCTION__);
RETV_IF(NULL == completed, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_sim_import_all_contacts_by_sim_slot_no(int sim_slot_no,
contacts_sim_import_progress_cb callback, void *user_data)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
RETV_IF(sim_slot_no < 0, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_sim_get_initialization_status_by_sim_slot_no(int sim_slot_no, bool *completed)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
RETV_IF(NULL == completed, CONTACTS_ERROR_INVALID_PARAMETER);
EXPORT_API int contacts_vcard_make_from_contact(contacts_record_h record, char **vcard_stream)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_contact_s *contact;
RETV_IF(NULL == vcard_stream, CONTACTS_ERROR_INVALID_PARAMETER);
*vcard_stream = NULL;
EXPORT_API int contacts_vcard_make_from_my_profile(contacts_record_h record, char **vcard_stream)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
ctsvc_my_profile_s *my_profile;
RETV_IF(NULL == vcard_stream, CONTACTS_ERROR_INVALID_PARAMETER);
*vcard_stream = NULL;
#ifdef _CONTACTS_IPC_CLIENT
EXPORT_API int contacts_vcard_make_from_person(contacts_record_h record, char **vcard_stream)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
ctsvc_person_s *person;
contacts_query_h query = NULL;
EXPORT_API int contacts_vcard_parse_to_contacts(const char *vcard_stream, contacts_list_h *out_contacts)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
int ret;
contacts_record_h record;
contacts_list_h list = NULL;
EXPORT_API int contacts_vcard_parse_to_contact_foreach(const char *vcard_file_name,
contacts_vcard_parse_cb cb, void *data)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
contacts_record_h record;
FILE *file;
unsigned int buf_size, len;
EXPORT_API int contacts_vcard_get_entity_count(const char *vcard_file_name, int *count)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
FILE *file;
int cnt;
char line[1024] = {0};
EXPORT_API int contacts_vcard_get_limit_size_of_photo(unsigned int *limit_size)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
#ifdef _CONTACTS_IPC_CLIENT
int ret;
bool result = false;
EXPORT_API int contacts_vcard_set_limit_size_of_photo(unsigned int limit_size)
{
+ CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
#ifdef _CONTACTS_IPC_CLIENT
int ret;
bool result = false;
*
*/
-
+
#ifndef __TIZEN_SOCIAL_CONTACTS_DOC_H__
#define __TIZEN_SOCIAL_CONTACTS_DOC_H__
* </tr>
* </table>
*
+ * @section CAPI_SOCIAL_CONTACTS_SVC_MODULE_FEATURE Related Features
+ * This API is related with the following features:\n
+ * - http://tizen.org/feature/contact\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>
+ *
* @section CAPI_SOCIAL_CONTACTS_SVC_MODULE_ENTITIES Entities
* Contacts-Service manages information related to following entities.
* - Contact
* @endcode
*/
-
+
#endif /* __TIZEN_SOCIAL_CONTACTS_DOC_H__ */
* limitations under the License.
*
*/
-
-
+
+
#ifndef __TIZEN_SOCIAL_CONTACTS_ACTIVITY_H__
#define __TIZEN_SOCIAL_CONTACTS_ACTIVITY_H__
* @file contacts_activity.h
*/
-
+
/**
* @ingroup CAPI_SOCIAL_CONTACTS_SVC_MODULE
* @defgroup CAPI_SOCIAL_CONTACTS_SVC_ACTIVITY_MODULE Activity
* @{
*/
-
+
/**
* @brief Deletes an activity record from the contacts database by contact ID.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_FILE_NO_SPACE FS Full
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
*/
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_FILE_NO_SPACE FS Full
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
*/
* @{
*/
-
+
/**
* @brief Enumeration for contact change state.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @post contacts_db_changed_cb() callback wil be called upon success.
* @see contacts_connect()
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
* @see contacts_record_destroy()
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @post contacts_db_changed_cb() callback wil be called upon success.
* @see contacts_connect()
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @post contacts_db_changed_cb() callback wil be called upon success.
* @see contacts_connect()
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @post contacts_db_changed_cb() callback wil be called upon success.
* @see contacts_connect()
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
* @see contacts_list_destroy()
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
* @see contacts_list_destroy()
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @post contacts_db_changed_cb() callback wil be called upon success.
* @see contacts_connect()
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @post contacts_db_changed_cb() callback wil be called upon success.
* @see contacts_connect()
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @post contacts_db_changed_cb() callback wil be called upon success.
* @see contacts_connect()
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @post contacts_db_changed_cb() callback wil be called upon success.
* @see contacts_connect()
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_NO_DATA Requested data does not exist
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
* @see contacts_db_get_changes_by_version()
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
* @see contacts_list_destroy()
contacts_list_h *change_record_list,
int *current_contacts_db_version);
-
+
/**
* @brief Finds records based on a given keyword.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
* @see contacts_list_destroy()
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
* @see contacts_list_destroy()
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
* @see contacts_list_destroy()
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
* @see contacts_list_destroy()
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
* @see contacts_list_destroy()
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
* @see contacts_list_destroy()
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
*/
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
*/
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
* @see contacts_db_get_current_version()
* @}
*/
-
+
#ifdef __cplusplus
}
#endif
* @return @c 0 on sucess,
* otherwise a negative error value (#contacts_error_e)
*
- * @retval #CONTACTS_ERROR_NONE Successful
- * @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #CONTACTS_ERROR_IPC IPC error
- * @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied
- * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_NONE Successful
+ * @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
*
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @post contacts_db_change_cb_with_info() callback will be called
* @return @c 0 on sucess,
* otherwise a negative error value (#contacts_error_e)
*
- * @retval #CONTACTS_ERROR_NONE Successful
- * @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_NONE Successful
+ * @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
*
* @pre contacts_connect() should be called to open a connection to the contacts service.
*
* otherwise a negative error value
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre This function requires an open connection to the contacts service by contacts_connect().
* @see contacts_connect()
*/
* otherwise a negative error value
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre This function requires an open connection to the contacts service by contacts_connect().
* @see contacts_connect()
* @see contacts_db_remove_status_changed_cb()
* otherwise a negative error value
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre This function requires an open connection to the contacts service by contacts_connect().
* @see contacts_connect()
* @see contacts_db_add_status_changed_cb()
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to initialize
* @see contacts_filter_destroy()
*/
* otherwise a negative error value
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_filter_create()
*/
int contacts_filter_destroy(contacts_filter_h filter);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_filter_add_operator()
*/
int contacts_filter_add_str(contacts_filter_h filter, unsigned int property_id, contacts_match_str_flag_e match, const char *match_value);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_filter_add_operator()
*/
int contacts_filter_add_int(contacts_filter_h filter, unsigned int property_id, contacts_match_int_flag_e match, int match_value);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_filter_add_operator()
*/
int contacts_filter_add_lli(contacts_filter_h filter, unsigned int property_id, contacts_match_int_flag_e match, long long int match_value);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_filter_add_operator()
*/
int contacts_filter_add_double(contacts_filter_h filter, unsigned int property_id, contacts_match_int_flag_e match, double match_value);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_filter_add_operator()
*/
int contacts_filter_add_bool(contacts_filter_h filter, unsigned int property_id, bool match_value);
* otherwise a negative error value
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_filter_add_str()
* @see contacts_filter_add_int()
* @see contacts_filter_add_bool()
* otherwise a negative error value
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_filter_add_operator()
*/
int contacts_filter_add_filter(contacts_filter_h parent_filter, contacts_filter_h child_filter);
* limitations under the License.
*
*/
-
-
+
+
#ifndef __TIZEN_SOCIAL_CONTACTS_GROUP_H__
#define __TIZEN_SOCIAL_CONTACTS_GROUP_H__
* @file contacts_group.h
*/
-
+
/**
* @ingroup CAPI_SOCIAL_CONTACTS_SVC_MODULE
* @defgroup CAPI_SOCIAL_CONTACTS_SVC_GROUP_MODULE Group
* @{
*/
-
+
/**
* @brief Adds a contact and a group relationship to the contacts database.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
- * @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
* @see contacts_group_remove_contact()
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
- * @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
* @see contacts_group_add_contact()
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
- * @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
*/
* @}
*/
-
+
#ifdef __cplusplus
}
#endif
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_list_destroy()
*/
int contacts_list_create(contacts_list_h *contacts_list);
* otherwise a negative error value
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_list_create()
*/
int contacts_list_destroy(contacts_list_h contacts_list, bool delete_child);
* otherwise a negative error value
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_list_add()
*/
int contacts_list_get_count(contacts_list_h contacts_list, int *count);
* otherwise a negative error value
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_list_remove()
*/
int contacts_list_add(contacts_list_h contacts_list, contacts_record_h record);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NO_DATA Requested data does not exist
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_list_add()
*/
int contacts_list_remove(contacts_list_h contacts_list, contacts_record_h record);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NO_DATA Requested data does not exist
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
*/
int contacts_list_get_current_record_p(contacts_list_h contacts_list, contacts_record_h *record);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NO_DATA Requested data does not exist
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_list_next()
*/
int contacts_list_prev(contacts_list_h contacts_list);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NO_DATA Requested data does not exist
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_list_prev()
*/
int contacts_list_next(contacts_list_h contacts_list);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NO_DATA Requested data does not exist
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_list_last()
*/
int contacts_list_first(contacts_list_h contacts_list);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NO_DATA Requested data does not exist
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_list_first()
*/
int contacts_list_last(contacts_list_h contacts_list);
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_FILE_NO_SPACE FS Full
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
*/
* @retval #CONTACTS_ERROR_FILE_NO_SPACE FS Full
* @retval #CONTACTS_ERROR_NO_DATA Requested data does not exist
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
*/
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_FILE_NO_SPACE FS Full
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
*/
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_FILE_NO_SPACE FS Full
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
*/
* @retval #CONTACTS_ERROR_FILE_NO_SPACE FS Full
* @retval #CONTACTS_ERROR_NO_DATA Requested data does not exist
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
*/
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NO_DATA Requested data does not exist
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
*/
* @retval #CONTACTS_ERROR_FILE_NO_SPACE FS Full
* @retval #CONTACTS_ERROR_NO_DATA Requested data does not exist
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB Database operation failure
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
*/
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONTACTS_ERROR_FILE_NO_SPACE FS Full
- * @retval #CONTACTS_ERROR_DB Database operation failure
- * @retval #CONTACTS_ERROR_IPC IPC error
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_DB Database operation failure
+ * @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
*/
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONTACTS_ERROR_FILE_NO_SPACE FS Full
- * @retval #CONTACTS_ERROR_DB Database operation failure
- * @retval #CONTACTS_ERROR_IPC IPC error
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_DB Database operation failure
+ * @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
*/
* @return @c 0 on sucess,
* otherwise a negative error value (#contacts_error_e)
*
- * @retval #CONTACTS_ERROR_NONE Successful
- * @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #CONTACTS_ERROR_FILE_NO_SPACE FS Full
- * @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method.
- * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
- * @retval #CONTACTS_ERROR_IPC IPC error * @par example
+ * @retval #CONTACTS_ERROR_NONE Successful
+ * @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_FILE_NO_SPACE FS Full
+ * @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method.
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
+ * @par example
* @code
contacts_phone_log_delete(CONTACTS_PHONE_LOG_DELETE_BY_ADDRESS, "0123456789");
contacts_phone_log_delete(CONTACTS_PHONE_LOG_DELETE_BY_MESSAGE_EXTRA_DATA1, 2);
* limitations under the License.
*
*/
-
-
+
+
#ifndef __TIZEN_SOCIAL_CONTACTS_QUERY_H__
#define __TIZEN_SOCIAL_CONTACTS_QUERY_H__
* @file contacts_query.h
*/
-
+
/**
* @ingroup CAPI_SOCIAL_CONTACTS_SVC_MODULE
* @defgroup CAPI_SOCIAL_CONTACTS_SVC_QUERY_MODULE Query
* @{
*/
-
+
/**
* @brief Creates a query.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to initialize
* @see contacts_query_destroy()
*/
* otherwise a negative error value
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_query_create()
*/
int contacts_query_destroy(contacts_query_h query);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
*/
int contacts_query_set_projection(contacts_query_h query, unsigned int property_id_array[], int count);
* otherwise a negative error value
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
*/
int contacts_query_set_distinct(contacts_query_h query, bool set);
* otherwise a negative error value
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_filter_create()
*/
int contacts_query_set_filter(contacts_query_h query, contacts_filter_h filter);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
*/
int contacts_query_set_sort(contacts_query_h query, unsigned int property_id, bool is_ascending);
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to initialize.
* @see contacts_record_destroy()
*/
* otherwise a negative error value
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_record_create()
*/
int contacts_record_destroy(contacts_record_h record, bool delete_child);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_record_destroy()
*/
int contacts_record_clone(contacts_record_h record, contacts_record_h *cloned_record);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_record_get_str_p()
* @see contacts_record_set_str()
*/
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_record_get_str()
* @see contacts_record_set_str()
*/
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_record_get_str()
* @see contacts_record_get_str_p()
*/
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_record_set_int()
*/
int contacts_record_get_int(contacts_record_h record, unsigned int property_id, int *value);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_record_get_int()
*/
int contacts_record_set_int(contacts_record_h record, unsigned int property_id, int value);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_record_set_lli()
*/
int contacts_record_get_lli(contacts_record_h record, unsigned int property_id, long long int *value);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_record_get_lli()
*/
int contacts_record_set_lli(contacts_record_h record, unsigned int property_id, long long int value);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_record_set_bool()
*/
int contacts_record_get_bool(contacts_record_h record, unsigned int property_id, bool *value);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
- *
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_record_get_bool()
*/
int contacts_record_set_bool(contacts_record_h record, unsigned int property_id, bool value);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_record_set_double()
*/
int contacts_record_get_double(contacts_record_h record, unsigned int property_id, double *value);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_record_get_double()
*/
int contacts_record_set_double(contacts_record_h record, unsigned int property_id, double value);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_record_remove_child_record()
*/
int contacts_record_add_child_record(contacts_record_h record, unsigned int property_id, contacts_record_h child_record);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_record_add_child_record()
*/
int contacts_record_remove_child_record(contacts_record_h record, unsigned int property_id, contacts_record_h child_record);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_record_add_child_record()
* @see contacts_record_remove_child_record()
*/
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NO_DATA
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_record_add_child_record()
* @see contacts_record_remove_child_record()
* @see contacts_record_get_child_record_count()
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @see contacts_list_destroy()
*/
int contacts_record_clone_child_record_list(contacts_record_h record, unsigned int property_id, contacts_list_h *cloned_list);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
*/
int contacts_record_get_uri_p(contacts_record_h record, const char **view_uri);
* limitations under the License.
*
*/
-
-
+
+
#ifndef __TIZEN_SOCIAL_CONTACTS_SERVICE_H__
#define __TIZEN_SOCIAL_CONTACTS_SERVICE_H__
* @file contacts_service.h
*/
-
+
/**
* @ingroup CAPI_SOCIAL_CONTACTS_SVC_MODULE
* @defgroup CAPI_SOCIAL_CONTACTS_SVC_COMMON_MODULE Common
* @{
*/
-
+
/**
* @brief Connects to the contacts service.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_IPC IPC error
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_SYSTEM System error
* @retval #CONTACTS_ERROR_INTERNAL Internal error
* @see contacts_disconnect()
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_IPC IPC error
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_SYSTEM System error
* @retval #CONTACTS_ERROR_DB Database operation failure
* @see contacts_connect()
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_IPC IPC error
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_SYSTEM System error
* @retval #CONTACTS_ERROR_INTERNAL Internal error
- * @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method.
* @see contacts_disconnect_on_thread()
*/
int contacts_connect_on_thread(void);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_IPC IPC error
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_SYSTEM System error
* @retval #CONTACTS_ERROR_DB Database operation failure
* @see contacts_connect_on_thread()
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_IPC IPC error
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_SYSTEM System error
* @retval #CONTACTS_ERROR_INTERNAL Internal error
* @see contacts_disconnect()
* @}
*/
-
+
#ifdef __cplusplus
}
#endif
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_IPC Unknown IPC error
* @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_IPC Unknown IPC error
* @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method.
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_IPC Unknown IPC error
* @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_IPC Unknown IPC error
* @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @retval #CONTACTS_ERROR_IPC Unknown IPC error
* @retval #CONTACTS_ERROR_INTERNAL Implementation Error, Temporary Use
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @post contacts_setting_name_display_order_changed_cb() will be called under certain conditions, after calling contacts_setting_set_name_display_order().
* @see contacts_connect()
* otherwise a negative error value
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_INTERNAL Implementation Error, Temporary Use
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
* @see contacts_setting_add_name_display_order_changed_cb()
* otherwise a negative error value
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_IPC Unknown IPC error
* @retval #CONTACTS_ERROR_INTERNAL Implementation Error, Temporary Use
- * @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @post contacts_setting_name_sorting_order_changed_cb() will be called under certain conditions, after calling contacts_setting_set_name_sorting_order().
* @see contacts_connect()
* otherwise a negative error value
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_INTERNAL Implementation Error, Temporary Use
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to open a connection to the contacts service.
* @see contacts_connect()
* @see contacts_setting_add_name_sorting_order_changed_cb()
* limitations under the License.
*
*/
-
-
+
+
#ifndef __TIZEN_SOCIAL_CONTACTS_VCARD_H__
#define __TIZEN_SOCIAL_CONTACTS_VCARD_H__
* @file contacts_vcard.h
*/
-
+
/**
* @ingroup CAPI_SOCIAL_CONTACTS_SVC_MODULE
* @defgroup CAPI_SOCIAL_CONTACTS_SVC_VCARD_MODULE vCard
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_NO_DATA Requested data does not exist
* @retval #CONTACTS_ERROR_SYSTEM System error
* @pre contacts_connect() should be called to initialize.
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to initialize.
*/
int contacts_vcard_parse_to_contacts(const char *vcard_stream, contacts_list_h *contacts_list);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
*/
int contacts_vcard_make_from_contact(contacts_record_h contact, char **vcard_stream);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
*/
int contacts_vcard_make_from_my_profile(contacts_record_h my_profile, char **vcard_stream);
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_FILE_NO_SPACE FS Full
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_DB DB error
* @retval #CONTACTS_ERROR_IPC IPC error
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
* @pre contacts_connect() should be called to initialize.
*/
int contacts_vcard_make_from_person(contacts_record_h person, char **vcard_stream);
* otherwise a negative error value
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
* @retval #CONTACTS_ERROR_SYSTEM System error
*/
int contacts_vcard_get_entity_count(const char *vcard_file_path, int *count);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
*/
int contacts_vcard_get_limit_size_of_photo(unsigned int *limit_size);
* @retval #CONTACTS_ERROR_NONE Successful
* @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method
+ * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
+ * @retval #CONTACTS_ERROR_SYSTEM Internal system module error
*/
int contacts_vcard_set_limit_size_of_photo(unsigned int limit_size);
* @}
*/
-
+
#ifdef __cplusplus
}
#endif
int *ids = calloc(count, sizeof(int));
if (NULL == ids) {
ERR("calloc() Fail");
+ contacts_list_destroy(get_list, true);
+ contacts_disconnect();
return;
}
int index = 0;
ERR("contacts_db_delete_records() Fail(%d)", ret);
free(ids);
-
+ contacts_list_destroy(get_list, true);
contacts_disconnect();
}