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

github.com/lintest/myrulib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MyRuLib/FbUpdateThread.h')
-rw-r--r--MyRuLib/FbUpdateThread.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/MyRuLib/FbUpdateThread.h b/MyRuLib/FbUpdateThread.h
new file mode 100644
index 00000000..bc102891
--- /dev/null
+++ b/MyRuLib/FbUpdateThread.h
@@ -0,0 +1,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__