Add deprecated mark to "GetDeviceCapability"
authorJihoon Chung <jihoon.chung@samsaung.com>
Mon, 21 Oct 2013 08:02:41 +0000 (17:02 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Tue, 22 Oct 2013 06:46:07 +0000 (06:46 +0000)
[Issue#]     LINUXWRT-1020
[Problem]    GlobalDAO has unnecessary API.
[Cause]      N/A
[Solution]   Add deprecated mark to "GetDeviceCapability"
             - FeatureDAOReadOnly::GetDeviceCapability should be used instead of
               GlobalDAOReadOnly::GetDeviceCapability. As GlobalDAOReadyonly
               also doesn't export any APIs, add deprecated mark to construct.

[Verification] Build repos.
[SCMRequest] Depends on https://review.tizendev.org/gerrit/#/c/93615/

Change-Id: I95de4eb2fa1478ea207d9d9089b5c92d8979ff83

modules/widget_dao/include/dpl/wrt-dao-ro/global_dao_read_only.h

index d60a8a8..6430b63 100644 (file)
@@ -72,10 +72,10 @@ class GlobalDAOReadOnly
      * This method returns set of device capabilities used by apifeature.
      */
     static DeviceCapabilitySet GetDeviceCapability(
-        const DPL::String &apifeature);
+        const DPL::String &apifeature) DPL_DEPRECATED_WITH_MESSAGE("Use FeatureDAOReadOnly::GetDeviceCapability");
 
   protected:
-    GlobalDAOReadOnly()
+    DPL_DEPRECATED GlobalDAOReadOnly()
     {}
 };
 } // namespace WrtDB