4 * Copyright (c) 2010 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
19 #ifndef __TIZEN_SOCIAL_CONTACTS_PHONELOG_INTERNAL_H__
20 #define __TIZEN_SOCIAL_CONTACTS_PHONELOG_INTERNAL_H__
29 * @file contacts_phone_log_internal.h
33 * @brief Enumeration for Contacts phone log delete flags.
36 CONTACTS_PHONE_LOG_DELETE_BY_ADDRESS, /**< Delete by address */
37 CONTACTS_PHONE_LOG_DELETE_BY_MESSAGE_EXTRA_DATA1, /**< Delete by message extra_data1 */
38 CONTACTS_PHONE_LOG_DELETE_BY_EMAIL_EXTRA_DATA1, /**< Delete by email extra_data1 */
39 } contacts_phone_log_delete_e;
42 * @brief Deletes a phone log with extra_data1.
44 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.4 @endif
46 * @privilege %http://tizen.org/privilege/callhistory.write
48 * @param[in] op Operation #contacts_phone_log_delete_e
49 * @param[in] address (optional) Address to delete (number, email, etc)
50 * @param[in] extra_data1 (optional) Extra_data1 to delete
52 * @return @c 0 on sucess,
53 * otherwise a negative error value (#contacts_error_e)
55 * @retval #CONTACTS_ERROR_NONE Successful
56 * @retval #CONTACTS_ERROR_INVALID_PARAMETER Invalid parameter
57 * @retval #CONTACTS_ERROR_FILE_NO_SPACE FS Full
58 * @retval #CONTACTS_ERROR_OUT_OF_MEMORY Out of memory
59 * @retval #CONTACTS_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method.
60 * @retval #CONTACTS_ERROR_NOT_SUPPORTED Not supported
61 * @retval #CONTACTS_ERROR_IPC IPC error * @par example
63 contacts_phone_log_delete(CONTACTS_PHONE_LOG_DELETE_BY_ADDRESS, "0123456789");
64 contacts_phone_log_delete(CONTACTS_PHONE_LOG_DELETE_BY_MESSAGE_EXTRA_DATA1, 2);
65 contacts_phone_log_delete(CONTACTS_PHONE_LOG_DELETE_BY_EMAIL_EXTRA_DATA1, 1);
68 int contacts_phone_log_delete(contacts_phone_log_delete_e op, ...);
75 #endif /* __TIZEN_SOCIAL_CONTACTS_PHONELOG_INTERNAL_H__ */