diff options
author | Shobhit Adlakha <ShobhitAd@users.noreply.github.com> | 2019-07-31 10:56:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-31 10:56:55 -0400 |
commit | b7a3f9c0e528d533909c1ef92f0b477c98d3cf07 (patch) | |
tree | 63a14e99cc7248a0ecaee746feaca2d1fd62c4c8 /src/components/policy | |
parent | 7babc4b6218d71fbaa15bd15ccbee2ab15e2b69e (diff) | |
parent | 5d71ad259406f60556de27ea7be6b7599ac3ebcd (diff) | |
download | sdl_core-b7a3f9c0e528d533909c1ef92f0b477c98d3cf07.tar.gz |
Merge pull request #2967 from smartdevicelink/feature/open_menu_rpc
ShowAppMenu RPC
Diffstat (limited to 'src/components/policy')
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 ad16d6e59d..5a21539b17 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 @@ -482,6 +482,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 6dc4d53aa1..4c95f62eca 100644 --- a/src/components/policy/policy_external/src/policy_table/enums.cc +++ b/src/components/policy/policy_external/src/policy_table/enums.cc @@ -1169,6 +1169,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 ad1d05f59b..ecb44943aa 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 @@ -467,6 +467,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 8fc5b0b369..50746b31a0 100644 --- a/src/components/policy/policy_regular/src/policy_table/enums.cc +++ b/src/components/policy/policy_regular/src/policy_table/enums.cc @@ -863,6 +863,8 @@ bool IsValidEnum(FunctionID val) { return true; case CloseApplicationID: return true; + case ShowAppMenuID: + return true; case OnHMIStatusID: return true; case OnAppInterfaceUnregisteredID: @@ -1030,6 +1032,8 @@ const char* EnumToJsonString(FunctionID val) { return "UnpublishAppService"; case CloseApplicationID: return "CloseApplication"; + case ShowAppMenuID: + return "ShowAppMenu"; case OnHMIStatusID: return "OnHMIStatus"; case OnAppInterfaceUnregisteredID: @@ -1364,6 +1368,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; |