From: Pawel Kaczmarek
Date: Mon, 25 May 2015 09:53:23 +0000 (+0200)
Subject: [Build] Tizen 3.0 mobile, Systemsetting and Download enabled
X-Git-Tag: submit/tizen_tv/20150603.064601^2~71
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d368b83b6091541e1984f47172658e3d539e4a5c;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git
[Build] Tizen 3.0 mobile, Systemsetting and Download enabled
[Info]
Messageport - not enabled
Reason: nothing provides pkgconfig(capi-message-port)
Change-Id: Ic987b45e046bddbf0f7fc665f9812032eafaa7bd
Signed-off-by: Pawel Kaczmarek
---
diff --git a/packaging/webapi-plugins.spec b/packaging/webapi-plugins.spec
index 84250d21..9b92893b 100755
--- a/packaging/webapi-plugins.spec
+++ b/packaging/webapi-plugins.spec
@@ -39,7 +39,7 @@ Source0: %{name}-%{version}.tar.gz
%define tizen_feature_content_support 1
%define tizen_feature_datacontrol_support 1
%define tizen_feature_datasync_support 0
-%define tizen_feature_download_support 0
+%define tizen_feature_download_support 1
%define tizen_feature_exif_support 1
%define tizen_feature_filesystem_support 1
%ifarch %{arm}
@@ -92,7 +92,7 @@ Source0: %{name}-%{version}.tar.gz
%define tizen_feature_sensor_support 1
%define tizen_feature_sound_support 1
%define tizen_feature_system_info_support 1
-%define tizen_feature_system_setting_support 0
+%define tizen_feature_system_setting_support 1
%ifarch %{arm}
# ARM
%define tizen_feature_telephony_support 1
diff --git a/src/download/download_instance.cc b/src/download/download_instance.cc
index 14d7d74f..3c04b20a 100644
--- a/src/download/download_instance.cc
+++ b/src/download/download_instance.cc
@@ -269,9 +269,10 @@ gboolean DownloadInstance::OnFailed(void* user_data) {
"The application does not have the privilege to call this method."),
out);
break;
- case DOWNLOAD_ERROR_NOT_SUPPORTED:
- instance->ReportError(NotSupportedException("Not supported"), out);
- break;
+ // TODO(p.kaczmarek3) temporarily removed - not supported by platform
+ //case DOWNLOAD_ERROR_NOT_SUPPORTED:
+ // instance->ReportError(NotSupportedException("Not supported"), out);
+ // break;
case DOWNLOAD_ERROR_INVALID_STATE:
instance->ReportError(InvalidStateException("Invalid state"), out);
break;
@@ -333,10 +334,11 @@ gboolean DownloadInstance::OnFailed(void* user_data) {
instance->ReportError(NotFoundException(
"Download ID does not exist in download service module"), out);
break;
- case DOWNLOAD_ERROR_INVALID_NETWORK_TYPE:
- instance->ReportError(InvalidValuesException(
- "Network bonding is set but network type is not set as ALL"), out);
- break;
+ // TODO(p.kaczmarek3) temporarily removed - not supported by platform
+ //case DOWNLOAD_ERROR_INVALID_NETWORK_TYPE:
+ // instance->ReportError(InvalidValuesException(
+ // "Network bonding is set but network type is not set as ALL"), out);
+ // break;
case DOWNLOAD_ERROR_NO_DATA:
instance->ReportError(NotFoundException(
"No data because the set API is not called"), out);
diff --git a/src/systemsetting/systemsetting_instance.cc b/src/systemsetting/systemsetting_instance.cc
index 8dc72733..141e8cbb 100644
--- a/src/systemsetting/systemsetting_instance.cc
+++ b/src/systemsetting/systemsetting_instance.cc
@@ -104,10 +104,11 @@ PlatformResult SystemSettingInstance::getPlatformPropertyValue(
result_obj.insert(std::make_pair("value", picojson::value(value)));
free(value);
return PlatformResult(ErrorCode::NO_ERROR);
- case SYSTEM_SETTINGS_ERROR_CALL_UNSUPPORTED_API:
- LoggerD("ret == SYSTEM_SETTINGS_ERROR_CALL_UNSUPPORTED_API");
- return PlatformResult(ErrorCode::NOT_SUPPORTED_ERR,
- "This property is not supported.");
+ // TODO(p.kaczmarek3) temporarily removed - not supported by platform
+ //case SYSTEM_SETTINGS_ERROR_CALL_UNSUPPORTED_API:
+ // LoggerD("ret == SYSTEM_SETTINGS_ERROR_CALL_UNSUPPORTED_API");
+ // return PlatformResult(ErrorCode::NOT_SUPPORTED_ERR,
+ // "This property is not supported.");
default:
LoggerD("Other error");
return PlatformResult(ErrorCode::UNKNOWN_ERR);
@@ -172,10 +173,11 @@ PlatformResult SystemSettingInstance::setPlatformPropertyValue(
case SYSTEM_SETTINGS_ERROR_NONE:
LoggerD("ret == SYSTEM_SETTINGS_ERROR_NONE");
return PlatformResult(ErrorCode::NO_ERROR);
- case SYSTEM_SETTINGS_ERROR_CALL_UNSUPPORTED_API:
- LoggerD("ret == SYSTEM_SETTINGS_ERROR_CALL_UNSUPPORTED_API");
- return PlatformResult(ErrorCode::NOT_SUPPORTED_ERR,
- "This property is not supported.");
+ // TODO(p.kaczmarek3) temporarily removed - not supported by platform
+ //case SYSTEM_SETTINGS_ERROR_CALL_UNSUPPORTED_API:
+ // LoggerD("ret == SYSTEM_SETTINGS_ERROR_CALL_UNSUPPORTED_API");
+ // return PlatformResult(ErrorCode::NOT_SUPPORTED_ERR,
+ // "This property is not supported.");
default:
LoggerD("Other error");
return PlatformResult(ErrorCode::UNKNOWN_ERR);