Added changes require for multiuser support 39/16039/3
authorseema.s <seema.singh@samsung.com>
Wed, 5 Feb 2014 12:34:11 +0000 (18:04 +0530)
committerSeema Singh <seema.singh@samsung.com>
Tue, 11 Feb 2014 08:38:37 +0000 (00:38 -0800)
Bug-Tizen: PTREL-280

Change-Id: I747e6b039b7d7f0de8af4df0151e13e58c9cae9d
Signed-off-by: seema.s <seema.singh@samsung.com>
packaging/ug-nfc-efl.spec
ug-nfc-setting-efl/CMakeLists.txt
ug-nfc-setting-efl/include/ug-nfc-setting-main.h
ug-nfc-setting-efl/src/ug-nfc-setting-db.c

index 70e7cb5687f396cd0c3e2baa08fc8d829d46260f..c843b6302f062c835597cbb91bca711ce7db9446 100644 (file)
@@ -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
index 88152cde1beb8337cc4fb5fc8726c052e5ff3c0e..a523b6a1f7f595c2d274d0e82dbbcdea8bfd4fd5 100644 (file)
@@ -41,6 +41,7 @@ vconf
 capi-appfw-application
 capi-network-nfc
 sqlite3
+libtzplatform-config
 )
 
 FOREACH(flag ${pkgs_ug_nfc_setting_CFLAGS})
index a37b37e3d0743d9ffa4a2dadaa1db95faef2800f..2b413973ff81b7373857b47621adfb95a9f6bf06 100644 (file)
@@ -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
index b18d1a1a185b0404be75d7a9a8b8906433bfef9e..0df8b2cc47b568078c2096f28fce74e63310ccc6 100644 (file)
 
 #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             */