Lhaz
読み取り中…
検索中…
一致する文字列を見つけられません
lhaz7zip.h
[詳解]
1/*************************************************************************/
6#pragma once
7
8#include <vector>
9#include "lhazarc.h"
10#include "altstr.hpp"
11
12class PATH;
13
14namespace gui {
15
16class LHAZTREEVIEW;
17
18} // namespace gui
19
20/*************************************************************************/
23class ARC7ZIP : public ARCHIVE {
24public:
35 // 圧縮・解凍用コンストラクタ
36 ARC7ZIP(HWND hwnd, const WSTR& name, TYPE type);
37 // 閲覧用コンストラクタ
38 ARC7ZIP(HWND hwnd, const WSTR& name, TYPE type, const WSTR& filter, gui::LHAZTREEVIEW* treeview);
39 // 全解凍
40 bool Extract(bool verify, const WSTR& temp, const WSTR& password);
41 // 個別解凍
42 bool Extract(const WSTR& temp);
43 // 圧縮
44 bool Compress(int method, int header, const WSTR& pass, const PATH& temp, const std::vector<LHAZPROCFILE>& v);
45 // 個別削除
46 bool Delete(const std::vector<LHAZFILE*>& v);
47 // 書庫判定
48 static ISARCHIVE IsArchive7Zip(const WSTR& name);
49 // ファイル情報設定
50 void Set(LHAZFILE*);
51 //
52 void AddTotal(UINT64 t) { Total += t; }
53 //
54 void IsSameDir(const WSTR& name);
55
56private:
57 WSTR DirBuf;
58 //
59 bool Extract(const std::vector<WSTR>& v, bool verify, const WSTR& pass);
60 int SevenZipList(const TCHAR* name, gui::LHAZTREEVIEW* treeview);
61
62};
7-Zip書庫
Definition lhaz7zip.h:23
bool Compress(int method, int header, const WSTR &pass, const PATH &temp, const std::vector< LHAZPROCFILE > &v)
ARC7ZIP(HWND hwnd, const WSTR &name, TYPE type, const WSTR &filter, gui::LHAZTREEVIEW *treeview)
METHOD
Definition lhaz7zip.h:30
@ SZIP_METHOD_7ZIP
Definition lhaz7zip.h:31
@ SZIP_METHOD_ZIP
Definition lhaz7zip.h:33
@ SZIP_METHOD_PPMD
Definition lhaz7zip.h:32
ISARCHIVE
Definition lhaz7zip.h:25
@ BAD_PASSWORD
Definition lhaz7zip.h:28
@ NO_7ZIP
Definition lhaz7zip.h:26
@ YES_7ZIP
Definition lhaz7zip.h:27
WSTR DirBuf
Definition lhaz7zip.h:57
void Set(LHAZFILE *)
bool Extract(const WSTR &temp)
bool Extract(const std::vector< WSTR > &v, bool verify, const WSTR &pass)
void AddTotal(UINT64 t)
Definition lhaz7zip.h:52
bool Delete(const std::vector< LHAZFILE * > &v)
static ISARCHIVE IsArchive7Zip(const WSTR &name)
ARC7ZIP(HWND hwnd, const WSTR &name, TYPE type)
int SevenZipList(const TCHAR *name, gui::LHAZTREEVIEW *treeview)
bool Extract(bool verify, const WSTR &temp, const WSTR &password)
void IsSameDir(const WSTR &name)
Definition lhazarc.h:25
TYPE
Definition lhazarc.h:28
LONGLONG Total
Definition lhazarc.h:121
Definition lhazfile.h:14
Definition lhaztreeview.h:18
Archive
¥ type v
Definition lhazregs.h:21
Definition lhazbz2.h:17