|
Tizen Native API
5.0
|
The contacts setting API provides the set of definitions and interfaces that enable application developers to set up contacts features.
#include <contacts.h>
| typedef void(* contacts_setting_name_display_order_changed_cb)(contacts_name_display_order_e name_display_order, void *user_data) |
Called when a designated view changes.
| [in] | name_display_order | The name display order setting value |
| [in] | user_data | The user data passed from the callback registration function |
| typedef void(* contacts_setting_name_sorting_order_changed_cb)(contacts_name_sorting_order_e name_sorting_order, void *user_data) |
Called when a designated view changes.
| [in] | name_sorting_order | The name sorting order setting value |
| [in] | user_data | The user data passed from the callback registration function |
| int contacts_setting_add_name_display_order_changed_cb | ( | contacts_setting_name_display_order_changed_cb | callback, |
| void * | user_data | ||
| ) |
Registers a callback function.
| [in] | callback | The callback function to register |
| [in] | user_data | The user data to be passed to the callback function |
0 on success, otherwise a negative error value | CONTACTS_ERROR_NONE | Successful |
| CONTACTS_ERROR_INVALID_PARAMETER | Invalid parameter |
| CONTACTS_ERROR_IPC | Unknown IPC error |
| CONTACTS_ERROR_INTERNAL | Implementation Error, Temporary Use |
| CONTACTS_ERROR_PERMISSION_DENIED | Permission denied. This application does not have the privilege to call this method |
| CONTACTS_ERROR_NOT_SUPPORTED | Not supported |
| CONTACTS_ERROR_SYSTEM | Internal system module error |
| int contacts_setting_add_name_sorting_order_changed_cb | ( | contacts_setting_name_sorting_order_changed_cb | callback, |
| void * | user_data | ||
| ) |
Registers a callback function.
| [in] | callback | The callback function to register |
| [in] | user_data | The user data to be passed to the callback function |
0 on success, otherwise a negative error value | CONTACTS_ERROR_NONE | Successful |
| CONTACTS_ERROR_INVALID_PARAMETER | Invalid parameter |
| CONTACTS_ERROR_PERMISSION_DENIED | Permission denied. This application does not have the privilege to call this method |
| CONTACTS_ERROR_NOT_SUPPORTED | Not supported |
| CONTACTS_ERROR_IPC | Unknown IPC error |
| CONTACTS_ERROR_INTERNAL | Implementation Error, Temporary Use |
| CONTACTS_ERROR_SYSTEM | Internal system module error |
| int contacts_setting_get_name_display_order | ( | contacts_name_display_order_e * | name_display_order | ) |
Gets the contacts name display order.
| [out] | name_display_order | The name display order |
0 on success, otherwise a negative error value | CONTACTS_ERROR_NONE | Successful |
| CONTACTS_ERROR_INVALID_PARAMETER | Invalid parameter |
| CONTACTS_ERROR_PERMISSION_DENIED | Permission denied. This application does not have the privilege to call this method |
| CONTACTS_ERROR_NOT_SUPPORTED | Not supported |
| CONTACTS_ERROR_IPC | Unknown IPC error |
| CONTACTS_ERROR_SYSTEM | Internal system module error |
| int contacts_setting_get_name_sorting_order | ( | contacts_name_sorting_order_e * | name_sorting_order | ) |
Gets the contacts name sorting order in which contacts are returned.
| [out] | name_sorting_order | The name sorting order |
0 on success, otherwise a negative error value | CONTACTS_ERROR_NONE | Successful |
| CONTACTS_ERROR_INVALID_PARAMETER | Invalid parameter |
| CONTACTS_ERROR_PERMISSION_DENIED | Permission denied. This application does not have the privilege to call this method. |
| CONTACTS_ERROR_NOT_SUPPORTED | Not supported |
| CONTACTS_ERROR_IPC | Unknown IPC error |
| CONTACTS_ERROR_SYSTEM | Internal system module error |
| int contacts_setting_remove_name_display_order_changed_cb | ( | contacts_setting_name_display_order_changed_cb | callback, |
| void * | user_data | ||
| ) |
Unregisters a callback function.
| [in] | callback | The callback function to register |
| [in] | user_data | The user data to be passed to the callback function |
0 on success, otherwise a negative error value | CONTACTS_ERROR_NONE | Successful |
| CONTACTS_ERROR_INVALID_PARAMETER | Invalid parameter |
| CONTACTS_ERROR_NOT_SUPPORTED | Not supported |
| CONTACTS_ERROR_INTERNAL | Implementation Error, Temporary Use |
| CONTACTS_ERROR_SYSTEM | Internal system module error |
| int contacts_setting_remove_name_sorting_order_changed_cb | ( | contacts_setting_name_sorting_order_changed_cb | callback, |
| void * | user_data | ||
| ) |
Unregisters a callback function.
| [in] | callback | The callback function to register |
| [in] | user_data | The user data to be passed to the callback function |
0 on success, otherwise a negative error value | CONTACTS_ERROR_NONE | Successful |
| CONTACTS_ERROR_INVALID_PARAMETER | Invalid parameter |
| CONTACTS_ERROR_NOT_SUPPORTED | Not supported |
| CONTACTS_ERROR_INTERNAL | Implementation Error, Temporary Use |
| CONTACTS_ERROR_SYSTEM | Internal system module error |
| int contacts_setting_set_name_display_order | ( | contacts_name_display_order_e | name_display_order | ) |
Sets the contacts name display order.
| [in] | name_display_order | The name display order |
0 on success, otherwise a negative error value | CONTACTS_ERROR_NONE | Successful |
| CONTACTS_ERROR_OUT_OF_MEMORY | Out of memory |
| CONTACTS_ERROR_INVALID_PARAMETER | Invalid parameter |
| CONTACTS_ERROR_PERMISSION_DENIED | Permission denied. This application does not have the privilege to call this method |
| CONTACTS_ERROR_NOT_SUPPORTED | Not supported |
| CONTACTS_ERROR_IPC | Unknown IPC error |
| CONTACTS_ERROR_SYSTEM | Internal system module error |
| int contacts_setting_set_name_sorting_order | ( | contacts_name_sorting_order_e | name_sorting_order | ) |
Sets the contacts name sorting order in which contacts are returned.
| [in] | name_sorting_order | The name sorting order |
0 on success, otherwise a negative error value | CONTACTS_ERROR_NONE | Successful |
| CONTACTS_ERROR_OUT_OF_MEMORY | Out of memory |
| CONTACTS_ERROR_INVALID_PARAMETER | Invalid parameter |
| CONTACTS_ERROR_PERMISSION_DENIED | Permission denied. This application does not have the privilege to call this method |
| CONTACTS_ERROR_NOT_SUPPORTED | Not supported |
| CONTACTS_ERROR_IPC | Unknown IPC error |
| CONTACTS_ERROR_SYSTEM | Internal system module error |