forked from lioncash/ExtractData
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ExtractData.h
61 lines (47 loc) · 1.55 KB
/
ExtractData.h
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
59
60
61
#pragma once
#include "Common.h"
#include "res/ResExtractData.h"
#include "MainListView.h"
#include "ProgressBar.h"
#include "Extract.h"
#include "WindowBase.h"
#define EXTRACT_SELECT 0
#define EXTRACT_ALL 1
class CExtractData : public CWindowBase, public CExtract
{
private:
HWND m_hParentWnd;
HINSTANCE m_hParentInst;
CMainListView* m_pListView;
TCHAR m_szPathToTmpFileList[MAX_PATH];
LPCTSTR m_pclArcNames;
DWORD m_dwExtractMode;
LPCTSTR m_pSaveDir;
BOOL m_bConvert;
SOption* m_pOption;
BOOL m_bInput;
std::vector<CArcFile*> m_ArcList;
std::set<YCString> m_ssTmpFile;
void Save(DWORD ExtractMode, LPTSTR pSaveDir, BOOL bConvert);
static UINT WINAPI MountThread(LPVOID lpParam);
static UINT WINAPI DecodeThread(LPVOID lpParam);
public:
CExtractData();
void Init(HWND hWnd, SOption& option, CMainListView& listview);
void Open(LPTSTR pOpenDir);
void OpenDrop(WPARAM wp);
void OpenHistory(YCString& sFilePath);
void Mount(LPCTSTR c_pclArcNames);
void SaveSel(LPTSTR pSaveDir, BOOL bConvert);
void SaveAll(LPTSTR pSaveDir, BOOL bConvert);
void SaveDrop();
void Decode(DWORD ExtractMode, LPCTSTR pSaveDir, BOOL bConvert);
void DecodeTmp();
void OpenRelate();
void DeleteTmpFile();
void LoadTmpFileList();
void SaveTmpFileList();
void Close();
std::vector<CArcFile*>& GetArcList() { return m_ArcList; }
LRESULT WndProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp);
};