Welcome to mirror list, hosted at ThFree Co, Russian Federation.

FbUpdateThread.h « MyRuLib - github.com/lintest/myrulib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bc102891042452d6186e77cddda28c92851b1e54 (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
#ifndef __FBUPDATETHREAD_H__
#define __FBUPDATETHREAD_H__

#include <wx/wx.h>
#include "FbBookEvent.h"
#include "FbDatabase.h"

class FbUpdateThread: public wxThread
{
	public:
		FbUpdateThread(const wxString &sql, const int folder, const FbFolderType type, const wxString &sql2 = wxEmptyString)
			:m_sql(sql), m_folder(folder), m_type(type), m_sql2(sql2) {};
	protected:
		static wxCriticalSection sm_queue;
		void ExecSQL(FbDatabase &database, const wxString &sql);
		virtual void * Entry();
		wxString m_sql;
		int m_folder;
		FbFolderType m_type;
		wxString m_sql2;
};

class FbCreateDownloadThread: public FbUpdateThread
{
	public:
		FbCreateDownloadThread(const wxString &sql, const int folder, const FbFolderType type, const wxString &sql2 = wxEmptyString)
			:FbUpdateThread(sql, folder, type, sql2) {};
	protected:
		virtual void * Entry();
};

#endif // __FBUPDATETHREAD_H__