blob: 23085d5cf1e1f0f4389e1cab6fa6e3c4b56c6f4c (
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
40
|
/*!
* \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:
mgThreadSync();
static mgThreadSync* get_instance();
bool Sync(char * const * path_argv=0);
protected:
/*! \brief Runs the import routine as a separate thread
*/
virtual void Action();
private:
void SetArguments( char * const * path_argv);
char * const *m_path;
bool m_has_args;
bool m_delete;
};
#endif
|