merge Verification and Update Interfaces
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I8c2548b9d6e15965cfdd49965bdc5dbe97d0dc94
diff --git a/status.hpp b/status.hpp
index 2789d9c..869fe89 100644
--- a/status.hpp
+++ b/status.hpp
@@ -14,4 +14,23 @@
unknown = 3,
};
+class TriggerableActionInterface
+{
+ public:
+ virtual ~TriggerableActionInterface() = default;
+
+ /**
+ * Trigger action.
+ *
+ * @return true if successfully started, false otherwise.
+ */
+ virtual bool trigger() = 0;
+
+ /** Abort the action if possible. */
+ virtual void abort() = 0;
+
+ /** Check the current state of the action. */
+ virtual ActionStatus status() = 0;
+};
+
} // namespace ipmi_flash