summaryrefslogtreecommitdiff
path: root/muggle-plugin/mg_thread_sync.h
diff options
context:
space:
mode:
Diffstat (limited to 'muggle-plugin/mg_thread_sync.h')
-rw-r--r--muggle-plugin/mg_thread_sync.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/muggle-plugin/mg_thread_sync.h b/muggle-plugin/mg_thread_sync.h
new file mode 100644
index 0000000..d9a2e3f
--- /dev/null
+++ b/muggle-plugin/mg_thread_sync.h
@@ -0,0 +1,39 @@
+/*!
+ * \file mg_sync.h
+ * \brief synchronization between SQL and filesystem
+ *
+ * \version $Revision: 1.0 $
+ * \date $Date: 2004-12-07 10:10:35 +0200 (Tue, 07 Dec 2004) $
+ * \author Wolfgang Rohdewald
+ * \author Responsible author: $Author: wr $
+ *
+ */
+
+#ifndef _MG_THREADSYNC_H
+#define _MG_THREADSYNC_H
+
+#include <thread.h>
+
+class mgThreadSync : public cThread
+{
+ public:
+
+ static mgThreadSync* get_instance();
+
+ bool Sync(char * const * path_argv, bool delete_missing );
+
+ protected:
+ /*! \brief Runs the import routine as a separate thread
+ */
+ virtual void Action();
+
+ private:
+
+ void SetArguments( char * const * path_argv, bool delete_missing );
+
+ char * const *m_path;
+ bool m_delete;
+
+};
+
+#endif