Replace namespace ctx::shared with class ctx::SharedVars 90/59790/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Thu, 18 Feb 2016 12:14:47 +0000 (21:14 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Thu, 18 Feb 2016 12:14:47 +0000 (21:14 +0900)
Change-Id: I2ec7511ddaa05eea4ff0a885a8a069d6701f2c7e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/device/system/wifi.cpp
src/statistics/shared/system_info.cpp

index fde2d8cc171d3f03f05874625ba91df740c3d996..3680768eba56c4d7d67e611db99999d7e70eca3c 100644 (file)
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-#include <shared_vars.h>
+#include <SharedVars.h>
 #include <context_mgr.h>
 #include "system_types.h"
 #include "wifi.h"
@@ -122,7 +122,7 @@ bool ctx::device_status_wifi::get_bssid()
        if (bssid.empty())
                _W("Failed to get BSSID");
 
-       ctx::shared::wifi_bssid = bssid;
+       SharedVars().set(ctx::SharedVars::WIFI_BSSID, bssid);
        _D("BSSID: %s", bssid.c_str());
 
        return !bssid.empty();
@@ -131,7 +131,7 @@ bool ctx::device_status_wifi::get_bssid()
 void ctx::device_status_wifi::clear_bssid()
 {
        bssid.clear();
-       ctx::shared::wifi_bssid.clear();
+       SharedVars().clear(ctx::SharedVars::WIFI_BSSID);
        _D("No WiFi connection");
 }
 
index 548e328e7f28c7b85d2657cbdb825a134d13e8d2..3437d69a0e59cacbbd82c217b39fb9ef8bd37ece 100644 (file)
@@ -18,7 +18,7 @@
 #include <runtime_info.h>
 #include <sound_manager.h>
 #include <types_internal.h>
-#include <shared_vars.h>
+#include <SharedVars.h>
 #include "system_info.h"
 
 #define CONNECTED              1
@@ -75,6 +75,6 @@ bool ctx::system_info::get_wifi_bssid(std::string& bssid)
 
        return !bssid.empty();
 #endif
-       bssid = ctx::shared::wifi_bssid;
+       bssid = ctx::SharedVars().get(ctx::SharedVars::WIFI_BSSID);
        return true;
 }