summaryrefslogtreecommitdiff
path: root/src/components/application_manager/include/application_manager/commands/command.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/include/application_manager/commands/command.h')
-rw-r--r--src/components/application_manager/include/application_manager/commands/command.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/src/components/application_manager/include/application_manager/commands/command.h b/src/components/application_manager/include/application_manager/commands/command.h
index 587c3d834..238e0b71c 100644
--- a/src/components/application_manager/include/application_manager/commands/command.h
+++ b/src/components/application_manager/include/application_manager/commands/command.h
@@ -1,4 +1,4 @@
-/**
+/*
Copyright (c) 2014, Ford Motor Company
All rights reserved.
@@ -44,7 +44,6 @@ namespace application_manager {
**/
namespace smart_objects = NsSmartDeviceLink::NsSmartObjects;
-typedef utils::SharedPtr<smart_objects::SmartObject> MessageSharedPtr;
namespace commands {
@@ -108,8 +107,28 @@ class Command {
*/
virtual void onTimeOut() = 0;
+ /**
+ * @brief AllowedToTerminate tells if request controller is allowed
+ * to terminate this command
+ * @return
+ */
+ virtual bool AllowedToTerminate() = 0;
+
+ /**
+ * @brief SetAllowedToTerminate set up allowed to terminate flag.
+ * If true, request controller will terminate request on response
+ */
+ virtual void SetAllowedToTerminate(bool allowed) = 0;
+
+
+ enum CommandOrigin {
+ ORIGIN_SDL,
+ ORIGIN_MOBILE
+ };
};
+typedef smart_objects::SmartObjectSPtr MessageSharedPtr;
+
} // namespace commands
} // namespace application_manager