summaryrefslogtreecommitdiff
path: root/src/components/application_manager/include/application_manager/commands
diff options
context:
space:
mode:
authorAndrey Oleynik (GitHub) <aoleynik@luxoft.com>2017-09-21 17:40:49 +0300
committerAndriy Byzhynar <AByzhynar@luxoft.com>2018-01-18 11:28:38 +0200
commit8fa4f3b498916b89552394d25f9482ce4b06de5a (patch)
tree3661ecaf592fa16571f32d32917426b6b49047a8 /src/components/application_manager/include/application_manager/commands
parenta4af51700fe245aff66250c93f78741dc96584cb (diff)
downloadsdl_core-8fa4f3b498916b89552394d25f9482ce4b06de5a.tar.gz
Adds descriptions, removes unused code
Diffstat (limited to 'src/components/application_manager/include/application_manager/commands')
-rw-r--r--src/components/application_manager/include/application_manager/commands/command_impl.h12
-rw-r--r--src/components/application_manager/include/application_manager/commands/mobile/register_app_interface_request.h11
2 files changed, 13 insertions, 10 deletions
diff --git a/src/components/application_manager/include/application_manager/commands/command_impl.h b/src/components/application_manager/include/application_manager/commands/command_impl.h
index 7cab97d423..32e50fe4f1 100644
--- a/src/components/application_manager/include/application_manager/commands/command_impl.h
+++ b/src/components/application_manager/include/application_manager/commands/command_impl.h
@@ -142,16 +142,16 @@ class CommandImpl : public Command {
protected:
/**
- * @brief Parse smartObject and replace mobile app Id by HMI app ID
- *
- * @param message Smartobject to be parsed
+ * @brief Parses mobile message and replaces mobile app id with HMI app id
+ * @param message Message to replace its ids
+ * @return True if replacement succeeded, otherwise - false
*/
bool ReplaceMobileByHMIAppId(smart_objects::SmartObject& message);
/**
- * @brief Parse smartObject and replace HMI app ID by mobile app Id
- *
- * @param message Smartobject to be parsed
+ * @brief Parses message from HMI and replaces HMI app id with mobile app id
+ * @param message Message to replace its ids
+ * @return True if replacement succeeded, otherwise - false
*/
bool ReplaceHMIByMobileAppId(smart_objects::SmartObject& message);
diff --git a/src/components/application_manager/include/application_manager/commands/mobile/register_app_interface_request.h b/src/components/application_manager/include/application_manager/commands/mobile/register_app_interface_request.h
index 369fd68868..938981f382 100644
--- a/src/components/application_manager/include/application_manager/commands/mobile/register_app_interface_request.h
+++ b/src/components/application_manager/include/application_manager/commands/mobile/register_app_interface_request.h
@@ -78,13 +78,16 @@ class RegisterAppInterfaceRequest : public CommandRequestImpl {
virtual void Run();
private:
+ /**
+ * @brief The AppicationType enum defines whether application is newly
+ * registered or existing and being switched over another transport
+ */
enum class AppicationType { kNewApplication, kSwitchedApplication };
/**
- * @brief Sends RegisterAppInterface response to mobile
- *
- *@param application_impl application
- *
+ * @brief Prepares and sends RegisterAppInterface response to mobile
+ * considering application type
+ * @param app_type Type of application
**/
void SendRegisterAppInterfaceResponseToMobile(AppicationType app_type);