Tizen Native API  7.0
Phone log

The contacts phone log API provides the set of definitions and interfaces that enable application developers to reset phone log count.

Required Header

#include <contacts.h>

Related Features

This API is related with the following features:

  • http://tizen.org/feature/network.telephony
    It is recommended to design feature related codes in your application for reliability.
    You can check if a device supports the related features for this API by using System Information, thereby controlling the procedure of your application.
    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.
    More details on featuring your application can be found from Feature Element.

Functions

int contacts_phone_log_reset_statistics (void)
 Resets the phone log's count.
int contacts_phone_log_reset_statistics_by_sim (int sim_slot_no)
 Resets the phone log's count by sim slot no.

Function Documentation

Resets the phone log's count.

The number of all types in the phone log will be 0.

Since :
3.0
Privilege Level:
public
Privilege:
http://tizen.org/privilege/callhistory.write
Returns:
0 on success, otherwise a negative error value
Return values:
CONTACTS_ERROR_NONESuccessful
CONTACTS_ERROR_OUT_OF_MEMORYOut of memory
CONTACTS_ERROR_FILE_NO_SPACEFS Full
CONTACTS_ERROR_PERMISSION_DENIEDPermission denied. This application does not have the privilege to call this method
CONTACTS_ERROR_NOT_SUPPORTEDNot supported
CONTACTS_ERROR_DBDatabase operation failure
CONTACTS_ERROR_IPCIPC error
CONTACTS_ERROR_SYSTEMInternal system module error
Precondition:
contacts_connect() should be called to open a connection to the contacts service.
See also:
contacts_connect()

Resets the phone log's count by sim slot no.

Since :
3.0
Privilege Level:
public
Privilege:
http://tizen.org/privilege/callhistory.write
Parameters:
[in]sim_slot_noIt is related to the SIM slot number. sim_slot_no 0 means first SIM, sim_slot_no 1 means second SIM
Returns:
0 on success, otherwise a negative error value
Return values:
CONTACTS_ERROR_NONESuccessful
CONTACTS_ERROR_OUT_OF_MEMORYOut of memory
CONTACTS_ERROR_FILE_NO_SPACEFS Full
CONTACTS_ERROR_PERMISSION_DENIEDPermission denied. This application does not have the privilege to call this method
CONTACTS_ERROR_NOT_SUPPORTEDNot supported
CONTACTS_ERROR_DBDatabase operation failure
CONTACTS_ERROR_IPCIPC error
CONTACTS_ERROR_SYSTEMInternal system module error
Precondition:
contacts_connect() should be called to open a connection to the contacts service.
See also:
contacts_connect()