summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseema.s <seema.singh@samsung.com>2014-02-05 18:04:11 +0530
committerSeema Singh <seema.singh@samsung.com>2014-02-11 00:38:37 -0800
commit58b08a12b634408e678ecac3684a4475405a0e5d (patch)
tree1c6bb4bdebfef5c1727dc1335bfe9d216e424c1c
parentba494332740ec774b48545b8a3b1e4178cd4f84b (diff)
downloadug-nfc-efl-58b08a12b634408e678ecac3684a4475405a0e5d.tar.gz
ug-nfc-efl-58b08a12b634408e678ecac3684a4475405a0e5d.tar.bz2
ug-nfc-efl-58b08a12b634408e678ecac3684a4475405a0e5d.zip
Added changes require for multiuser support
Bug-Tizen: PTREL-280 Change-Id: I747e6b039b7d7f0de8af4df0151e13e58c9cae9d Signed-off-by: seema.s <seema.singh@samsung.com>
-rw-r--r--packaging/ug-nfc-efl.spec1
-rw-r--r--ug-nfc-setting-efl/CMakeLists.txt1
-rw-r--r--ug-nfc-setting-efl/include/ug-nfc-setting-main.h3
-rw-r--r--ug-nfc-setting-efl/src/ug-nfc-setting-db.c3
4 files changed, 6 insertions, 2 deletions
diff --git a/packaging/ug-nfc-efl.spec b/packaging/ug-nfc-efl.spec
index 70e7cb5..c843b63 100644
--- a/packaging/ug-nfc-efl.spec
+++ b/packaging/ug-nfc-efl.spec
@@ -23,6 +23,7 @@ BuildRequires: pkgconfig(capi-content-mime-type)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(x11)
+BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: cmake
BuildRequires: edje-tools
BuildRequires: gettext-tools
diff --git a/ug-nfc-setting-efl/CMakeLists.txt b/ug-nfc-setting-efl/CMakeLists.txt
index 88152cd..a523b6a 100644
--- a/ug-nfc-setting-efl/CMakeLists.txt
+++ b/ug-nfc-setting-efl/CMakeLists.txt
@@ -41,6 +41,7 @@ vconf
capi-appfw-application
capi-network-nfc
sqlite3
+libtzplatform-config
)
FOREACH(flag ${pkgs_ug_nfc_setting_CFLAGS})
diff --git a/ug-nfc-setting-efl/include/ug-nfc-setting-main.h b/ug-nfc-setting-efl/include/ug-nfc-setting-main.h
index a37b37e..2b41397 100644
--- a/ug-nfc-setting-efl/include/ug-nfc-setting-main.h
+++ b/ug-nfc-setting-efl/include/ug-nfc-setting-main.h
@@ -32,12 +32,13 @@ extern "C" {
#include <dlog.h>
#include <vconf.h>
#include <nfc.h>
+#include <tzplatform_config.h>
#define LOCALE_PATH LOCALEDIR
#define EDJ_PATH EDJDIR
#define EDJ_FILE EDJ_PATH"/"PACKAGE".edj"
-#define PREDEFINED_ITEM_FILE_PATH "/usr/apps/org.tizen.57r43275q7/share"
+#define PREDEFINED_ITEM_FILE_PATH tzplatform_mkpath(TZ_SYS_RO_APP, "org.tizen.57r43275q7/share")
#ifdef LOG_TAG
#undef LOG_TAG
diff --git a/ug-nfc-setting-efl/src/ug-nfc-setting-db.c b/ug-nfc-setting-efl/src/ug-nfc-setting-db.c
index b18d1a1..0df8b2c 100644
--- a/ug-nfc-setting-efl/src/ug-nfc-setting-db.c
+++ b/ug-nfc-setting-efl/src/ug-nfc-setting-db.c
@@ -17,9 +17,10 @@
#include "ug-nfc-setting-main.h"
#include "ug-nfc-setting-db.h"
+#include <tzplatform_config.h>
-#define DB_FILE_PATH "/opt/usr/dbspace/.net-nfcpush.db"
+#define DB_FILE_PATH tzplatform_mkpath(TZ_USER_DB, ".net-nfcpush.db")
#define DB_TABLE_NAME "NfcPushMsgTable"
/* sqlite> .schema */