summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/commands/hmi
diff options
context:
space:
mode:
authorAndriy Byzhynar <AByzhynar@luxoft.com>2018-01-12 15:14:55 +0200
committerAndriy Byzhynar <AByzhynar@luxoft.com>2018-01-18 12:03:51 +0200
commita56108fabda2fed248778cdb9778c8cd3162b762 (patch)
tree8576b6e3b1dd8197b6db4cdce158c4811c7fba50 /src/components/application_manager/src/commands/hmi
parent45f978f112d46fe81ec54d47ae54eb1bf48444cc (diff)
downloadsdl_core-a56108fabda2fed248778cdb9778c8cd3162b762.tar.gz
Add wrappers for deprecated methods
Added wrappers for some deprecated methods Grouped iface checks in SendRegisterAppInterfaceResponseToMobile Removed duplicated "if" statement Improved readability
Diffstat (limited to 'src/components/application_manager/src/commands/hmi')
-rw-r--r--src/components/application_manager/src/commands/hmi/notification_from_hmi.cc2
-rw-r--r--src/components/application_manager/src/commands/hmi/notification_to_hmi.cc7
-rw-r--r--src/components/application_manager/src/commands/hmi/request_from_hmi.cc2
-rw-r--r--src/components/application_manager/src/commands/hmi/request_to_hmi.cc7
-rw-r--r--src/components/application_manager/src/commands/hmi/response_from_hmi.cc2
-rw-r--r--src/components/application_manager/src/commands/hmi/response_to_hmi.cc7
6 files changed, 18 insertions, 9 deletions
diff --git a/src/components/application_manager/src/commands/hmi/notification_from_hmi.cc b/src/components/application_manager/src/commands/hmi/notification_from_hmi.cc
index 3c2d73b10c..64eb63fde8 100644
--- a/src/components/application_manager/src/commands/hmi/notification_from_hmi.cc
+++ b/src/components/application_manager/src/commands/hmi/notification_from_hmi.cc
@@ -42,7 +42,7 @@ NotificationFromHMI::NotificationFromHMI(
const MessageSharedPtr& message, ApplicationManager& application_manager)
: CommandImpl(message, application_manager) {
// Replace HMI app id with Mobile connection id
- ReplaceHMIWithMobileAppId(*message);
+ ReplaceHMIByMobileAppId(*message);
}
NotificationFromHMI::~NotificationFromHMI() {}
diff --git a/src/components/application_manager/src/commands/hmi/notification_to_hmi.cc b/src/components/application_manager/src/commands/hmi/notification_to_hmi.cc
index b6639c9aea..c136f7b770 100644
--- a/src/components/application_manager/src/commands/hmi/notification_to_hmi.cc
+++ b/src/components/application_manager/src/commands/hmi/notification_to_hmi.cc
@@ -39,12 +39,15 @@ namespace commands {
NotificationToHMI::NotificationToHMI(const MessageSharedPtr& message,
ApplicationManager& application_manager)
- : CommandImpl(message, application_manager) {}
+ : CommandImpl(message, application_manager) {
+ // Replace Mobile connection id with HMI app id
+ ReplaceMobileByHMIAppId(*message_);
+}
NotificationToHMI::~NotificationToHMI() {}
bool NotificationToHMI::Init() {
- return ReplaceMobileWithHMIAppId(*message_);
+ return true;
}
bool NotificationToHMI::CleanUp() {
diff --git a/src/components/application_manager/src/commands/hmi/request_from_hmi.cc b/src/components/application_manager/src/commands/hmi/request_from_hmi.cc
index c91423e369..a203110ce4 100644
--- a/src/components/application_manager/src/commands/hmi/request_from_hmi.cc
+++ b/src/components/application_manager/src/commands/hmi/request_from_hmi.cc
@@ -43,7 +43,7 @@ RequestFromHMI::RequestFromHMI(const MessageSharedPtr& message,
: CommandImpl(message, application_manager)
, EventObserver(application_manager.event_dispatcher()) {
// Replace HMI app id with Mobile connection id
- ReplaceHMIWithMobileAppId(*(message.get()));
+ ReplaceHMIByMobileAppId(*message);
}
RequestFromHMI::~RequestFromHMI() {}
diff --git a/src/components/application_manager/src/commands/hmi/request_to_hmi.cc b/src/components/application_manager/src/commands/hmi/request_to_hmi.cc
index cba36cbb0c..8079558545 100644
--- a/src/components/application_manager/src/commands/hmi/request_to_hmi.cc
+++ b/src/components/application_manager/src/commands/hmi/request_to_hmi.cc
@@ -61,12 +61,15 @@ bool ChangeInterfaceState(ApplicationManager& application_manager,
RequestToHMI::RequestToHMI(const MessageSharedPtr& message,
ApplicationManager& application_manager)
- : CommandImpl(message, application_manager) {}
+ : CommandImpl(message, application_manager) {
+ // Replace Mobile connection id with HMI app id
+ ReplaceMobileByHMIAppId(*message);
+}
RequestToHMI::~RequestToHMI() {}
bool RequestToHMI::Init() {
- return ReplaceMobileWithHMIAppId(*message_);
+ return true;
}
bool RequestToHMI::CleanUp() {
diff --git a/src/components/application_manager/src/commands/hmi/response_from_hmi.cc b/src/components/application_manager/src/commands/hmi/response_from_hmi.cc
index c5a6dd9d3e..5f5a9deca3 100644
--- a/src/components/application_manager/src/commands/hmi/response_from_hmi.cc
+++ b/src/components/application_manager/src/commands/hmi/response_from_hmi.cc
@@ -48,7 +48,7 @@ ResponseFromHMI::ResponseFromHMI(const MessageSharedPtr& message,
}
// Replace HMI app id with Mobile connection id
- ReplaceHMIWithMobileAppId(*(message.get()));
+ ReplaceHMIByMobileAppId(*message);
}
ResponseFromHMI::~ResponseFromHMI() {}
diff --git a/src/components/application_manager/src/commands/hmi/response_to_hmi.cc b/src/components/application_manager/src/commands/hmi/response_to_hmi.cc
index 94f6967e23..d70cc20e4c 100644
--- a/src/components/application_manager/src/commands/hmi/response_to_hmi.cc
+++ b/src/components/application_manager/src/commands/hmi/response_to_hmi.cc
@@ -39,12 +39,15 @@ namespace commands {
ResponseToHMI::ResponseToHMI(const MessageSharedPtr& message,
ApplicationManager& application_manager)
- : CommandImpl(message, application_manager) {}
+ : CommandImpl(message, application_manager) {
+ // Replace Mobile connection id with HMI app id
+ ReplaceMobileByHMIAppId(*message);
+}
ResponseToHMI::~ResponseToHMI() {}
bool ResponseToHMI::Init() {
- return ReplaceMobileWithHMIAppId(*message_);
+ return true;
}
bool ResponseToHMI::CleanUp() {