#define CTS_MY_IMAGE_LOCATION tzplatform_mkpath(TZ_USER_DATA,"contacts-svc/img/my")
#define CTS_GROUP_IMAGE_LOCATION tzplatform_mkpath(TZ_USER_DATA,"contacts-svc/img/group")
#define CTS_LOGO_IMAGE_LOCATION tzplatform_mkpath(TZ_USER_DATA,"contacts-svc/img/logo")
+#define CTSVC_CONTACT_IMG_FULL_LOCATION tzplatform_mkpath(TZ_USER_DATA,"contacts-svc/img/contact")
+
#define CTSVC_NOTI_ADDRESSBOOK_CHANGED tzplatform_mkpath(TZ_USER_DATA,"contacts-svc/.CONTACTS_SVC_AB_CHANGED")
#define CTSVC_NOTI_GROUP_CHANGED tzplatform_mkpath(TZ_USER_DATA,"contacts-svc/.CONTACTS_SVC_GROUP_CHANGED")
#define CTSVC_NOTI_PERSON_CHANGED tzplatform_mkpath(TZ_USER_DATA,"contacts-svc/.CONTACTS_SVC_PERSON_CHANGED")
#include "ctsvc_internal.h"
#include "ctsvc_record.h"
#include "ctsvc_view.h"
+#include "ctsvc_notify.h"
#ifdef _CONTACTS_IPC_SERVER
#ifdef ENABLE_SIM_FEATURE
#define CTSVC_PATH_MAX_LEN 1024
#define CTSVC_IMG_FULL_PATH_SIZE_MAX 1024 // current max length file path is 256
-#define CTSVC_IMG_FULL_LOCATION tzplatform_mkpath(TZ_USER_DATA,"contacts-svc/img")
-#define CTSVC_CONTACT_IMG_FULL_LOCATION tzplatform_mkpath(TZ_USER_DATA,"contacts-svc/img/contact")
#define SAFE_STR(src) (src)?src:""
#define SAFE_STRDUP(src) (src)?strdup(src):NULL
#include "ctsvc_localize.h"
#include "ctsvc_localize_utils.h"
#include "ctsvc_person.h"
+#include "ctsvc_notify.h"
+
#ifdef ENABLE_LOG_FEATURE
#include "ctsvc_phonelog.h"
#endif // ENABLE_LOG_FEATURE
#include "ctsvc_localize_utils.h"
#include "ctsvc_localize_ch.h"
#include "ctsvc_notification.h"
+#include "ctsvc_notify.h"
#include "ctsvc_db_access_control.h"
#include "ctsvc_db_plugin_contact_helper.h"
#include "ctsvc_record.h"
#include "ctsvc_notification.h"
#include "ctsvc_db_access_control.h"
+#include "ctsvc_notify.h"
int ctsvc_db_image_get_value_from_stmt(cts_stmt stmt, contacts_record_h *record, int start_count)
{
#include "ctsvc_notification.h"
#include "ctsvc_localize_utils.h"
#include "ctsvc_db_access_control.h"
+#include "ctsvc_notify.h"
#include "ctsvc_db_plugin_contact_helper.h"
#include "ctsvc_record.h"
#include "ctsvc_normalize.h"
#include "ctsvc_notification.h"
+#include "ctsvc_notify.h"
#ifdef _CONTACTS_IPC_SERVER
#include "ctsvc_server_change_subject.h"
#include "ctsvc_db_query.h"
#include "ctsvc_record.h"
#include "ctsvc_notification.h"
+#include "ctsvc_notify.h"
#ifdef _CONTACTS_IPC_SERVER
#include "ctsvc_server_change_subject.h"
#include "ctsvc_db_query.h"
#include "ctsvc_notification.h"
#include "ctsvc_db_access_control.h"
+#include "ctsvc_notify.h"
static int __ctsvc_db_simple_contact_get_record( int id, contacts_record_h* out_record );
static int __ctsvc_db_simple_contact_get_all_records( int offset, int limit, contacts_list_h* out_list );
#include "ctsvc_db_query.h"
#include "ctsvc_record.h"
#include "ctsvc_notification.h"
+#include "ctsvc_notify.h"
static int __ctsvc_db_speeddial_insert_record( contacts_record_h record, int *id );
static int __ctsvc_db_speeddial_get_record( int id, contacts_record_h* out_record );
#include "ctsvc_localize.h"
#include "ctsvc_localize_utils.h"
#include "ctsvc_setting.h"
+#include "ctsvc_notify.h"
#include "ctsvc_db_access_control.h"
#include "ctsvc_db_plugin_person_helper.h"
#include "ctsvc_db_plugin_person_helper.h"
#include "ctsvc_db_plugin_contact_helper.h"
#include "ctsvc_db_access_control.h"
+#include "ctsvc_notify.h"
#ifdef ENABLE_LOG_FEATURE
#include "ctsvc_phonelog.h"
#include "ctsvc_localize.h"
#include "ctsvc_localize_utils.h"
#include "ctsvc_setting.h"
+#include "ctsvc_notify.h"
#ifdef _CONTACTS_IPC_SERVER
#include "ctsvc_server_change_subject.h"
int ret;
struct statfs buf;
long long size;
- ret = statfs(CTSVC_IMG_FULL_LOCATION, &buf);
+ ret = statfs(CTSVC_NOTI_IMG_REPERTORY, &buf);
RETVM_IF(ret!=0, false, "statfs Failed(%d)", ret);
ctsvc_create_rep_set_permission(CTS_MY_IMAGE_LOCATION, 0770);
ctsvc_create_rep_set_permission(CTS_GROUP_IMAGE_LOCATION, 0770);
ctsvc_create_rep_set_permission(CTS_LOGO_IMAGE_LOCATION, 0770);
+ ctsvc_create_rep_set_permission(CTSVC_CONTACT_IMG_FULL_LOCATION, 0770);
ctsvc_create_file_set_permission(CTSVC_NOTI_ADDRESSBOOK_CHANGED, 0660);
ctsvc_create_file_set_permission(CTSVC_NOTI_GROUP_CHANGED, 0660);