summaryrefslogtreecommitdiff
path: root/mg_thread_sync.h
blob: e948a5bdf048803a511c03dcde63c3cced3a0ca6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 <vdr/thread.h>

class mgThreadSync : public cThread
{
	public:
		mgThreadSync();
		static mgThreadSync* get_instance();

		bool Sync(const char * const * path_argv=0);

	protected:
		/*! \brief Runs the import routine as a separate thread
		 */
		virtual void Action();

	private:

		void SetArguments(const char * const * path_argv);

		const char * const *m_path;
		bool m_has_args;
		bool m_delete;

};
#endif