summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_regular/src/policy_table/enums.cc
diff options
context:
space:
mode:
authorfronneburg <fronneburg@xevo.com>2018-07-05 10:12:28 -0700
committerfronneburg <fronneburg@xevo.com>2018-07-05 10:12:28 -0700
commitbf5c81d55c8bbb839680d0eab29d892a82330341 (patch)
treee952d6d173599306614efd15962491c97f34d171 /src/components/policy/policy_regular/src/policy_table/enums.cc
parentd4159c1768e28dccdd6027a714de59f93e06c8b2 (diff)
parentba1da7bc2ff3fd37638620f6bea526384646ab0e (diff)
downloadsdl_core-bf5c81d55c8bbb839680d0eab29d892a82330341.tar.gz
Merge branch 'develop' of https://github.com/smartdevicelink/sdl_core into feat/mt_transport_changes
Conflicts: src/components/application_manager/src/application_manager_impl.cc src/components/application_manager/test/application_manager_impl_test.cc src/components/remote_control/test/include/mock_application.h
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, 7 insertions, 2 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 1dae9c5f96..e05ed8f064 100644
--- a/src/components/policy/policy_regular/src/policy_table/enums.cc
+++ b/src/components/policy/policy_regular/src/policy_table/enums.cc
@@ -119,6 +119,8 @@ bool IsValidEnum(Parameter val) {
return true;
case P_EXTERNALTEMPERATURE:
return true;
+ case P_TURNSIGNAL:
+ return true;
case P_FUELLEVEL:
return true;
case P_FUELLEVEL_STATE:
@@ -181,6 +183,8 @@ const char* EnumToJsonString(Parameter val) {
return "engineTorque";
case P_EXTERNALTEMPERATURE:
return "externalTemperature";
+ case P_TURNSIGNAL:
+ return "turnSignal";
case P_FUELLEVEL:
return "fuelLevel";
case P_FUELLEVEL_STATE:
@@ -247,6 +251,9 @@ bool EnumFromJsonString(const std::string& literal, Parameter* result) {
} else if ("externalTemperature" == literal) {
*result = P_EXTERNALTEMPERATURE;
return true;
+ } else if ("turnSignal" == literal) {
+ *result = P_TURNSIGNAL;
+ return true;
} else if ("fuelLevel" == literal) {
*result = P_FUELLEVEL;
return true;
@@ -621,7 +628,6 @@ bool EnumFromJsonString(const std::string& literal, RequestType* result) {
}
}
-#ifdef SDL_REMOTE_CONTROL
bool IsValidEnum(ModuleType val) {
switch (val) {
case MT_CLIMATE:
@@ -654,7 +660,6 @@ bool EnumFromJsonString(const std::string& literal, ModuleType* result) {
return false;
}
}
-#endif // SDL_REMOTE_CONTROL
const std::string kDefaultApp = "default";
const std::string kPreDataConsentApp = "pre_DataConsent";