Add contact feature 73/139973/5 accepted/tizen/unified/20170818.000138 submit/tizen/20170817.023547
authorJongkyu Koo <jk.koo@samsung.com>
Fri, 21 Jul 2017 07:16:41 +0000 (16:16 +0900)
committerJongkyu Koo <jk.koo@samsung.com>
Wed, 9 Aug 2017 02:26:39 +0000 (11:26 +0900)
Change-Id: I122d578388ff143c8daefdb8dabbb8892491c88e
Signed-off-by: Jongkyu Koo <jk.koo@samsung.com>
34 files changed:
client/CMakeLists.txt
client/ctsvc_client_activity.c
client/ctsvc_client_db.c
client/ctsvc_client_db_notification.c
client/ctsvc_client_group.c
client/ctsvc_client_noti.c
client/ctsvc_client_person.c
client/ctsvc_client_phonelog.c
client/ctsvc_client_service.c
client/ctsvc_client_setting.c
common/ctsvc_filter.c
common/ctsvc_internal.h
common/ctsvc_list.c
common/ctsvc_query.c
common/ctsvc_record.c
common/ctsvc_sim.c
common/ctsvc_vcard.c
doc/contacts_doc.h
include/contacts_activity.h
include/contacts_db.h
include/contacts_db_extension.h
include/contacts_db_status.h
include/contacts_filter.h
include/contacts_group.h
include/contacts_list.h
include/contacts_person.h
include/contacts_phone_log.h
include/contacts_phone_log_internal.h
include/contacts_query.h
include/contacts_record.h
include/contacts_service.h
include/contacts_setting.h
include/contacts_vcard.h
test/test_utils.c

index a9a2ba8..b93ef35 100644 (file)
@@ -96,7 +96,7 @@ SET(SRCS ${SRCS}
 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})
index e9f91ba..a5b76fe 100644 (file)
@@ -24,6 +24,7 @@
 
 EXPORT_API int contacts_activity_delete_by_contact_id(int contact_id)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        int ret;
        contacts_h contact = NULL;
 
@@ -42,6 +43,7 @@ EXPORT_API int contacts_activity_delete_by_contact_id(int contact_id)
 
 EXPORT_API int contacts_activity_delete_by_account_id(int account_id)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        int ret;
        contacts_h contact = NULL;
 
index a4cc56a..c8be785 100644 (file)
@@ -25,6 +25,7 @@
 
 EXPORT_API int contacts_db_insert_record(contacts_record_h record, int *id)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        int ret;
        contacts_h contact = NULL;
 
@@ -38,6 +39,7 @@ EXPORT_API int contacts_db_insert_record(contacts_record_h record, int *id)
 
 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;
 
