summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-08-21 10:20:13 +0000
committerChris Wilson <chris+github@qwirx.com>2008-08-21 10:20:13 +0000
commitaad61cfb4d89c65cafc698da5aa1b6b06a5a232c (patch)
tree08647b76e02cddf360438f50b82b067db64eb3cf /lib
parent2f07ec9114839fb6837c79009e74c15e80eab990 (diff)
Run status provider interface, needed to connect Box Backup to Boxi and
potentially other frontends and allow stopping a backup in progress.
Diffstat (limited to 'lib')
-rw-r--r--lib/backupclient/RunStatusProvider.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/backupclient/RunStatusProvider.h b/lib/backupclient/RunStatusProvider.h
new file mode 100644
index 00000000..89f361ca
--- /dev/null
+++ b/lib/backupclient/RunStatusProvider.h
@@ -0,0 +1,29 @@
+// --------------------------------------------------------------------------
+//
+// File
+// Name: RunStatusProvider.h
+// Purpose: Declares the RunStatusProvider interface.
+// Created: 2008/08/14
+//
+// --------------------------------------------------------------------------
+
+#ifndef RUNSTATUSPROVIDER__H
+#define RUNSTATUSPROVIDER__H
+
+// --------------------------------------------------------------------------
+//
+// Class
+// Name: RunStatusProvider
+// Purpose: Provides a StopRun() method which returns true if
+// the current backup should be halted.
+// Created: 2005/11/15
+//
+// --------------------------------------------------------------------------
+class RunStatusProvider
+{
+ public:
+ virtual ~RunStatusProvider() { }
+ virtual bool StopRun() = 0;
+};
+
+#endif // RUNSTATUSPROVIDER__H