Lhaz
読み取り中…
検索中…
一致する文字列を見つけられません
lhazrar.h
[詳解]
1#ifndef _LHAZRAR_H
2#define _LHAZRAR_H
3
4#include <windows.h>
5#include <stdio.h>
6#include <vector>
7#include "lhazarc.h"
8#include "mystr.h"
9
10using namespace std;
11
12class LHAZPROCFILE;
13class PATH;
14
15class ARCRAR : public ARCHIVE {
16public:
18 // 全解凍用コンストラクタ
19 ARCRAR(HWND hwnd, const WSTR& name, TYPE type);
20 // 閲覧用コンストラクタ
21 ARCRAR(HWND hwnd, const WSTR& name, TYPE type, const WSTR& filter, gui::LHAZTREEVIEW* treeview);
22 // デストラクタ
23 ‾ARCRAR(void);
24 // 全解凍
25 bool Extract(bool verify, const WSTR& temp, const WSTR& password);
26 // 個別解凍
27 bool Extract(const WSTR& temp);
28 // 圧縮
29 bool Compress(int method, int header, const WSTR& pass, const PATH& temp, const vector<LHAZPROCFILE>& v);
30 // 個別削除
31 bool Delete(const vector<LHAZFILE*>& v);
32 //
33 static IS_ARCHIVE_RAR IsArchiveRar(const WSTR& name);
34
35private:
36 static int CALLBACK CallbackProc(UINT msg, LPARAM UserData, LPARAM P1, LPARAM P2);
37 static INT_PTR CALLBACK DialogNextRar(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
38 //
40 MYSTR Password;
42 std::size_t NextAskedFile;
43 std::vector<MYSTR> AskedFiles;
44
45};
46
47#endif
Definition lhazarc.h:25
TYPE
Definition lhazarc.h:28
Definition lhazrar.h:15
‾ARCRAR(void)
Definition lhazrar.cpp:195
MYSTR CurrentFileName
Definition lhazrar.h:39
std::size_t NextAskedFile
Definition lhazrar.h:42
bool Delete(const vector< LHAZFILE * > &v)
Definition lhazrar.cpp:356
IS_ARCHIVE_RAR
Definition lhazrar.h:17
@ IS_RAR
Definition lhazrar.h:17
@ IS_PASSWORD_ERROR
Definition lhazrar.h:17
@ IS_NO_RAR
Definition lhazrar.h:17
MYSTR Password
Definition lhazrar.h:40
bool Extract(bool verify, const WSTR &temp, const WSTR &password)
Definition lhazrar.cpp:202
static INT_PTR CALLBACK DialogNextRar(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition lhazrar.cpp:427
std::vector< MYSTR > AskedFiles
Definition lhazrar.h:43
bool Compress(int method, int header, const WSTR &pass, const PATH &temp, const vector< LHAZPROCFILE > &v)
Definition lhazrar.cpp:348
static IS_ARCHIVE_RAR IsArchiveRar(const WSTR &name)
Definition lhazrar.cpp:364
static int CALLBACK CallbackProc(UINT msg, LPARAM UserData, LPARAM P1, LPARAM P2)
Definition lhazrar.cpp:383
bool AskingFiles
Definition lhazrar.h:41
Definition lhazprocfile.h:11
Definition lhaztreeview.h:18
Archive
¥ type v
Definition lhazregs.h:21