summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Byrne <jack@livio.io>2015-04-29 12:42:39 -0700
committerJack Byrne <jack@livio.io>2015-04-29 12:42:39 -0700
commitc03fef3fb791a9e62409769dc954e78daa4a538d (patch)
treeaa0777086efaa4300da73683f590fcf7b00a722e
parent72f16d5cab421409eeb9b0f4aeb10cd2b8039e99 (diff)
downloadsmartdevicelink-c03fef3fb791a9e62409769dc954e78daa4a538d.tar.gz
Added include for mobile command fact
-rw-r--r--src/components/application_manager/src/mobile_command_factory.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/application_manager/src/mobile_command_factory.cc b/src/components/application_manager/src/mobile_command_factory.cc
index 5e354c2fe..5a6273794 100644
--- a/src/components/application_manager/src/mobile_command_factory.cc
+++ b/src/components/application_manager/src/mobile_command_factory.cc
@@ -127,6 +127,8 @@
#include "application_manager/commands/mobile/send_location_response.h"
#include "application_manager/commands/mobile/dial_number_request.h"
#include "application_manager/commands/mobile/dial_number_response.h"
+#include "application_manager/commands/mobile/button_press_request.h"
+#include "application_manager/commands/mobile/button_press_response.h"
#include "interfaces/MOBILE_API.h"
namespace application_manager {
@@ -489,6 +491,15 @@ commands::Command *MobileCommandFactory::CreateCommand(
}
break;
}
+ case mobile_apis::FunctionID::ButtonPressID: {
+ if ((*message)[strings::params][strings::message_type]
+ == static_cast<int>(application_manager::MessageType::kResponse)) {
+ return new commands::ButtonPressResponse(message);
+ } else {
+ return new commands::ButtonPressRequest(message);
+ }
+ break;
+ }
case mobile_apis::FunctionID::OnButtonEventID: {
return new commands::mobile::OnButtonEventNotification(message);
break;