summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuWan Kim <juwan.kim@samsung.com>2015-03-11 16:41:10 +0900
committerJuWan Kim <juwan.kim@samsung.com>2015-03-11 16:48:49 +0900
commit40ba44f1e36fa47852595fec40e184e09e40f3df (patch)
tree89c516fa0e6f5c6b4b42b3ce0c1f5cef6a2a8c1c /src
parent6635834f7826eb04f72907fd2e28082f8f89058a (diff)
downloadsettings-40ba44f1e36fa47852595fec40e184e09e40f3df.tar.gz
settings-40ba44f1e36fa47852595fec40e184e09e40f3df.tar.bz2
settings-40ba44f1e36fa47852595fec40e184e09e40f3df.zip
Remove vconf set in spec file. Add vconf set flow to main.cppsubmit/tizen_tv/20150311.080819accepted/tizen/tv/20150312.010920
* Vconftool set command in spec has a root user label * To use the vconf value in program, vconf value shoud be set in running * time. Change-Id: Ia2fa3d983eaa8dbe241e299c7344e5ddb46199b4 Signed-off-by: JuWan Kim <juwan.kim@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 031bea0..fda34a6 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -25,6 +25,7 @@
#include "settings_provider.h"
#include <BaseApp.h>
+#include <vconf.h>
#define PARAM_SETTINGS_ITEM "settings-item"
#define MAIN_CATALOG "maincatalog"
@@ -90,6 +91,45 @@ protected:
ad.item = NULL;
ad.app_control = 0;
+ /* Set Default value by vconf */
+
+ /* Proxy */
+ if(vconf_set_int(VCONF_PROXY_METHOD, 0)) _DBG("Fail to set vconf");
+ if(vconf_set_str(VCONF_PROXY_IP, "0.0.0.0")) _DBG("Fail to set vconf");
+ if(vconf_set_str(VCONF_PROXY_URL, "")) _DBG("Fail to set vconf");
+
+ /* Network */
+ if(vconf_set_str(WIRED_DNS_KEY, "0.0.0.0")) _DBG("Fail to set vconf");
+ if(vconf_set_str(WIRED_GATEWAY_KEY, "0.0.0.0")) _DBG("Fail to set vconf");
+ if(vconf_set_str(WIRED_IP_LAST_MODE, "Obtain automatically")) _DBG("Fail to set vconf");
+ if(vconf_set_str(WIRED_DNS_LAST_MODE, "Obtain automatically")) _DBG("Fail to set vconf");
+ if(vconf_set_str(WIRED_IP_KEY, "0.0.0.0")) _DBG("Fail to set vconf");
+ if(vconf_set_str(WIRED_SUBMASK_KEY, "0.0.0.0")) _DBG("Fail to set vconf");
+
+ if(vconf_set_str(WIRELESS_DNS_KEY, "0.0.0.0")) _DBG("Fail to set vconf");
+ if(vconf_set_str(WIRELESS_GATEWAY_KEY, "0.0.0.0")) _DBG("Fail to set vconf");
+ if(vconf_set_str(WIRELESS_IP_LAST_MODE, "Obtain automatically")) _DBG("Fail to set vconf");
+ if(vconf_set_str(WIRELESS_DNS_LAST_MODE, "Obtain automatically")) _DBG("Fail to set vconf");
+ if(vconf_set_str(WIRELESS_IP_KEY, "0.0.0.0")) _DBG("Fail to set vconf");
+ if(vconf_set_str(WIRELESS_SUBMASK_KEY, "0.0.0.0")) _DBG("Fail to set vconf");
+
+ /* Time */
+ if(vconf_set_int(KEY_SYSTEM_CLOCK_MODE, 0)) _DBG("Fail to set vconf");
+ if(vconf_set_int(KEY_SLEEPTIMER, 0)) _DBG("Fail to set vconf");
+ if(vconf_set_int(KEY_SLEEPTIMER_TIMERID, 0)) _DBG("Fail to set vconf");
+ if(vconf_set_str(KEY_WAKEUP_TIMER_SETUP, "OFF")) _DBG("Fail to set vconf");
+
+ if(vconf_set_int(VCONF_KEY_24HOUR_MODE, 0)) _DBG("Fail to set vconf");
+ if(vconf_set_str(KEY_CHANGE_PASSCODE, "0000")) _DBG("Fail to set vconf");
+ if(vconf_set_int(KEY_SUBTITLE_LANGUAGE, 0)) _DBG("Fail to set vconf");
+
+ /* Broadcasting */
+ if(vconf_set_bool(KEY_CHANNEL_LOCK, false)) _DBG("Fail to set vconf");
+
+ /* Lang and Region */
+ if(vconf_set_str(KEY_SYSTEM_LANGUAGE, "en_US.UTF-8")) _DBG("Fail to set vconf");
+ if(vconf_set_str(KEY_SYSTEM_COUNTRY, "en_US.UTF-8")) _DBG("Fail to set vconf");
+
return true;
}