diff options
author | jacobkeeler <jacob.keeler@livioradio.com> | 2018-11-05 17:56:55 -0500 |
---|---|---|
committer | jacobkeeler <jacob.keeler@livioradio.com> | 2018-11-05 17:56:55 -0500 |
commit | 32b6a07f53e87bc71466656155e8896eb747b277 (patch) | |
tree | c86e884201176dc4bdc31c44d58405d1704bf915 /src/components/application_manager/include | |
parent | 9018590ff13671993ea10479cc4d9fe2fbbe7d9a (diff) | |
download | sdl_core-32b6a07f53e87bc71466656155e8896eb747b277.tar.gz |
Fix style, add certificate, and add GetEnabledCloudApps
Diffstat (limited to 'src/components/application_manager/include')
-rw-r--r-- | src/components/application_manager/include/application_manager/policies/policy_handler.h | 44 |
1 files changed, 35 insertions, 9 deletions
diff --git a/src/components/application_manager/include/application_manager/policies/policy_handler.h b/src/components/application_manager/include/application_manager/policies/policy_handler.h index 3af03bf28b..648e856456 100644 --- a/src/components/application_manager/include/application_manager/policies/policy_handler.h +++ b/src/components/application_manager/include/application_manager/policies/policy_handler.h @@ -399,6 +399,13 @@ class PolicyHandler : public PolicyHandlerInterface, const std::string& policy_app_id) OVERRIDE; /** + * @brief Get a list of enabled cloud applications + * @param enabled_apps List filled with the policy app id of each enabled cloud + * application + */ + void GetEnabledCloudApps(std::vector<std::string>& enabled_apps) const OVERRIDE; + + /** * @brief Checks if a given application is an enabled cloud application * @param policy_app_id Unique application id * @return true, if the application is an enabled cloud application, @@ -407,17 +414,36 @@ class PolicyHandler : public PolicyHandlerInterface, const bool CheckCloudAppEnabled( const std::string& policy_app_id) const OVERRIDE; - /**plzfix - * @brief Checks if certain request type is allowed for application + /** + * @brief Get cloud app policy information, all fields that aren't set for a + * given app will be filled with empty strings * @param policy_app_id Unique application id - * @return true, if allowed, otherwise - false - */ - const bool GetCloudAppParameters(const std::string& policy_app_id, - std::string& endpoint, - std::string& auth_token, - std::string& cloud_transport_type, - std::string& hybrid_app_preference) const OVERRIDE; + * @param endpoint Filled with the endpoint used to connect to the cloud + * application + * @param certificate Filled with the certificate used to for creating a + * secure + * connection to the cloud application + * @param auth_token Filled with the token used for authentication when + * reconnecting to the cloud app + * @param cloud_transport_type Filled with the transport type used by the + * cloud application (ex. "WSS") + * @param cloud_transport_type Filled with the hybrid app preference for the + * cloud application set by the user + * @return true if the cloud app is enabled, false otherwise + */ + const bool GetCloudAppParameters( + const std::string& policy_app_id, + std::string& endpoint, + std::string& certificate, + std::string& auth_token, + std::string& cloud_transport_type, + std::string& hybrid_app_preference) const OVERRIDE; + /** + * @brief Callback for when a SetCloudAppProperties message is received from a + * mobile app + * @param message The SetCloudAppProperties message + */ void OnSetCloudAppProperties( const smart_objects::SmartObject& message) OVERRIDE; |