From: Andrzej Popowski Date: Mon, 2 Feb 2015 12:55:02 +0000 (+0100) Subject: [SystemInfo] - Resolving problem with the datacontrol capability X-Git-Tag: submit/tizen_tv/20150603.064601~1^2~503 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25c7e0111d761358f822313ec887ffd46202aaa5;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [SystemInfo] - Resolving problem with the datacontrol capability Change-Id: Ib00fb3cc57780232e3a9aaa61d48d674b93c2392 Signed-off-by: Andrzej Popowski --- diff --git a/src/systeminfo/systeminfo-utils.cpp b/src/systeminfo/systeminfo-utils.cpp index 03414c51..88cbf8c0 100644 --- a/src/systeminfo/systeminfo-utils.cpp +++ b/src/systeminfo/systeminfo-utils.cpp @@ -191,6 +191,7 @@ const char* kTizenFeatureBookmark = "http://tizen.org/feature/bookmark"; const char* kTizenFeatureCalendar = "http://tizen.org/feature/calendar"; const char* kTizenFeatureContact = "http://tizen.org/feature/contact"; const char* kTizenFeatureContent = "http://tizen.org/feature/content"; +const char* kTizenFeatureDatacontrol = "http://tizen.org/feature/datacontrol"; const char* kTizenFeatureDatasync = "http://tizen.org/feature/datasync"; const char* kTizenFeatureDownload = "http://tizen.org/feature/download"; const char* kTizenFeatureExif = "http://tizen.org/feature/exif"; @@ -2522,6 +2523,9 @@ static bool CheckBoolCapability(const std::string& key, bool* bool_value) } else if(key == kTizenFeatureContent) { *bool_value = SystemInfoDeviceCapability::IsContent(); fetched = true; + } else if(key == kTizenFeatureDatacontrol) { + *bool_value = SystemInfoDeviceCapability::IsDataControl(); + fetched = true; } else if(key == kTizenFeatureDatasync) { *bool_value = SystemInfoDeviceCapability::IsDataSync(); fetched = true; @@ -3458,6 +3462,15 @@ bool SystemInfoDeviceCapability::IsContent() #endif } +bool SystemInfoDeviceCapability::IsDataControl() +{ +#ifdef FEATURE_OPTIONAL_DATACONTROL + return true; +#else + return false; +#endif +} + bool SystemInfoDeviceCapability::IsDataSync() { #ifdef FEATURE_OPTIONAL_DATASYNC diff --git a/src/systeminfo/systeminfo-utils.h b/src/systeminfo/systeminfo-utils.h index a247c6f3..cf6ab649 100644 --- a/src/systeminfo/systeminfo-utils.h +++ b/src/systeminfo/systeminfo-utils.h @@ -167,6 +167,7 @@ public: static bool IsCalendar(); static bool IsContact(); static bool IsContent(); + static bool IsDataControl(); static bool IsDataSync(); static bool IsDownload(); static bool IsExif();