@@ -51,6 +53,7 @@ EXPORT_API int contacts_db_get_record(const char *view_uri, int id, contacts_rec
 
 EXPORT_API int contacts_db_update_record(contacts_record_h record)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        int ret;
        contacts_h contact = NULL;
 
@@ -64,6 +67,7 @@ EXPORT_API int contacts_db_update_record(contacts_record_h record)
 
 EXPORT_API int contacts_db_delete_record(const char *view_uri, int id)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        int ret;
        contacts_h contact = NULL;
 
@@ -77,6 +81,7 @@ EXPORT_API int contacts_db_delete_record(const char *view_uri, int id)
 
 EXPORT_API int contacts_db_replace_record(contacts_record_h record, int id)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        int ret;
        contacts_h contact = NULL;
 
@@ -91,6 +96,7 @@ EXPORT_API int contacts_db_replace_record(contacts_record_h record, int id)
 
 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;
 
@@ -104,6 +110,7 @@ EXPORT_API int contacts_db_get_all_records(const char *view_uri, int offset, int
 
 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;
 
@@ -118,6 +125,7 @@ EXPORT_API int contacts_db_get_records_with_query(contacts_query_h query, int of
 
 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;
 
@@ -131,6 +139,7 @@ EXPORT_API int contacts_db_get_count(const char *view_uri, int *out_count)
 
 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;
 
@@ -144,6 +153,7 @@ EXPORT_API int contacts_db_get_count_with_query(contacts_query_h query, int *out
 
 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;
 
@@ -157,6 +167,7 @@ EXPORT_API int contacts_db_insert_records(contacts_list_h list, int **ids, int *
 
 EXPORT_API int contacts_db_update_records(contacts_list_h list)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        int ret;
        contacts_h contact = NULL;
 
@@ -170,6 +181,7 @@ EXPORT_API int contacts_db_update_records(contacts_list_h list)
 
 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;
 
@@ -183,6 +195,7 @@ EXPORT_API int contacts_db_delete_records(const char *view_uri, int ids[], int c
 
 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;
 
@@ -197,6 +210,7 @@ EXPORT_API int contacts_db_replace_records(contacts_list_h list, int ids[], int
 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;
 
@@ -210,6 +224,7 @@ EXPORT_API int contacts_db_get_changes_by_version(const char *view_uri, int addr
 
 EXPORT_API int contacts_db_get_current_version(int *contacts_db_version)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        int ret;
        contacts_h contact = NULL;
 
@@ -225,6 +240,7 @@ EXPORT_API int contacts_db_get_current_version(int *contacts_db_version)
 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;
 
@@ -239,6 +255,7 @@ EXPORT_API int contacts_db_search_records(const char *view_uri, const char *keyw
 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;
 
@@ -253,6 +270,7 @@ EXPORT_API int contacts_db_search_records_with_range(const char *view_uri, const
 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;
 
@@ -273,6 +291,7 @@ EXPORT_API int contacts_db_search_records_for_snippet(const char *view_uri,
                int token_number,
                contacts_list_h *out_list)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        int ret;
        contacts_h contact = NULL;
 
@@ -295,6 +314,7 @@ EXPORT_API int contacts_db_search_records_with_range_for_snippet(const char *vie
                int token_number,
                contacts_list_h *out_list)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        int ret;
        contacts_h contact = NULL;
 
@@ -316,6 +336,7 @@ EXPORT_API int contacts_db_search_records_with_query_for_snippet(contacts_query_
                int token_number,
                contacts_list_h *out_list)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        int ret;
        contacts_h contact = NULL;
 
@@ -330,6 +351,7 @@ EXPORT_API int contacts_db_search_records_with_query_for_snippet(contacts_query_
 
 EXPORT_API int contacts_db_get_last_change_version(int *last_version)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        int ret;
        contacts_h contact = NULL;
 
@@ -343,6 +365,7 @@ EXPORT_API int contacts_db_get_last_change_version(int *last_version)
 
 EXPORT_API int contacts_db_get_status(contacts_db_status_e *status)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        int ret;
        contacts_h contact = NULL;
 
@@ -357,6 +380,7 @@ EXPORT_API int contacts_db_get_status(contacts_db_status_e *status)
 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;
 
@@ -371,6 +395,7 @@ EXPORT_API int contacts_db_add_status_changed_cb(
 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;
 
index 1731663..33bd3ee 100644 (file)
@@ -83,6 +83,7 @@ static int _client_noti_check_read_permission(const char *view_uri)
 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);
@@ -106,6 +107,7 @@ EXPORT_API int contacts_db_add_changed_cb(const char *view_uri, contacts_db_chan
 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);
index d33c6ca..8643c5f 100644 (file)
@@ -24,6 +24,7 @@
 
 EXPORT_API int contacts_group_add_contact(int group_id, int contact_id)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        int ret;
        contacts_h contact = NULL;
 
@@ -37,6 +38,7 @@ EXPORT_API int contacts_group_add_contact(int group_id, int contact_id)
 
 EXPORT_API int contacts_group_remove_contact(int group_id, int contact_id)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        int ret;
        contacts_h contact = NULL;
 
@@ -50,6 +52,7 @@ EXPORT_API int contacts_group_remove_contact(int group_id, int contact_id)
 
 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;
 
index c7a7bbd..e6fab58 100644 (file)
@@ -226,6 +226,7 @@ int ctsvc_ipc_destroy_for_change_subscription(bool is_disconnect)
 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;
@@ -339,6 +340,7 @@ EXPORT_API int contacts_db_add_changed_cb_with_info(const char *view_uri,
 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;
index c81192e..58bb222 100644 (file)
@@ -24,6 +24,7 @@
 
 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;
 
@@ -37,6 +38,7 @@ EXPORT_API int contacts_person_link_person(int base_person_id, int person_id)
 
 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;
 
@@ -52,6 +54,7 @@ EXPORT_API int contacts_person_unlink_contact(int person_id, int contact_id, int
 
 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;
 
@@ -66,6 +69,7 @@ EXPORT_API int contacts_person_reset_usage(int person_id, contacts_usage_type_e
 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;
 
@@ -81,6 +85,7 @@ EXPORT_API int contacts_person_set_favorite_order(int person_id, int previous_pe
 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;
 
@@ -95,6 +100,7 @@ EXPORT_API int contacts_person_set_default_property(contacts_person_property_e p
 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;
 
@@ -108,6 +114,7 @@ EXPORT_API int contacts_person_get_default_property(contacts_person_property_e p
 
 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;
 
index 851438b..1ec48d1 100644 (file)
@@ -23,6 +23,7 @@
 
 EXPORT_API int contacts_phone_log_reset_statistics(void)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        int ret;
        contacts_h contact = NULL;
 
@@ -40,6 +41,7 @@ EXPORT_API int contacts_phone_log_reset_statistics(void)
 
 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;
 
@@ -54,6 +56,7 @@ EXPORT_API int contacts_phone_log_reset_statistics_by_sim(int sim_slot_no)
 
 EXPORT_API int contacts_phone_log_delete(contacts_phone_log_delete_e op, ...)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        int ret;
        contacts_h contact = NULL;
 
index f7c595f..f862d05 100644 (file)
@@ -26,6 +26,7 @@
 
 EXPORT_API int contacts_connect_with_flags(unsigned int flags)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        CTS_FN_CALL;
        int ret;
        contacts_h contact = NULL;
@@ -59,6 +60,7 @@ EXPORT_API int contacts_connect_with_flags(unsigned int flags)
 
 EXPORT_API int contacts_connect(void)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        CTS_FN_CALL;
        int ret;
        contacts_h contact = NULL;
@@ -91,6 +93,7 @@ EXPORT_API int contacts_connect(void)
 
 EXPORT_API int contacts_disconnect(void)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        CTS_FN_CALL;
        int ret;
        contacts_h contact = NULL;
@@ -110,6 +113,7 @@ EXPORT_API int contacts_disconnect(void)
 
 EXPORT_API int contacts_connect_on_thread(void)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        CTS_FN_CALL;
        int ret;
        contacts_h contact = NULL;
@@ -143,6 +147,7 @@ EXPORT_API int contacts_connect_on_thread(void)
 
 EXPORT_API int contacts_disconnect_on_thread(void)
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        CTS_FN_CALL;
        int ret;
        contacts_h contact = NULL;
index 8f24d72..0ace961 100644 (file)
@@ -43,6 +43,7 @@ static GSList *__setting_name_sorting_order_subscribe_list = 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;
 
@@ -78,6 +79,7 @@ EXPORT_API int contacts_setting_get_name_display_order(
 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;
 
@@ -118,6 +120,7 @@ EXPORT_API int contacts_setting_get_name_sorting_order(
 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;
@@ -171,6 +174,7 @@ EXPORT_API int contacts_setting_set_name_display_order(
 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;
@@ -306,6 +310,7 @@ int ctsvc_setting_recover_for_change_subscription()
 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;
@@ -367,6 +372,7 @@ EXPORT_API int contacts_setting_add_name_display_order_changed_cb(
 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);
@@ -406,6 +412,7 @@ EXPORT_API int contacts_setting_remove_name_display_order_changed_cb(
 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;
@@ -469,6 +476,7 @@ EXPORT_API int contacts_setting_add_name_sorting_order_changed_cb(
 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);
 
index 66cea29..7150271 100644 (file)
@@ -43,6 +43,7 @@ static inline bool _filter_property_check(const property_info_s *properties,
 
 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);
@@ -68,6 +69,7 @@ EXPORT_API int contacts_filter_create(const char *view_uri, contacts_filter_h *o
 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);
@@ -83,6 +85,7 @@ EXPORT_API int contacts_filter_add_operator(contacts_filter_h filter,
 
 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;
@@ -177,6 +180,7 @@ static int _filter_create_attribute(ctsvc_composite_filter_s *com_filter,
 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;
@@ -197,6 +201,7 @@ EXPORT_API int contacts_filter_add_str(contacts_filter_h filter, unsigned int pr
 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;
@@ -223,6 +228,7 @@ EXPORT_API int contacts_filter_add_int(contacts_filter_h filter, unsigned int pr
 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;
@@ -244,6 +250,7 @@ EXPORT_API int contacts_filter_add_lli(contacts_filter_h filter, unsigned int pr
 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;
@@ -265,6 +272,7 @@ EXPORT_API int contacts_filter_add_double(contacts_filter_h filter, unsigned int
 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;
@@ -314,6 +322,7 @@ static int __ctsvc_composite_filter_destroy(ctsvc_composite_filter_s *com_filter
 
 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();
index cbd9cec..255afee 100644 (file)
@@ -22,6 +22,7 @@
 
 #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__ */
 
index 6775b6c..2786164 100644 (file)
@@ -25,6 +25,7 @@
 
 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);
@@ -40,6 +41,7 @@ EXPORT_API int contacts_list_create(contacts_list_h *out_list)
 
 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);
@@ -77,6 +79,7 @@ int ctsvc_list_add_child(contacts_list_h list, contacts_record_h child_record)
 
 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;
 
@@ -178,6 +181,7 @@ int ctsvc_list_remove_child(contacts_list_h list, contacts_record_h 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;
@@ -205,6 +209,7 @@ EXPORT_API int contacts_list_remove(contacts_list_h list, contacts_record_h reco
 
 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);
@@ -266,11 +271,13 @@ static int __ctsvc_list_move_cursor(contacts_list_h list, bool next)
 
 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);
 }
 
@@ -278,6 +285,7 @@ EXPORT_API int contacts_list_next(contacts_list_h list)
 
 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);
@@ -292,6 +300,7 @@ EXPORT_API int contacts_list_first(contacts_list_h list)
 
 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);
@@ -306,6 +315,7 @@ EXPORT_API int contacts_list_last(contacts_list_h list)
 
 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;
 
index 103bfaf..ed464e2 100644 (file)
@@ -50,6 +50,7 @@ static bool __ctsvc_query_property_check(const property_info_s *properties,
 
 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);
@@ -73,6 +74,7 @@ EXPORT_API int contacts_query_create(const char *view_uri, contacts_query_h *out
 
 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;
@@ -104,6 +106,7 @@ EXPORT_API int contacts_query_set_projection(contacts_query_h query, unsigned in
 
 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;
@@ -120,6 +123,7 @@ EXPORT_API int contacts_query_set_filter(contacts_query_h query, contacts_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;
 
@@ -137,6 +141,7 @@ EXPORT_API int contacts_query_set_sort(contacts_query_h query, unsigned int prop
 
 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;
@@ -157,6 +162,7 @@ EXPORT_API int contacts_query_destroy(contacts_query_h 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);
index 8c26a84..94bbbfa 100644 (file)
@@ -201,6 +201,7 @@ int ctsvc_record_set_property_flag(ctsvc_record_s *_record, int property_id, con
 /* 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;
@@ -233,6 +234,7 @@ EXPORT_API int contacts_record_create(const char *view_uri, contacts_record_h *o
 
 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);
@@ -250,6 +252,7 @@ EXPORT_API int contacts_record_destroy(contacts_record_h record, bool delete_chi
 
 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);
@@ -269,6 +272,7 @@ EXPORT_API int contacts_record_clone(contacts_record_h record, contacts_record_h
 
 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);
@@ -284,6 +288,7 @@ EXPORT_API int contacts_record_get_uri_p(contacts_record_h record, const char **
 /* 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);
@@ -302,6 +307,7 @@ EXPORT_API int contacts_record_get_str(contacts_record_h record, unsigned int pr
 
 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);
@@ -320,6 +326,7 @@ EXPORT_API int contacts_record_get_lli(contacts_record_h record, unsigned int pr
 
 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);
@@ -338,6 +345,7 @@ EXPORT_API int contacts_record_get_double(contacts_record_h record, unsigned int
 
 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);
@@ -356,6 +364,7 @@ EXPORT_API int contacts_record_get_str_p(contacts_record_h record, unsigned int
 
 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);
@@ -374,6 +383,7 @@ EXPORT_API int contacts_record_get_int(contacts_record_h record, unsigned int pr
 
 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();
@@ -410,6 +420,7 @@ int ctsvc_record_set_str(contacts_record_h record, unsigned int property_id, con
 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);
@@ -429,6 +440,7 @@ EXPORT_API int contacts_record_get_bool(contacts_record_h record,
 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();
@@ -457,6 +469,7 @@ int ctsvc_record_set_bool(contacts_record_h record, unsigned int property_id, bo
 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();
@@ -490,6 +503,7 @@ int ctsvc_record_set_int(contacts_record_h record, unsigned int property_id, int
 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();
@@ -519,6 +533,7 @@ int ctsvc_record_set_lli(contacts_record_h record, unsigned int property_id,
 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();
@@ -550,6 +565,7 @@ int ctsvc_record_set_double(contacts_record_h record, unsigned int property_id,
 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);
@@ -565,6 +581,7 @@ EXPORT_API int contacts_record_add_child_record(contacts_record_h record,
 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);
@@ -580,6 +597,7 @@ EXPORT_API int contacts_record_remove_child_record(contacts_record_h record,
 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);
@@ -597,6 +615,7 @@ EXPORT_API int contacts_record_get_child_record_count(contacts_record_h record,
 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);
@@ -614,6 +633,7 @@ EXPORT_API int contacts_record_get_child_record_at_p(contacts_record_h record,
 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);
index cdee3c0..a0fb527 100644 (file)
@@ -24,6 +24,7 @@
 
 EXPORT_API int contacts_sim_import_all_contacts()
 {
+       CHECK_CONTACT_SUPPORTED(CONTACT_FEATURE);
        int ret;
        WARN(DEPRECATED_STRING_FORMAT, __FUNCTION__);
 
@@ -36,6 +37,7 @@ EXPORT_API int contacts_sim_import_all_contacts()
 
 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);
@@ -50,6 +52,7 @@ EXPORT_API int contacts_sim_get_initialization_status(bool *completed)
 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);
@@ -63,6 +66,7 @@ EXPORT_API int contacts_sim_import_all_contacts_by_sim_slot_no(int sim_slot_no,
 
 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);
index 2d3490e..34c3628 100644 (file)
@@ -1920,6 +1920,7 @@ static int __ctsvc_vcard_make_from_my_profile(ctsvc_my_profile_s *my_profile, ch
 
 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;
@@ -1936,6 +1937,7 @@ EXPORT_API int contacts_vcard_make_from_contact(contacts_record_h record, char *
 
 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;
@@ -2132,6 +2134,7 @@ static int __ctsvc_vcard_make_from_person(ctsvc_person_s *person, ctsvc_list_s *
 #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;
@@ -4432,6 +4435,7 @@ static const char* __contacts_vcard_parse_get_vcard_object(const char *cursor, G
 
 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;
@@ -4489,6 +4493,7 @@ static int  _ctsvc_safe_add(unsigned int *total, unsigned int value)
 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;
@@ -4600,6 +4605,7 @@ EXPORT_API int contacts_vcard_parse_to_contact_foreach(const char *vcard_file_na
 
 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};
@@ -4625,6 +4631,7 @@ EXPORT_API int contacts_vcard_get_entity_count(const char *vcard_file_name, int
 
 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;
@@ -4644,6 +4651,7 @@ EXPORT_API int contacts_vcard_get_limit_size_of_photo(unsigned int *limit_size)
 
 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;
index 3235bbe..cccdc7c 100644 (file)
@@ -17,7 +17,7 @@
  *
  */
 
+
 #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__ */
 
index f8c9e38..68a26a5 100644 (file)
@@ -16,8 +16,8 @@
  * limitations under the License.
  *
  */
+
+
 #ifndef __TIZEN_SOCIAL_CONTACTS_ACTIVITY_H__
 #define __TIZEN_SOCIAL_CONTACTS_ACTIVITY_H__
 
@@ -32,7 +32,7 @@ extern "C"
  * @file contacts_activity.h
  */
 
+
 /**
  * @ingroup CAPI_SOCIAL_CONTACTS_SVC_MODULE
  * @defgroup CAPI_SOCIAL_CONTACTS_SVC_ACTIVITY_MODULE Activity
@@ -44,7 +44,7 @@ extern "C"
  * @{
  */
 
+
 /**
  * @brief Deletes an activity record from the contacts database by contact ID.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
@@ -58,8 +58,10 @@ extern "C"
  * @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()
  */
@@ -79,8 +81,10 @@ int contacts_activity_delete_by_contact_id(int contact_id);
  * @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()
  */
index 4d5c4ff..465af19 100644 (file)
@@ -43,7 +43,7 @@ extern "C"
  * @{
  */
 
+
 /**
  * @brief Enumeration for contact change state.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
@@ -92,6 +92,7 @@ typedef void (*contacts_db_changed_cb)(const char *view_uri, void *user_data);
  * @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()
@@ -133,6 +134,7 @@ int contacts_db_insert_record(contacts_record_h record, int *id);
  * @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()
@@ -165,6 +167,7 @@ int contacts_db_get_record(const char *view_uri, int record_id, contacts_record_
  * @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()
@@ -201,6 +204,7 @@ int contacts_db_update_record(contacts_record_h record);
  * @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()
@@ -230,6 +234,7 @@ int contacts_db_delete_record(const char *view_uri, int record_id);
  * @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()
@@ -271,6 +276,7 @@ int contacts_db_replace_record(contacts_record_h record, int id);
  * @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()
@@ -309,6 +315,7 @@ int contacts_db_get_all_records(const char *view_uri, int offset, int limit, con
  * @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()
@@ -343,6 +350,7 @@ int contacts_db_get_records_with_query(contacts_query_h query, int offset, int l
  * @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()
@@ -377,6 +385,7 @@ int contacts_db_insert_records(contacts_list_h record_list, int **ids, int *coun
  * @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()
@@ -413,6 +422,7 @@ int contacts_db_update_records(contacts_list_h record_list);
  * @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()
@@ -443,6 +453,7 @@ int contacts_db_delete_records(const char *view_uri, int record_id_array[], int
  * @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()
@@ -466,9 +477,11 @@ int contacts_db_replace_records(contacts_list_h list, int record_id_array[], int
  * @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()
@@ -561,6 +574,7 @@ int contacts_db_remove_changed_cb(const char *view_uri, contacts_db_changed_cb c
  * @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()
@@ -571,7 +585,7 @@ int contacts_db_get_changes_by_version(const char *view_uri,
                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
@@ -595,6 +609,7 @@ int contacts_db_get_changes_by_version(const char *view_uri,
  * @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()
@@ -626,6 +641,7 @@ int contacts_db_search_records(const char *view_uri, const char *keyword, int of
  * @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()
@@ -659,6 +675,7 @@ int contacts_db_search_records_with_query(contacts_query_h query, const char *ke
  * @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()
@@ -693,6 +710,7 @@ int contacts_db_search_records_with_range(const char *view_uri, const char *keyw
  * @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()
@@ -728,6 +746,7 @@ int contacts_db_search_records_for_snippet(const char *view_uri, const char *key
  * @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()
@@ -765,6 +784,7 @@ int contacts_db_search_records_with_query_for_snippet(contacts_query_h query, co
  * @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()
@@ -799,6 +819,7 @@ int contacts_db_search_records_with_range_for_snippet(const char *view_uri, cons
  * @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()
  */
@@ -832,6 +853,7 @@ int contacts_db_get_count(const char *view_uri, int *count);
  * @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()
  */
@@ -851,6 +873,8 @@ int contacts_db_get_count_with_query(contacts_query_h query, int *count);
  * @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()
@@ -862,7 +886,7 @@ int contacts_db_get_last_change_version(int *last_change_version);
  * @}
  */
 
+
 #ifdef __cplusplus
 }
 #endif
index 7decaa0..fa6cad9 100644 (file)
@@ -63,12 +63,13 @@ typedef void (*contacts_db_change_cb_with_info)(const char *view_uri, char *chan
  * @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
@@ -92,9 +93,10 @@ int contacts_db_add_changed_cb_with_info(const char *view_uri, contacts_db_chang
  * @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.
  *
index 327a47a..a04f4bd 100644 (file)
@@ -57,6 +57,8 @@ typedef enum {
  *         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()
  */
@@ -83,6 +85,8 @@ typedef void (*contacts_db_status_changed_cb)(contacts_db_status_e status, void
  *         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()
@@ -99,6 +103,8 @@ int contacts_db_add_status_changed_cb(contacts_db_status_changed_cb callback, vo
  *         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()
index 48d98ac..612b3d9 100644 (file)
@@ -95,6 +95,7 @@ typedef enum {
  * @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()
  */
@@ -109,6 +110,8 @@ int contacts_filter_create(const char *view_uri, contacts_filter_h *filter);
  *         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);
@@ -126,6 +129,7 @@ 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);
@@ -143,6 +147,7 @@ int contacts_filter_add_str(contacts_filter_h filter, unsigned int property_id,
  * @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);
@@ -160,6 +165,7 @@ int contacts_filter_add_int(contacts_filter_h filter, unsigned int property_id,
  * @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);
@@ -177,6 +183,7 @@ int contacts_filter_add_lli(contacts_filter_h filter, unsigned int property_id,
  * @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);
@@ -193,6 +200,7 @@ int contacts_filter_add_double(contacts_filter_h filter, unsigned int property_i
  * @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);
@@ -207,6 +215,8 @@ int contacts_filter_add_bool(contacts_filter_h filter, unsigned int property_id,
  *         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()
@@ -223,6 +233,8 @@ int contacts_filter_add_operator(contacts_filter_h filter, contacts_filter_opera
  *         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);
index a8c246b..1874ba6 100644 (file)
@@ -16,8 +16,8 @@
  * limitations under the License.
  *
  */
+
+
 #ifndef __TIZEN_SOCIAL_CONTACTS_GROUP_H__
 #define __TIZEN_SOCIAL_CONTACTS_GROUP_H__
 
@@ -32,7 +32,7 @@ extern "C"
  * @file contacts_group.h
  */
 
+
 /**
  * @ingroup CAPI_SOCIAL_CONTACTS_SVC_MODULE
  * @defgroup CAPI_SOCIAL_CONTACTS_SVC_GROUP_MODULE Group
@@ -43,7 +43,7 @@ extern "C"
  * @{
  */
 
+
 /**
  * @brief Adds a contact and a group relationship to the contacts database.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
@@ -56,9 +56,11 @@ extern "C"
  * @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()
@@ -78,9 +80,11 @@ int contacts_group_add_contact(int group_id, int contact_id);
  * @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()
@@ -101,9 +105,11 @@ int contacts_group_remove_contact(int group_id, int contact_id);
  * @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()
  */
@@ -114,7 +120,7 @@ int contacts_group_set_group_order(int group_id, int previous_group_id, int next
  * @}
  */
 
+
 #ifdef __cplusplus
 }
 #endif
index c78dc48..51b86be 100644 (file)
@@ -53,6 +53,8 @@ extern "C"
  * @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);
@@ -68,6 +70,8 @@ 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);
@@ -82,6 +86,8 @@ 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);
@@ -97,6 +103,8 @@ 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);
@@ -114,6 +122,8 @@ 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);
@@ -132,6 +142,8 @@ 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);
 
@@ -145,6 +157,8 @@ int contacts_list_get_current_record_p(contacts_list_h contacts_list, contacts_r
  * @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);
@@ -159,6 +173,8 @@ 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);
@@ -173,6 +189,8 @@ 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);
@@ -187,6 +205,8 @@ 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);
index f71636d..bb75481 100644 (file)
@@ -58,8 +58,10 @@ extern "C"
  * @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()
  */
@@ -82,8 +84,10 @@ int contacts_person_link_person(int base_person_id, int person_id);
  * @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()
  */
@@ -105,8 +109,10 @@ int contacts_person_unlink_contact(int person_id, int contact_id, int *unlinked_
  * @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()
  */
@@ -128,8 +134,10 @@ int contacts_person_reset_usage(int person_id, contacts_usage_type_e type);
  * @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()
  */
@@ -165,8 +173,10 @@ typedef enum {
  * @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()
  */
@@ -189,8 +199,10 @@ int contacts_person_set_default_property(contacts_person_property_e property, in
  * @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()
  */
@@ -216,8 +228,10 @@ int contacts_person_get_default_property(contacts_person_property_e property,
  * @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()
  */
index bfa2624..caa5503 100644 (file)
@@ -62,10 +62,11 @@ extern "C"
  * @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()
  */
@@ -83,10 +84,11 @@ int contacts_phone_log_reset_statistics(void);
  * @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()
  */
index b2a8006..dafb8a0 100644 (file)
@@ -52,13 +52,15 @@ typedef enum {
  * @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);
index 6066ec8..080e581 100644 (file)
@@ -16,8 +16,8 @@
  * limitations under the License.
  *
  */
+
+
 #ifndef __TIZEN_SOCIAL_CONTACTS_QUERY_H__
 #define __TIZEN_SOCIAL_CONTACTS_QUERY_H__
 
@@ -32,7 +32,7 @@ extern "C"
  * @file contacts_query.h
  */
 
+
 /**
  * @ingroup CAPI_SOCIAL_CONTACTS_SVC_MODULE
  * @defgroup CAPI_SOCIAL_CONTACTS_SVC_QUERY_MODULE Query
@@ -43,7 +43,7 @@ extern "C"
  * @{
  */
 
+
 /**
  * @brief Creates a query.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
@@ -56,6 +56,7 @@ extern "C"
  * @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()
  */
@@ -70,6 +71,8 @@ int contacts_query_create(const char *view_uri, contacts_query_h *query);
  *         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);
@@ -86,6 +89,7 @@ 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);
 
@@ -100,6 +104,8 @@ int contacts_query_set_projection(contacts_query_h query, unsigned int property_
  *         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);
 
@@ -113,6 +119,8 @@ 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);
@@ -130,6 +138,7 @@ 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);
 
index 411e802..5dba26c 100644 (file)
@@ -56,6 +56,7 @@ extern "C"
  * @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()
  */
@@ -72,6 +73,8 @@ int contacts_record_create(const char *view_uri, contacts_record_h *record);
  *         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);
@@ -88,6 +91,8 @@ 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);
@@ -105,6 +110,7 @@ int contacts_record_clone(contacts_record_h record, contacts_record_h *cloned_re
  * @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()
  */
@@ -123,6 +129,7 @@ int contacts_record_get_str(contacts_record_h record, unsigned int property_id,
  * @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()
  */
@@ -140,6 +147,7 @@ int contacts_record_get_str_p(contacts_record_h record, unsigned int property_id
  * @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()
  */
@@ -157,6 +165,7 @@ int contacts_record_set_str(contacts_record_h record, unsigned int property_id,
  * @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);
@@ -173,6 +182,7 @@ int contacts_record_get_int(contacts_record_h record, unsigned int property_id,
  * @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);
@@ -189,6 +199,7 @@ int contacts_record_set_int(contacts_record_h record, unsigned int property_id,
  * @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);
@@ -205,6 +216,7 @@ int contacts_record_get_lli(contacts_record_h record, unsigned int property_id,
  * @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);
@@ -221,6 +233,7 @@ int contacts_record_set_lli(contacts_record_h record, unsigned int property_id,
  * @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);
@@ -237,7 +250,7 @@ int contacts_record_get_bool(contacts_record_h record, unsigned int property_id,
  * @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);
@@ -254,6 +267,7 @@ int contacts_record_set_bool(contacts_record_h record, unsigned int property_id,
  * @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);
@@ -270,6 +284,7 @@ int contacts_record_get_double(contacts_record_h record, unsigned int property_i
  * @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);
@@ -286,6 +301,7 @@ int contacts_record_set_double(contacts_record_h record, unsigned int property_i
  * @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);
@@ -302,6 +318,7 @@ int contacts_record_add_child_record(contacts_record_h record, unsigned int prop
  * @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);
@@ -318,6 +335,7 @@ int contacts_record_remove_child_record(contacts_record_h record, unsigned int 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_add_child_record()
  * @see contacts_record_remove_child_record()
  */
@@ -338,6 +356,7 @@ int contacts_record_get_child_record_count(contacts_record_h record, unsigned in
  * @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()
@@ -357,6 +376,7 @@ int contacts_record_get_child_record_at_p(contacts_record_h record, unsigned int
  * @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);
@@ -372,6 +392,7 @@ int contacts_record_clone_child_record_list(contacts_record_h record, unsigned i
  * @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);
 
index 7cc9274..dc08a2c 100644 (file)
@@ -16,8 +16,8 @@
  * limitations under the License.
  *
  */
+
+
 #ifndef __TIZEN_SOCIAL_CONTACTS_SERVICE_H__
 #define __TIZEN_SOCIAL_CONTACTS_SERVICE_H__
 
@@ -32,7 +32,7 @@ extern "C"
  * @file contacts_service.h
  */
 
+
 /**
  * @ingroup CAPI_SOCIAL_CONTACTS_SVC_MODULE
  * @defgroup CAPI_SOCIAL_CONTACTS_SVC_COMMON_MODULE Common
@@ -43,7 +43,7 @@ extern "C"
  * @{
  */
 
+
 /**
  * @brief Connects to the contacts service.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
@@ -54,6 +54,7 @@ extern "C"
  * @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()
@@ -70,6 +71,7 @@ int contacts_connect(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()
@@ -88,9 +90,9 @@ int contacts_disconnect(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_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);
@@ -105,6 +107,7 @@ 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()
@@ -141,6 +144,7 @@ int contacts_disconnect_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_INTERNAL Internal error
  * @see contacts_disconnect()
@@ -152,7 +156,7 @@ int contacts_connect_with_flags(unsigned int flags);
  * @}
  */
 
+
 #ifdef __cplusplus
 }
 #endif
index 7c14c1d..05a1efc 100644 (file)
@@ -65,6 +65,7 @@ typedef enum {
  * @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.
@@ -85,6 +86,7 @@ int contacts_setting_get_name_display_order(contacts_name_display_order_e *name_
  * @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.
@@ -115,6 +117,7 @@ typedef enum {
  * @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.
@@ -135,6 +138,7 @@ int contacts_setting_get_name_sorting_order(contacts_name_sorting_order_e *name_
  * @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.
@@ -171,6 +175,8 @@ typedef void (*contacts_setting_name_display_order_changed_cb)(contacts_name_dis
  * @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()
@@ -188,7 +194,9 @@ int contacts_setting_add_name_display_order_changed_cb(contacts_setting_name_dis
  *         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()
@@ -220,9 +228,11 @@ typedef void (*contacts_setting_name_sorting_order_changed_cb)(contacts_name_sor
  *         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()
@@ -240,7 +250,9 @@ int contacts_setting_add_name_sorting_order_changed_cb(contacts_setting_name_sor
  *         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()
index 9fd8fca..c3ea01a 100644 (file)
@@ -16,8 +16,8 @@
  * limitations under the License.
  *
  */
+
+
 #ifndef __TIZEN_SOCIAL_CONTACTS_VCARD_H__
 #define __TIZEN_SOCIAL_CONTACTS_VCARD_H__
 
@@ -32,7 +32,7 @@ extern "C"
  * @file contacts_vcard.h
  */
 
+
 /**
  * @ingroup CAPI_SOCIAL_CONTACTS_SVC_MODULE
  * @defgroup CAPI_SOCIAL_CONTACTS_SVC_VCARD_MODULE vCard
@@ -68,6 +68,7 @@ typedef bool (*contacts_vcard_parse_cb)(contacts_record_h record, void *user_dat
  * @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.
@@ -87,6 +88,8 @@ int contacts_vcard_parse_to_contact_foreach(const char *vcard_file_path, 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_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);
@@ -102,6 +105,8 @@ int contacts_vcard_parse_to_contacts(const char *vcard_stream, contacts_list_h *
  * @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);
 
@@ -116,6 +121,8 @@ int contacts_vcard_make_from_contact(contacts_record_h contact, char **vcard_str
  * @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);
 
@@ -134,8 +141,10 @@ int contacts_vcard_make_from_my_profile(contacts_record_h my_profile, char **vca
  * @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);
@@ -150,6 +159,7 @@ int contacts_vcard_make_from_person(contacts_record_h person, char **vcard_strea
  *         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);
@@ -166,6 +176,8 @@ 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);
 
@@ -186,6 +198,8 @@ 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);
 
@@ -194,7 +208,7 @@ int contacts_vcard_set_limit_size_of_photo(unsigned int limit_size);
  * @}
  */
 
+
 #ifdef __cplusplus
 }
 #endif
index 46269fd..5f566ef 100644 (file)
@@ -38,6 +38,8 @@ void test_utils_cleanup(void)
        int *ids = calloc(count, sizeof(int));
        if (NULL == ids) {
                ERR("calloc() Fail");
+               contacts_list_destroy(get_list, true);
+               contacts_disconnect();
                return;
        }
        int index = 0;
@@ -57,6 +59,6 @@ void test_utils_cleanup(void)
                ERR("contacts_db_delete_records() Fail(%d)", ret);
 
        free(ids);
-
+       contacts_list_destroy(get_list, true);
        contacts_disconnect();
 }