summaryrefslogtreecommitdiff
path: root/src/components/application_manager/include/application_manager/command_holder.h
diff options
context:
space:
mode:
authorAndrii Kalinich (GitHub) <AKalinich@luxoft.com>2019-09-25 16:04:50 -0400
committerShobhit Adlakha <ShobhitAd@users.noreply.github.com>2019-09-25 16:04:50 -0400
commitbe88a0b1eac802335d3142d3fe008dc05900deba (patch)
tree81deda7984a77ac2ae0d241ccfe82acd261ba3e8 /src/components/application_manager/include/application_manager/command_holder.h
parent45d63f4c9b2ba0c738118e73cd592b2444692d29 (diff)
downloadsdl_core-be88a0b1eac802335d3142d3fe008dc05900deba.tar.gz
Fix IAP device transport switching sequence (#3034)
* Add reregister wait list accessor and fix IsApplicationSwitched in RAI * Update CommandHolder class After introduction CommandSource enum there was possible to specify any different source for HMI and mobile commands. However, CommandHolder class logic was not updated to reflect these changes and still working with the hardcoded values. As a result commands factory of plugins may not able to create commands which were suspended during device transport switching and then restored back. This commit contains updated CommandHolder impl which reflects changes done and properly handles initial command source. * Fix affected UT * Fix style
Diffstat (limited to 'src/components/application_manager/include/application_manager/command_holder.h')
-rw-r--r--src/components/application_manager/include/application_manager/command_holder.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/application_manager/include/application_manager/command_holder.h b/src/components/application_manager/include/application_manager/command_holder.h
index 8cfe5f0889..3f5f657a0e 100644
--- a/src/components/application_manager/include/application_manager/command_holder.h
+++ b/src/components/application_manager/include/application_manager/command_holder.h
@@ -35,6 +35,7 @@
#include <string>
#include "application_manager/application.h"
+#include "application_manager/commands/command.h"
#include "smart_objects/smart_object.h"
namespace application_manager {
@@ -59,10 +60,12 @@ class CommandHolder {
* internally
* @param application Application pointer
* @param type Command type
+ * @param source The source of suspended command
* @param command Command
*/
virtual void Suspend(ApplicationSharedPtr application,
CommandType type,
+ commands::Command::CommandSource source,
smart_objects::SmartObjectSPtr command) = 0;
/**