Replace "GlobalDAO::GetDeviceCapability" to "FeatureDAO::GetDeviceCapability"
authorJihoon Chung <jihoon.chung@samsaung.com>
Mon, 21 Oct 2013 12:19:13 +0000 (21:19 +0900)
committerSoo-Hyun Choi <sh9.choi@samsung.com>
Fri, 25 Oct 2013 02:56:21 +0000 (11:56 +0900)
[Issue#]   LINUXWRT-1020
[Problem]  GlobalDAO has unnecessary API.
           As GlobalDAO is deprecated, all use cases should be cleaned-up.
[Cause]    N/A
[Solution] Replace "GlobalDAO::GetDeviceCapability" to "FeatureDAO::GetDeviceCapability"

[Verification] Build repos.
[SCMRequest] N/A

Change-Id: I27ac401457741faa7c2c84d741a285255af6af8f

src/misc/feature_logic.cpp
src/misc/feature_logic.h

index ef0b495..818b0cd 100644 (file)
@@ -23,7 +23,7 @@
 #include <dpl/string.h>
 #include <dpl/foreach.h>
 #include <dpl/wrt-dao-ro/widget_dao_read_only.h>
-#include <dpl/wrt-dao-ro/global_dao_read_only.h>
+#include <dpl/wrt-dao-ro/feature_dao_read_only.h>
 #include <installer_log.h>
 
 namespace Jobs {
@@ -48,7 +48,7 @@ FeatureLogic::FeatureLogic(const WrtDB::TizenAppId & tzAppid) :
             dcs.insert(DEVICE_CAPABILITY_TESTAUTOMATION);
         } else {
             // normal privilege
-            dcs = WrtDB::GlobalDAOReadOnly::GetDeviceCapability(it->name);
+            dcs = WrtDB::FeatureDAOReadOnly::GetDeviceCapability(it->name);
         }
         FOREACH(devCap, dcs) {
             _D("--- dev cap  : %ls", (*devCap).c_str());
index 8c4458f..d407cb0 100644 (file)
@@ -24,7 +24,7 @@
 #include <dpl/noncopyable.h>
 #include <memory>
 
-#include <dpl/wrt-dao-ro/global_dao_read_only.h>
+#include <dpl/wrt-dao-ro/feature_dao_read_only.h>
 #include <wrt_common_types.h>
 
 namespace Jobs {