Tizen Native API  5.5

The contacts activity API provides the set of definitions and interfaces that enable application developers to delete activities by contact_id and account_id.
For more details, see _contacts_activity view.

Required Header

#include <contacts.h>

Functions

int contacts_activity_delete_by_contact_id (int contact_id)
 Deletes an activity record from the contacts database by contact ID.
int contacts_activity_delete_by_account_id (int account_id)
 Deletes an activity record from the contacts database by account ID.

Function Documentation

int contacts_activity_delete_by_account_id ( int  account_id)

Deletes an activity record from the contacts database by account ID.

Since :
3.0
Privilege Level:
public
Privilege:
http://tizen.org/privilege/contact.write
Parameters:
[in]account_idThe account ID to delete
Returns:
0 on success, otherwise a negative error value
Return values:
CONTACTS_ERROR_NONESuccessful
CONTACTS_ERROR_OUT_OF_MEMORYOut of memory
CONTACTS_ERROR_INVALID_PARAMETERInvalid parameter
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()
int contacts_activity_delete_by_contact_id ( int  contact_id)

Deletes an activity record from the contacts database by contact ID.

Since :
3.0
Privilege Level:
public
Privilege:
http://tizen.org/privilege/contact.write
Parameters:
[in]contact_idThe contact ID to delete
Returns:
0 on success, otherwise a negative error value (contacts_error_e)
Return values:
CONTACTS_ERROR_NONESuccessful
CONTACTS_ERROR_OUT_OF_MEMORYOut of memory
CONTACTS_ERROR_INVALID_PARAMETERInvalid parameter
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()