* For more information, see @ref CompAddressSetStreetPage "here".
* @endif
*
- * @return An error code
- * @param[in] street The new street value to set
- * @exception E_SUCCESS The method is successful.
- * @exception E_INVALID_ARG The specified @c street is an empty string.
+ * @return An error code
+ * @param[in] street The new street value to set
+ * @exception E_SUCCESS The method is successful.
*/
result SetStreet(const Tizen::Base::String& street);
* @return An error code
* @param[in] city The new city value to set
* @exception E_SUCCESS The method is successful.
- * @exception E_INVALID_ARG The specified @c city is an empty string.
*/
result SetCity(const Tizen::Base::String& city);
* @return An error code
* @param[in] state The new state value to set
* @exception E_SUCCESS The method is successful.
- * @exception E_INVALID_ARG The specified @c state is an empty string.
*/
result SetState(const Tizen::Base::String& state);
* @return An error code
* @param[in] postalCode The new postal code value to set
* @exception E_SUCCESS The method is successful.
- * @exception E_INVALID_ARG The specified @c postalCode is an empty string.
*/
result SetPostalCode(const Tizen::Base::String& postalCode);
* @return An error code
* @param[in] country The new country value to set
* @exception E_SUCCESS The method is successful.
- * @exception E_INVALID_ARG The specified @c country is an empty string.
*/
result SetCountry(const Tizen::Base::String& country);
* @return An error code
* @param[in] postOfficeBoxNumber The new post office box number value to set
* @exception E_SUCCESS The method is successful.
- * @exception E_INVALID_ARG The specified @c postOfficeBoxNumber is an empty string.
*/
result SetPostOfficeBoxNumber(const Tizen::Base::String& postOfficeBoxNumber);
* @param[in,out] contact The contact to add
* @exception E_SUCCESS The method is successful.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
- * @exception E_STORAGE_FULL The capacity of this address book is full.
* @exception E_INVALID_ARG The contact ID is not #INVALID_RECORD_ID, or
* the properties of the contact have not been set.
+ * @exception E_STORAGE_FULL The storage is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @remarks The #CONTACT_PROPERTY_ID_DISPLAY_NAME and #CONTACT_PROPERTY_ID_LAST_REVISION properties cannot be set.
* @n #CONTACT_PROPERTY_ID_DISPLAY_NAME is automatically generated from the first name and last name.
* @exception E_SUCCESS The method is successful.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @exception E_OBJ_NOT_FOUND The specified @c contact does not exist in this address book.
- * @exception E_INVALID_ARG The specified @c contact is invalid, or
- * the properties of the specified @c contact have not been set.
+ * @exception E_INVALID_ARG The specified @c contact is invalid or the properties of the specified @c contact have not been set.
+ * @exception E_STORAGE_FULL The storage is insufficient.
* @exception E_SYSTEM A system error has occurred.
*/
result UpdateContact(const Contact& contact);
* - The name of the category has not been set. @n
* - The category ID of the @c category is not #INVALID_RECORD_ID. @n
* - One of the contact members is invalid.
- * @exception E_STORAGE_FULL The capacity of this address book is full.
+ * @exception E_STORAGE_FULL The storage is insufficient.
* @exception E_SYSTEM A system error has occurred.
*/
result AddCategory(Category& category);
* @exception E_OBJ_NOT_FOUND The specified @c category does not exist in this address book.
* @exception E_INVALID_ARG The specified @c category is invalid, or
* one of the contact members is invalid.
+ * @exception E_STORAGE_FULL The storage is insufficient.
* @exception E_SYSTEM A system error has occurred.
*/
result UpdateCategory(const Category& category);
{
public:
/**
- * Creates an addressbook with the specified account ID and name.
+ * Creates an addressbook with the specified account ID and name. @n
+ * The accountId must specify a valid account and only one addressbook can be created per a account. @n
+ * The name of the addressbook must be specified and the name must be unique among the addressbooks on the device.
*
* @since 2.0
* @privlevel public
* @param[in] name The addressbook name
* @exception E_SUCCESS The method is successful.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
- * @exception E_INVALID_ARG The specified @c accountId is invalid.
- * @exception E_OBJ_ALREADY_EXIST The addressbook with the specified account ID and name already exists.
+ * @exception E_INVALID_ARG The specified @c accountId is invalid or @c name is an empty string.
+ * @exception E_OBJ_ALREADY_EXIST The addressbook with the specified account ID or name already exists.
+ * @exception E_STORAGE_FULL The storage is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @remarks The specific error code can be accessed using the GetLastResult() method.
*/
* - The properties of the contact have not been set. @n
* - The specified @c addressbookId is invalid.
* @exception E_OBJ_NOT_FOUND The specified addressbook is not found.
- * @exception E_SYSTEM A system error has occurred.
+ * @exception E_STORAGE_FULL The storage is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
* @remarks The #CONTACT_PROPERTY_ID_DISPLAY_NAME and #CONTACT_PROPERTY_ID_LAST_REVISION
* properties cannot be set. @n #CONTACT_PROPERTY_ID_DISPLAY_NAME is automatically generated from the first name and
* the last name. And #CONTACT_PROPERTY_ID_LAST_REVISION is automatically updated with the last update time.
* @exception E_OBJ_NOT_FOUND The specified @c contact does not exist in this address book.
* @exception E_INVALID_ARG The specified @c contact is invalid, or
* the properties of the specified @c contact have not been set.
+ * @exception E_STORAGE_FULL The storage is insufficient.
* @exception E_SYSTEM A system error has occurred.
*/
result UpdateContact(const Contact& contact);
* - One of the member contacts is invalid. @n
* - The category ID of the @c category is not #INVALID_RECORD_ID. @n
* - The specified @c addressbookId is invalid.
- * @exception E_STORAGE_FULL The capacity of this address book is full.
+ * @exception E_STORAGE_FULL The storage is insufficient.
* @exception E_SYSTEM A system error has occurred.
*/
result AddCategory(Category& category, AddressbookId addressbookId);
* @exception E_OBJ_NOT_FOUND The specified @c category does not exist in this address book.
* @exception E_INVALID_ARG The specified @c category is invalid, or
* one of the contact members is invalid.
+ * @exception E_STORAGE_FULL The storage is insufficient.
* @exception E_SYSTEM A system error has occurred.
*/
result UpdateCategory(const Category& category);
* @exception E_INVALID_ARG The specified @c person is invalid.
* @exception E_ILLEGAL_ACCESS Access is denied due to insufficient permission.
* @exception E_FILE_ALREADY_EXIST The specified file already exists.
- * @exception E_STORAGE_FULL The disk space is full.
+ * @exception E_STORAGE_FULL The storage is insufficient.
* @exception E_SYSTEM The method cannot proceed due to a severe system error.
*/
result ExportPersonToVcard(const Person& person, const Tizen::Base::String& vcardPath);
* the specified @c vcardPath is invalid.
* @exception E_ILLEGAL_ACCESS Access is denied due to insufficient permission.
* @exception E_FILE_ALREADY_EXIST The specified file already exists.
- * @exception E_STORAGE_FULL The disk space is full.
+ * @exception E_STORAGE_FULL The storage is insufficient.
* @exception E_SYSTEM The method cannot proceed due to a severe system error.
*/
result ExportPersonsToVcard(const Tizen::Base::Collection::IList& personList, const Tizen::Base::String& vcardPath);
* @exception E_INVALID_ARG The specified @c contact is invalid.
* @exception E_ILLEGAL_ACCESS Access is denied due to insufficient permission.
* @exception E_FILE_ALREADY_EXIST The specified file already exists.
- * @exception E_STORAGE_FULL The disk space is full.
+ * @exception E_STORAGE_FULL The storage is insufficient.
* @exception E_SYSTEM The method cannot proceed due to a severe system error.
*/
result ExportContactToVcard(const Contact& contact, const Tizen::Base::String& vcardPath);
* the specified @c vcardPath is invalid.
* @exception E_ILLEGAL_ACCESS Access is denied due to insufficient permission.
* @exception E_FILE_ALREADY_EXIST The specified file already exists.
- * @exception E_STORAGE_FULL The disk space is full.
+ * @exception E_STORAGE_FULL The storage is insufficient.
* @exception E_SYSTEM The method cannot proceed due to a severe system error.
*/
result ExportContactsToVcard(const Tizen::Base::Collection::IList& contactList, const Tizen::Base::String& vcardPath);
* @exception E_INVALID_ARG The specified @c userProfile is invalid.
* @exception E_ILLEGAL_ACCESS Access is denied due to insufficient permission.
* @exception E_FILE_ALREADY_EXIST The specified file already exists.
- * @exception E_STORAGE_FULL The disk space is full.
+ * @exception E_STORAGE_FULL The storage is insufficient.
* @exception E_SYSTEM The method cannot proceed due to a severe system error.
*/
result ExportUserProfileToVcard(const UserProfile& userProfile, const Tizen::Base::String& vcardPath);
* the specified @c vcardPath is invalid.
* @exception E_ILLEGAL_ACCESS Access is denied due to insufficient permission.
* @exception E_FILE_ALREADY_EXIST The specified file already exists.
- * @exception E_STORAGE_FULL The disk space is full.
+ * @exception E_STORAGE_FULL The storage is insufficient.
* @exception E_SYSTEM The method cannot proceed due to a severe system error.
*/
result ExportUserProfilesToVcard(const Tizen::Base::Collection::IList& userProfileList, const Tizen::Base::String& vcardPath);
* @return An error code
* @param [in] filePath The file path of the ringtone
* @exception E_SUCCESS The method is successful.
- * @exception E_INVALID_ARG The specified @c filePath is an empty string.
+ * @exception E_INVALID_ARG The length of the specified @c filePath exceeds system limitations.
* @exception E_FILE_NOT_FOUND The specified file cannot be found or accessed.
* @see GetRingtonePath()
*/
int ret = contacts_db_insert_record(recordHandle, &recordId);
SysTryReturn(NID_SCL, ret != CONTACTS_ERROR_OUT_OF_MEMORY, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
+ SysTryReturn(NID_SCL, ret != CONTACTS_ERROR_FILE_NO_SPACE, E_STORAGE_FULL, E_STORAGE_FULL, "[%s] The storage is insufficient.", GetErrorMessage(E_STORAGE_FULL));
SysTryReturn(NID_SCL, ret == CONTACTS_ERROR_NONE, E_SYSTEM, E_SYSTEM, "[%s] A system error has been occurred.", GetErrorMessage(E_SYSTEM));
ret = contacts_db_get_record(_contacts_contact._uri, recordId, &recordHandle);
int ret = contacts_db_insert_record(recordHandle, &recordId);
SysTryReturn(NID_SCL, ret != CONTACTS_ERROR_OUT_OF_MEMORY, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
+ SysTryReturn(NID_SCL, ret != CONTACTS_ERROR_FILE_NO_SPACE, E_STORAGE_FULL, E_STORAGE_FULL, "[%s] The storage is insufficient.", GetErrorMessage(E_STORAGE_FULL));
SysTryReturn(NID_SCL, ret == CONTACTS_ERROR_NONE, E_SYSTEM, E_SYSTEM, "[%s] A system error has been occurred.", GetErrorMessage(E_SYSTEM));
ret = contacts_db_get_record(_contacts_group._uri, recordId, &recordHandle);
ret = contacts_db_update_record(recordHandle);
SysTryReturn(NID_SCL, ret != CONTACTS_ERROR_NO_DATA, E_OBJ_NOT_FOUND, E_OBJ_NOT_FOUND, "[%s] The contact is not found.", GetErrorMessage(E_OBJ_NOT_FOUND));
SysTryReturn(NID_SCL, ret != CONTACTS_ERROR_OUT_OF_MEMORY, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
+ SysTryReturn(NID_SCL, ret != CONTACTS_ERROR_FILE_NO_SPACE, E_STORAGE_FULL, E_STORAGE_FULL, "[%s] The storage is insufficient.", GetErrorMessage(E_STORAGE_FULL));
SysTryReturn(NID_SCL, ret == CONTACTS_ERROR_NONE, E_SYSTEM, E_SYSTEM, "[%s] A system error has been occurred.", GetErrorMessage(E_SYSTEM));
ret = contacts_db_get_record(_contacts_contact._uri, contact.GetRecordId(), &recordHandle);
ret = contacts_db_update_record(recordHandle);
SysTryReturn(NID_SCL, ret != CONTACTS_ERROR_NO_DATA, E_OBJ_NOT_FOUND, E_OBJ_NOT_FOUND, "[%s] The contact is not found.", GetErrorMessage(E_OBJ_NOT_FOUND));
SysTryReturn(NID_SCL, ret != CONTACTS_ERROR_OUT_OF_MEMORY, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
+ SysTryReturn(NID_SCL, ret != CONTACTS_ERROR_FILE_NO_SPACE, E_STORAGE_FULL, E_STORAGE_FULL, "[%s] The storage is insufficient.", GetErrorMessage(E_STORAGE_FULL));
SysTryReturn(NID_SCL, ret == CONTACTS_ERROR_NONE, E_SYSTEM, E_SYSTEM, "[%s] A system error has been occurred.", GetErrorMessage(E_SYSTEM));
ret = contacts_db_get_record(_contacts_group._uri, category.GetRecordId(), &recordHandle);
ret = contacts_db_insert_record(recordHandle, &recordId);
SysTryReturn(NID_SCL, ret != CONTACTS_ERROR_OUT_OF_MEMORY, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
+ SysTryReturn(NID_SCL, ret != CONTACTS_ERROR_FILE_NO_SPACE, E_STORAGE_FULL, E_STORAGE_FULL, "[%s] The storage is insufficient.", GetErrorMessage(E_STORAGE_FULL));
SysTryReturn(NID_SCL, ret == CONTACTS_ERROR_NONE, E_SYSTEM, E_SYSTEM, "[%s] A system error has been occurred.", GetErrorMessage(E_SYSTEM));
ret = contacts_db_get_record(_contacts_contact._uri, recordId, &recordHandle);
int ret = contacts_db_insert_record(recordHandle, &recordId);
SysTryReturn(NID_SCL, ret != CONTACTS_ERROR_OUT_OF_MEMORY, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
+ SysTryReturn(NID_SCL, ret != CONTACTS_ERROR_FILE_NO_SPACE, E_STORAGE_FULL, E_STORAGE_FULL, "[%s] The storage is insufficient.", GetErrorMessage(E_STORAGE_FULL));
SysTryReturn(NID_SCL, ret == CONTACTS_ERROR_NONE, E_SYSTEM, E_SYSTEM, "[%s] A system error has been occurred.", GetErrorMessage(E_SYSTEM));
ret = contacts_db_get_record(_contacts_group._uri, recordId, &recordHandle);
ret = contacts_db_update_record(recordHandle);
SysTryReturn(NID_SCL, ret != CONTACTS_ERROR_OUT_OF_MEMORY, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
+ SysTryReturn(NID_SCL, ret != CONTACTS_ERROR_FILE_NO_SPACE, E_STORAGE_FULL, E_STORAGE_FULL, "[%s] The storage is insufficient.", GetErrorMessage(E_STORAGE_FULL));
SysTryReturn(NID_SCL, ret == CONTACTS_ERROR_NONE, E_SYSTEM, E_SYSTEM, "[%s] A system error has been occurred. Failed to update a contact.", GetErrorMessage(E_SYSTEM));
ret = contacts_db_get_record(_contacts_contact._uri, contact.GetRecordId(), &recordHandle);
ret = contacts_db_update_record(recordHandle);
SysTryReturn(NID_SCL, ret != CONTACTS_ERROR_OUT_OF_MEMORY, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
+ SysTryReturn(NID_SCL, ret != CONTACTS_ERROR_FILE_NO_SPACE, E_STORAGE_FULL, E_STORAGE_FULL, "[%s] The storage is insufficient.", GetErrorMessage(E_STORAGE_FULL));
SysTryReturn(NID_SCL, ret == CONTACTS_ERROR_NONE, E_SYSTEM, E_SYSTEM, "[%s] A system error has been occurred.", GetErrorMessage(E_SYSTEM));
ret = contacts_db_get_record(_contacts_group._uri, category.GetRecordId(), &recordHandle);