summaryrefslogtreecommitdiff
path: root/muggle-plugin/mg_thread_sync.h
diff options
context:
space:
mode:
authorLarsAC <LarsAC@e10066b5-e1e2-0310-b819-94efdf66514b>2005-03-22 06:47:53 +0000
committerLarsAC <LarsAC@e10066b5-e1e2-0310-b819-94efdf66514b>2005-03-22 06:47:53 +0000
commite2de0c5ed7bbbe4b236246e8bfd71cc87c8d974f (patch)
tree616f2f0a482597e3968e281ccf8adcfd04f45bbc /muggle-plugin/mg_thread_sync.h
parent101360901576c7e91196de60e2e6ebd6a4b145dd (diff)
downloadvdr-plugin-muggle-0.1.6-BETA.tar.gz
vdr-plugin-muggle-0.1.6-BETA.tar.bz2
Added 0.1.6 beta tag0.1.6-BETA
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/tags/0.1.6-BETA@586 e10066b5-e1e2-0310-b819-94efdf66514b
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