summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShobhit Adlakha <adlakhashobhit@gmail.com>2019-07-25 10:29:41 -0400
committerShobhit Adlakha <adlakhashobhit@gmail.com>2019-07-25 10:29:41 -0400
commit5d71ad259406f60556de27ea7be6b7599ac3ebcd (patch)
tree460d3e8ddd45f19e93bf3a2048fb09f571957762
parent14e133b46184a9f4bfd2a36fcbf5ac074c149d0f (diff)
downloadsdl_core-feature/open_menu_rpc.tar.gz
Add ShowAppMenu to policy table enumsfeature/open_menu_rpc
-rw-r--r--src/components/policy/policy_external/include/policy/policy_table/enums.h5
-rw-r--r--src/components/policy/policy_external/src/policy_table/enums.cc5
-rw-r--r--src/components/policy/policy_regular/include/policy/policy_table/enums.h5
-rw-r--r--src/components/policy/policy_regular/src/policy_table/enums.cc9
4 files changed, 24 insertions, 0 deletions
diff --git a/src/components/policy/policy_external/include/policy/policy_table/enums.h b/src/components/policy/policy_external/include/policy/policy_table/enums.h
index 6733bcb98d..501ee03ada 100644
--- a/src/components/policy/policy_external/include/policy/policy_table/enums.h
+++ b/src/components/policy/policy_external/include/policy/policy_table/enums.h
@@ -477,6 +477,11 @@ enum FunctionID {
CloseApplicationID = 58,
/**
+ * @brief ShowAppMenuID.
+ */
+ ShowAppMenuID = 59,
+
+ /**
* @brief OnHMIStatusID.
*/
OnHMIStatusID = 32768,
diff --git a/src/components/policy/policy_external/src/policy_table/enums.cc b/src/components/policy/policy_external/src/policy_table/enums.cc
index 5494b8a881..772621adb7 100644
--- a/src/components/policy/policy_external/src/policy_table/enums.cc
+++ b/src/components/policy/policy_external/src/policy_table/enums.cc
@@ -1164,6 +1164,11 @@ bool EnumFromJsonString(const std::string& literal, FunctionID* result) {
return true;
}
+ if ("ShowAppMenu" == literal) {
+ *result = ShowAppMenuID;
+ return true;
+ }
+
if ("OnHMIStatus" == literal) {
*result = OnHMIStatusID;
return true;
diff --git a/src/components/policy/policy_regular/include/policy/policy_table/enums.h b/src/components/policy/policy_regular/include/policy/policy_table/enums.h
index c7d9bc793b..ebb57f23c4 100644
--- a/src/components/policy/policy_regular/include/policy/policy_table/enums.h
+++ b/src/components/policy/policy_regular/include/policy/policy_table/enums.h
@@ -462,6 +462,11 @@ enum FunctionID {
CloseApplicationID = 58,
/**
+ * @brief ShowAppMenuID.
+ */
+ ShowAppMenuID = 59,
+
+ /**
* @brief OnHMIStatusID.
*/
OnHMIStatusID = 32768,
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 39957e49ea..f35c5c7279 100644
--- a/src/components/policy/policy_regular/src/policy_table/enums.cc
+++ b/src/components/policy/policy_regular/src/policy_table/enums.cc
@@ -861,6 +861,8 @@ bool IsValidEnum(FunctionID val) {
return true;
case CloseApplicationID:
return true;
+ case ShowAppMenuID:
+ return true;
case OnHMIStatusID:
return true;
case OnAppInterfaceUnregisteredID:
@@ -1026,6 +1028,8 @@ const char* EnumToJsonString(FunctionID val) {
return "PerformAppServiceInteraction";
case CloseApplicationID:
return "CloseApplication";
+ case ShowAppMenuID:
+ return "ShowAppMenu";
case OnHMIStatusID:
return "OnHMIStatus";
case OnAppInterfaceUnregisteredID:
@@ -1355,6 +1359,11 @@ bool EnumFromJsonString(const std::string& literal, FunctionID* result) {
return true;
}
+ if ("ShowAppMenu" == literal) {
+ *result = ShowAppMenuID;
+ return true;
+ }
+
if ("OnHMIStatus" == literal) {
*result = OnHMIStatusID;
return true;