summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_regular/src/policy_table/enums.cc
diff options
context:
space:
mode:
authorShobhit Adlakha <ShobhitAd@users.noreply.github.com>2019-03-06 13:36:58 -0500
committerGitHub <noreply@github.com>2019-03-06 13:36:58 -0500
commit222ec0566594288744d73ef30174e714bd6f29ce (patch)
treed92070464b2cb41f989ddb32595ceedc06674cff /src/components/policy/policy_regular/src/policy_table/enums.cc
parent2e433d4810c1a9a4a78550b6caa0a27ff03259ef (diff)
downloadsdl_core-222ec0566594288744d73ef30174e714bd6f29ce.tar.gz
GetFile RPC (#2811)
* Implemented GetFile rpc in MOBILE API * Initial implementation of GetFile rpc * Implemented GetFile RPC * Fixed binary data param in GetFile response * Added case for handling SmartType UInteger in SmartObject::duplicate function * Implemented offset and length params * Implemented GetFile for services published by the HMI * Switched to events to handle forwarding GetFile request to HMI * Addressed review comments * Addressed review comments * Addressed review comments * Implemented length parameter * Changed RPC name from GetFileFromHMI to GetFilePath * Fix MOBILE_API formatting * Fix HMI_API formatting * Addressed review comments * Checking success rather than result code for hmi response
Diffstat (limited to 'src/components/policy/policy_regular/src/policy_table/enums.cc')
-rw-r--r--src/components/policy/policy_regular/src/policy_table/enums.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/policy/policy_regular/src/policy_table/enums.cc b/src/components/policy/policy_regular/src/policy_table/enums.cc
index 25f6d778fc..113ba8c527 100644
--- a/src/components/policy/policy_regular/src/policy_table/enums.cc
+++ b/src/components/policy/policy_regular/src/policy_table/enums.cc
@@ -851,6 +851,8 @@ bool IsValidEnum(FunctionID val) {
return true;
case PublishAppServiceID:
return true;
+ case GetFileID:
+ return true;
case GetAppServiceDataID:
return true;
case PerformAppServiceInteractionID:
@@ -1010,6 +1012,8 @@ const char* EnumToJsonString(FunctionID val) {
return "SetCloudAppProperties";
case PublishAppServiceID:
return "PublishAppService";
+ case GetFileID:
+ return "GetFile";
case GetAppServiceDataID:
return "GetAppServiceData";
case PerformAppServiceInteractionID:
@@ -1318,6 +1322,11 @@ bool EnumFromJsonString(const std::string& literal, FunctionID* result) {
return true;
}
+ if ("GetFile" == literal) {
+ *result = GetFileID;
+ return true;
+ }
+
if ("GetAppServiceData" == literal) {
*result = GetAppServiceDataID;
return true;