[9.0] Removing conditional Statments for Mobile/Wearable Profile 14/307414/1 accepted/tizen/unified/20240315.032930 accepted/tizen/unified/x/20240318.021633
authorHanish Mehla <hanish.mehla@samsung.com>
Fri, 8 Mar 2024 05:57:23 +0000 (11:27 +0530)
committerHanish Mehla <hanish.mehla@samsung.com>
Fri, 8 Mar 2024 05:57:23 +0000 (11:27 +0530)
Change-Id: I9f5802eae123473a4f098adb33399b3106f77aa6

include/contacts_activity.h
include/contacts_db_status.h
include/contacts_group.h
include/contacts_list.h
include/contacts_person.h
include/contacts_phone_log.h
include/contacts_service.h
include/contacts_sim.h

index 68a26a5..f8466d2 100644 (file)
@@ -47,7 +47,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
+ * @since_tizen 2.3
  * @privlevel public
  * @privilege %http://tizen.org/privilege/contact.write
  * @param[in] contact_id The contact ID to delete
@@ -70,7 +70,7 @@ int contacts_activity_delete_by_contact_id(int contact_id);
 
 /**
  * @brief Deletes an activity record from the contacts database by account ID.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @privlevel public
  * @privilege %http://tizen.org/privilege/contact.write
  * @param[in] account_id The account ID to delete
index a04f4bd..775c9cb 100644 (file)
@@ -41,7 +41,7 @@ extern "C"
 
 /**
  * @brief Enumeration for contact DB status.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  */
 typedef enum {
        CONTACTS_DB_STATUS_NORMAL, /**< Normal */
@@ -51,7 +51,7 @@ typedef enum {
 
 /**
  * @brief Gets the current status of server.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @param[in] status The current status of server
  * @return @c 0 on success,
  *         otherwise a negative error value
@@ -67,7 +67,7 @@ int contacts_db_get_status(contacts_db_status_e *status);
 
 /**
  * @brief Called when contacts-service server status changes.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @param[in] status The current status of server
  * @param[in] user_data The user data passed from the callback registration function
  * @pre This function requires an open connection to contacts service by contacts_connect().
@@ -78,7 +78,7 @@ typedef void (*contacts_db_status_changed_cb)(contacts_db_status_e status, void
 
 /**
  * @brief Registers a callback function.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @param[in] callback The callback function to register
  * @param[in] user_data The user data to be passed to the callback function
  * @return @c 0 on success,
@@ -96,7 +96,7 @@ int contacts_db_add_status_changed_cb(contacts_db_status_changed_cb callback, vo
 
 /**
  * @brief Unregisters a callback function.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @param[in] callback The callback function to register
  * @param[in] user_data The user data to be passed to the callback function
  * @return @c 0 on success,
index 1874ba6..3b111e1 100644 (file)
@@ -46,7 +46,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
+ * @since_tizen 2.3
  * @privlevel public
  * @privilege %http://tizen.org/privilege/contact.write
  * @param[in] group_id The group ID
@@ -70,7 +70,7 @@ int contacts_group_add_contact(int group_id, int contact_id);
 
 /**
  * @brief Removes a contact and a group relationship from the contacts database.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @privlevel public
  * @privilege %http://tizen.org/privilege/contact.write
  * @param[in] group_id The group ID
@@ -94,7 +94,7 @@ int contacts_group_remove_contact(int group_id, int contact_id);
 
 /**
  * @brief Sets a group between the previous group and the next group.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @privlevel public
  * @privilege %http://tizen.org/privilege/contact.write
  * @param[in] group_id The group ID to move
index 51b86be..5d7abd3 100644 (file)
@@ -45,7 +45,7 @@ extern "C"
 
 /**
  * @brief Creates a contacts list.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @remarks You must release @a contacts_list using contacts_list_destroy().
  * @param[out] contacts_list The contacts list handle
  * @return @c 0 on success,
@@ -62,7 +62,7 @@ int contacts_list_create(contacts_list_h *contacts_list);
 
 /**
  * @brief Destroys a contacts list and releases its all resources.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @param[in] contacts_list The contacts list handle
  * @param[in] delete_child Set @c true to destroy child records automatically,
  *                         otherwise set @c false to not destroy child records automatically
@@ -79,7 +79,7 @@ int contacts_list_destroy(contacts_list_h contacts_list, bool delete_child);
 
 /**
  * @brief Retrieves the number of contact entities from a contacts list.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @param[in] contacts_list The contacts list handle
  * @param[out] count The count of contact entity
  * @return @c 0 on success,
@@ -95,7 +95,7 @@ int contacts_list_get_count(contacts_list_h contacts_list, int *count);
 
 /**
  * @brief Adds a record to a contacts list.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @remarks Same kind of record can be added.
  * @param[in] contacts_list The contacts list handle
  * @param[in] record The record handle
@@ -114,7 +114,7 @@ int contacts_list_add(contacts_list_h contacts_list, contacts_record_h record);
  * @brief Removes a record from the contacts list.
  * @details If the record is current record, then current record is changed the next record. \n
  *          If the record is the last record, then current record will be @c NULL.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @param[in] contacts_list The contacts list handle
  * @param[in] record The record handle
  * @return @c 0 on success,
@@ -132,7 +132,7 @@ int contacts_list_remove(contacts_list_h contacts_list, contacts_record_h record
 /**
  * @brief Retrieves a record from the contacts list.
  * @details The default current record is the first record.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @remarks You MUST NOT destroy the @a record.
  *          It is destroyed automatically when the @a contacts_list is destroyed.
  * @param[in] contacts_list The contacts list handle
@@ -150,7 +150,7 @@ int contacts_list_get_current_record_p(contacts_list_h contacts_list, contacts_r
 
 /**
  * @brief Moves a contacts list to the previous position.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @param[in] contacts_list The contacts list handle
  * @return @c 0 on success,
  *         otherwise a negative error value
@@ -166,7 +166,7 @@ int contacts_list_prev(contacts_list_h contacts_list);
 
 /**
  * @brief Moves a contacts list to the next position.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @param[in] contacts_list The contacts list handle
  * @return @c 0 on success,
  *         otherwise a negative error value
@@ -182,7 +182,7 @@ int contacts_list_next(contacts_list_h contacts_list);
 
 /**
  * @brief Moves a contacts list to the first position.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @param[in] contacts_list The contacts list handle
  * @return @c 0 on success,
  *         otherwise a negative error value
@@ -198,7 +198,7 @@ int contacts_list_first(contacts_list_h contacts_list);
 
 /**
  * @brief Moves a contacts list to the last position.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @param[in] contacts_list The contacts list handle
  * @return @c 0 on success,
  *         otherwise a negative error value
index bb75481..5fdd16a 100644 (file)
@@ -46,7 +46,7 @@ extern "C"
 
 /**
  * @brief Links a person to another person.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @privlevel public
  * @privilege %http://tizen.org/privilege/contact.write
  * @param[in] base_person_id The base person ID
@@ -70,7 +70,7 @@ int contacts_person_link_person(int base_person_id, int person_id);
 
 /**
  * @brief Unlinks a contact from a person.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @privlevel public
  * @privilege %http://tizen.org/privilege/contact.write
  * @param[in] person_id The person ID
@@ -97,7 +97,7 @@ int contacts_person_unlink_contact(int person_id, int contact_id, int *unlinked_
 /**
  * @brief Resets a person's usage count.
  * @details The person is no longer in the most frequently contacted person list.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @privlevel public
  * @privilege %http://tizen.org/privilege/contact.write
  * @param[in] person_id The person ID
@@ -121,7 +121,7 @@ int contacts_person_reset_usage(int person_id, contacts_usage_type_e type);
 
 /**
  * @brief Sets the order of a (favorite) contact.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @privlevel public
  * @privilege %http://tizen.org/privilege/contact.write
  * @param[in] person_id The person ID to move
@@ -146,7 +146,7 @@ int contacts_person_set_favorite_order(int person_id, int previous_person_id, in
 
 /**
  * @brief Enumeration for Contacts person properties.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  */
 typedef enum {
        CONTACTS_PERSON_PROPERTY_NAME_CONTACT, /**< Default contacts record */
@@ -158,7 +158,7 @@ typedef enum {
 
 /**
  * @brief Sets a record's default property.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @privlevel public
  * @privilege %http://tizen.org/privilege/contact.write
  * @remarks @a id can be contact_id, number_id, email_id, image_id.
@@ -185,7 +185,7 @@ int contacts_person_set_default_property(contacts_person_property_e property, in
 
 /**
  * @brief Gets a default property for a record.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @privlevel public
  * @privilege %http://tizen.org/privilege/contact.read
  * @remarks @a id can be contact_id, number_id, email_id, image_id.
index 98e02e4..7dd5289 100644 (file)
@@ -54,7 +54,7 @@ extern "C"
 /**
  * @brief Resets the phone log's count.
  * @details The number of all types in the phone log will be @c 0.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @privlevel public
  * @privilege %http://tizen.org/privilege/callhistory.write
  * @return @c 0 on success,
index dc08a2c..e8bb21d 100644 (file)
@@ -46,7 +46,7 @@ extern "C"
 
 /**
  * @brief Connects to the contacts service.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @remarks Connection opening is necessary to access the contacts server such as fetching, inserting, or updating records.\n
  *          The execution of contacts_connect() and contacts_disconnect() could slow down your application. So it is not recommended to call them frequently.
  * @return @c 0 on success,
@@ -64,7 +64,7 @@ int contacts_connect(void);
 
 /**
  * @brief Disconnects from the contacts service.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @remarks If there is no opened connection, this function returns #CONTACTS_ERROR_DB.
  * @return @c 0 on success,
  *         otherwise a negative error value
@@ -81,7 +81,7 @@ int contacts_disconnect(void);
 
 /**
  * @brief Connects to the contacts service with a connection on another thread.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @remarks Opening connection is necessary to access the contact server and to perform operations such as fetching, inserting, or updating records.\n
  *          On multiple thread environment with contacts_connect(), request can be failed in one thread, while another request is working by the connection in the other thread.
  *          To prevent request fail, contacts_connect_on_thread() is recommended. Then new connection is set for the thread.
@@ -100,7 +100,7 @@ int contacts_connect_on_thread(void);
 
 /**
  * @brief Disconnects from the contacts service.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @remarks If there is no opened connection, this function returns #CONTACTS_ERROR_DB.
  * @return @c 0 on success,
  *         otherwise a negative error value
@@ -117,7 +117,7 @@ int contacts_disconnect_on_thread(void);
 
 /**
  * @brief Definition for contacts_connect_with_flags(). If it is called the API with this flag, then retry to call contacts_connect() for several times.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @see contacts_connect_with_flags()
  */
 #define CONTACTS_CONNECT_FLAG_RETRY    0x00000001
@@ -125,7 +125,7 @@ int contacts_disconnect_on_thread(void);
 
 /**
  * @brief Definition for default flag of contacts_connect_with_flags().
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @see contacts_connect_with_flags()
  */
 #define CONTACTS_CONNECT_FLAG_NONE     0
@@ -133,7 +133,7 @@ int contacts_disconnect_on_thread(void);
 
 /**
  * @brief Connects to the contacts service.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
+ * @since_tizen 2.3
  * @param[in] flags    Connection flag
  * @remarks Connection opening is necessary to access the contacts server such as fetching, inserting, or updating records.\n
  *          Before contacts-service daemon is ready, if you call contacts_connect(), it will fail.
index bc1988a..1a49481 100644 (file)
@@ -57,7 +57,7 @@ extern "C"
 /**
  * @deprecated Deprecated since 3.0. Use contacts_sim_import_all_contacts_by_sim_slot_no() instead.
  * @brief Imports all contacts from first SIM to Contacts Database.
- * @since_tizen @if MOBILE 2.3 @endif
+ * @since_tizen 2.3
  * @privlevel public
  * @privilege %http://tizen.org/privilege/contact.write
  * @return @c 0 on success,
@@ -79,7 +79,7 @@ int contacts_sim_import_all_contacts(void) TIZEN_DEPRECATED_API;
 /**
  * @deprecated Deprecated since 3.0. Use contacts_sim_get_initialization_status_by_sim_slot_no() instead.
  * @brief Checks whether first SIM initialization is completed.
- * @since_tizen @if MOBILE 2.3 @endif
+ * @since_tizen 2.3
  * @privlevel public
  * @privilege %http://tizen.org/privilege/contact.read
  * @param[out] completed @c true if SIM is initialized,