-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwxBupTestRestoreThreadh.h
More file actions
58 lines (48 loc) · 2.05 KB
/
wxBupTestRestoreThreadh.h
File metadata and controls
58 lines (48 loc) · 2.05 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*-----------------------------------------------------------------
* Name: wxBupTestRestoreThreadh.h
* Purpose:
* Author: A. Wiegert
*
* Copyright:
* Licence: wxWidgets licence
*-------------------------------------------------------------- */
#ifndef _WX_BUP_TEST_RESTORE_THREAD_H
#define _WX_BUP_TEST_RESTORE_THREAD_H
// ------------------------------------------------------------------
//#include "wx/dynarray.h"
#include "wxBuph.h"
#include "wxBupFrameh.h"
#include "wxBupBagLogListh.h"
// ------------------------------------------------------------------
class MyRestoreThread : public wxThread
{
public:
MyRestoreThread(MyFrame *frame);
// thread execution starts here
virtual void *Entry();
// called when the thread exits - whether it terminates normally or is
// stopped with Delete() (but not when it is Kill()ed!)
virtual void OnExit();
public:
MyFrame *m_frame;
unsigned long m_ulTotalFilesToCheck;
unsigned long m_ulTotalFiles;
unsigned long m_ulTotalFilesChecked;
unsigned long m_ulCheckedFilesGood;
unsigned long m_ulCheckedFilesFailed;
bool m_bRestoring;
wxString m_wsBagLogPath;
bool RemoveTestRestoreDirAndFiles( wxString wsDir );
void RestoreOrTestOneBag( wxString wsBagLog );
bool CompareZippedFile( wxString a_wsOrigFile, wxString a_wsTestFile );
bool Compare2Files( wxString a_wsOrigFile, wxString a_wsTestFile );
bool Restore1ZippedFile(const wxString& aZipFile, const wxString& aTargetDir);
bool Restore1File( wxString a_wsOrigFile, wxString a_wsDestFile );
bool ExtractZipFiles(const wxString& aZipFile, const wxString& aTargetDir);
std::list<MyBagLogDataEl> m_ThreadBagList;
void SetThreadNextBagData( unsigned long ulTotalFilesToCheck, wxString wsBagLogPath );
bool TestRestoreCountFiles( wxString wsPath, wxString mask, wxVector<wxString>& files,
unsigned long& a_ulDirs );
};
#endif // _WX_BUP_TEST_RESTORE_THREAD_H
// ------------------------------- eof ---------------------------