Add note for inserting private image in contacts 53/49953/1
authorjiwon44.park <jiwon44.park@samsung.com>
Tue, 29 Sep 2015 10:20:15 +0000 (19:20 +0900)
committerGukhwan Cho <gh78.cho@samsung.com>
Thu, 22 Oct 2015 02:57:17 +0000 (11:57 +0900)
Change-Id: Ic204e771493b758c8b5f24d73397c15a4e299566
Signed-off-by: jiwon44.park <jiwon44.park@samsung.com>
doc/contacts_doc.h

index ae38a77..faeefcd 100644 (file)
  * contacts_record_add_child_record(contact, _contacts_contact.image, image);
  * @endcode
  *
- *
+ * <table class="note">
+ *    <tbody>
+ *     <tr>
+ *      <th class="note">Note</th>
+ *     </tr>
+ *     <tr>
+ *      <td class="note">For an application to insert private images in contacts, it needs to follow below conditions:<br/>
+ * &nbsp;&nbsp;&nbsp;1. Application must have privilege of http://tizen.org/privilege/contact.write to use APIs such as contacts_db_insert_record().<br/>
+ * &nbsp;&nbsp;&nbsp;2. Application's private directory and files must have 'read' permission of others, '644' for example. SMACK protects read permission from the other applications.<br/>
+ * &nbsp;&nbsp;&nbsp;3. Application may erase the image after destroying the contact record (contacts_record_destroy).<br/>
+ *      </td>
+ *     </tr>
+ *    </tbody>
+ * </table>
  *
  * @section CAPI_SOCIAL_CONTACTS_SVC_MODULE_RECORDS Records
  * In contacts-service, one of basic concept is a record.