Lhaz
読み取り中…
検索中…
一致する文字列を見つけられません
lhaztabcontent_gd.h
[詳解]
1/*************************************************************************/
6#pragma once
7
8#include <vector>
9#include <windows.h>
10#include "lhaztabcontent.h"
11#include "gui/lhazcol.h"
12#include "lhazfile.h"
13#include "mystr.h"
14
15class LHAZFILE_GD;
16class LHAZFILES_GD;
17class MYGOOGLEDRIVE;
18class MYTHREAD;
19class PATH;
20
22public:
25 HINSTANCE hins,
26 HWND parent,
27 DWORD dwStyle,
28 int lv_id,
29 bool edge,
30 int page,
31 HIMAGELIST himage,
32 const MYSTR& label,
33 TYPE type,
34 int lvx,
35 int panel_id,
36 int panel_x,
37 HWND panel_mes_hwnd,
38 int panel_mes,
39 int tree_id,
40 bool showtreeview,
41 std::vector<WSTR>& filters,
42 LHAZSTS* stsbar
43 );
45 //
46 void CloseArchive(HTREEITEM hitem);
47 void Compress(std::vector<LHAZPROCFILE>& compfiles, const MYSTR& curdir);
48 void DispStsBar(void);
49 MYGOOGLEDRIVE* GetGoogleDrive(void) const { return m_googledrive; }
50 const MYSTR& GetLabel(void) const;
51 void OnCompress(void);
52 void OnDropFiles(const std::vector<WSTR>& files, const PATH& tempname);
53 bool OnDownload(const MYSTR& destdir, bool decryption, bool opendest);
54 void OnEnter(const PATH& tempdir);
55 int OnNotify(HWND hWnd, WPARAM wParam, LPARAM lParam, const MYSTR& destdir, const MYSTR& tempdir);
56 void OnRefresh(void);
57 void OnSelChange(void);
58 void OutputList(const MYSTR& file, LHAZLIST::FORMAT format, bool csv, bool count, const MYSTR& countfile);
59 void SetColumn(HMENU menu, int sortkind, int sortrev);
60 void SortByMenu(WPARAM wParam);
61 void SortRev(void);
62 bool UploadFiles(const vector<WSTR>& files);
63
64private:
65 struct WATCHFILE {
66 MYSTR m_name;
69 };
70 struct WATCHIF {
71 HANDLE m_handle;
72 std::vector<WATCHFILE> m_files;
73 };
74 //
75 static gui::LVCOLM Columns[];
76 //
78 CRITICAL_SECTION m_crisec;
79 MYGOOGLEDRIVE* m_googledrive;
80 MYTHREAD* m_thread;
81 LONGLONG m_total;
83 //
84 static void DownloadCB(ULONGLONG sent, void* param);
85 static void UploadCB(ULONGLONG sent, void* param);
86 static DWORD WINAPI WatchThread(LPVOID);
87 //
88 void OnCopyURL(void);
89 void OnCreateFolder(void);
90 void OnEndLabelEdit(LPARAM lParam);
91 void OnEnter(int idx, const MYSTR& tempdir);
92 void OnEnterArchive(LHAZFILE_GD* file, const MYSTR& tempdir);
93 void OnExtMydoc(int idx, const MYSTR& tempdir);
94 void OnExtHistory(int idx, UINT ret, const MYSTR& tempdir);
95 void OnExtRegistered(int idx, UINT ret, const MYSTR& tempdir);
96 void OnIncrementalSearch(LPARAM lParam);
97 void OnItemChanged(LPARAM lParam);
98 void OnListview(WPARAM wParam, LPARAM lParam, const MYSTR& destdir, const MYSTR& tempdir);
99 void OnSelDirExtract(int idx, const MYSTR& tempdir);
100 void OnTrash(void);
101 //
102 void Extract(int idx, const MYSTR& tempdir, const MYSTR& destdir);
103 void Filter(void);
104 bool Login(void);
105 MYSTR MakeTempDir(const MYSTR& dir);
106 void PopupMenu(void);
107 void PopupMenuOnFile(int idx, const MYSTR& destdir, const MYSTR& tempdir);
108 void Sort(int column);
109 void StartWatching(const MYSTR& name, LHAZFILE_GD* file);
110};
Definition lhazfiles_gd.h:14
Definition lhazfile_gd.h:17
FORMAT
Definition lhazlist.h:22
Definition lhazsts.h:12
Definition lhaztabcontent_gd.h:21
void OutputList(const MYSTR &file, LHAZLIST::FORMAT format, bool csv, bool count, const MYSTR &countfile)
書庫内容出力
Definition lhaztabcontent_gd.cpp:763
MYSTR MakeTempDir(const MYSTR &dir)
MakeTempDir
Definition lhaztabcontent_gd.cpp:243
MYGOOGLEDRIVE * GetGoogleDrive(void) const
Definition lhaztabcontent_gd.h:49
bool m_logined
Definition lhaztabcontent_gd.h:77
void SortRev(void)
SortRev
Definition lhaztabcontent_gd.cpp:1052
void OnSelDirExtract(int idx, const MYSTR &tempdir)
OnSelDirExtract
Definition lhaztabcontent_gd.cpp:717
int OnNotify(HWND hWnd, WPARAM wParam, LPARAM lParam, const MYSTR &destdir, const MYSTR &tempdir)
OnNotify
Definition lhaztabcontent_gd.cpp:647
static gui::LVCOLM Columns[]
Definition lhaztabcontent_gd.h:31
void DispStsBar(void)
DispStsBar
Definition lhaztabcontent_gd.cpp:136
void Extract(int idx, const MYSTR &tempdir, const MYSTR &destdir)
Extract
Definition lhaztabcontent_gd.cpp:177
WATCHIF * m_wif
Definition lhaztabcontent_gd.h:82
static void UploadCB(ULONGLONG sent, void *param)
UploadCB
Definition lhaztabcontent_gd.cpp:1106
const MYSTR & GetLabel(void) const
GetLabel
Definition lhaztabcontent_gd.cpp:230
void OnIncrementalSearch(LPARAM lParam)
OnIncrementalSearch
Definition lhaztabcontent_gd.cpp:541
void OnExtRegistered(int idx, UINT ret, const MYSTR &tempdir)
OnExtRegistered
Definition lhaztabcontent_gd.cpp:531
void OnCreateFolder(void)
OnCreateFolder
Definition lhaztabcontent_gd.cpp:281
void SetColumn(HMENU menu, int sortkind, int sortrev)
SetColumn
Definition lhaztabcontent_gd.cpp:1009
MYTHREAD * m_thread
Definition lhaztabcontent_gd.h:80
void PopupMenu(void)
PopupMenu
Definition lhaztabcontent_gd.cpp:776
void OnItemChanged(LPARAM lParam)
OnItemChanged
Definition lhaztabcontent_gd.cpp:574
void OnEnter(const PATH &tempdir)
ENTER押下時処理
Definition lhaztabcontent_gd.cpp:424
void OnEndLabelEdit(LPARAM lParam)
OnEndLabelEdit
Definition lhaztabcontent_gd.cpp:384
static DWORD WINAPI WatchThread(LPVOID)
更新監視スレッド
Definition lhaztabcontent_gd.cpp:1142
void OnCompress(void)
OnCompress
Definition lhaztabcontent_gd.cpp:255
static void DownloadCB(ULONGLONG sent, void *param)
DownloadCB
Definition lhaztabcontent_gd.cpp:165
LONGLONG m_total
Definition lhaztabcontent_gd.h:81
void CloseArchive(HTREEITEM hitem)
CloseArchive
Definition lhaztabcontent_gd.cpp:121
void SortByMenu(WPARAM wParam)
SortByMenu
Definition lhaztabcontent_gd.cpp:1042
LHAZTABCONTENT_GD(void)
Default constructor
Definition lhaztabcontent_gd.cpp:46
void StartWatching(const MYSTR &name, LHAZFILE_GD *file)
ファイル更新監視開始
Definition lhaztabcontent_gd.cpp:1067
void Filter(void)
Filter
Definition lhaztabcontent_gd.cpp:220
CRITICAL_SECTION m_crisec
Definition lhaztabcontent_gd.h:78
bool OnDownload(const MYSTR &destdir, bool decryption, bool opendest)
OnDownload
Definition lhaztabcontent_gd.cpp:307
MYGOOGLEDRIVE * m_googledrive
Definition lhaztabcontent_gd.h:79
void OnExtMydoc(int idx, const MYSTR &tempdir)
OnExtMydoc
Definition lhaztabcontent_gd.cpp:513
void OnSelChange(void)
OnSelChange
Definition lhaztabcontent_gd.cpp:705
void OnRefresh(void)
OnRefresh
Definition lhaztabcontent_gd.cpp:678
void OnDropFiles(const std::vector< WSTR > &files, const PATH &tempname)
OnDropFiles
Definition lhaztabcontent_gd.cpp:359
void OnCopyURL(void)
OnCopyURL
Definition lhaztabcontent_gd.cpp:262
void OnListview(WPARAM wParam, LPARAM lParam, const MYSTR &destdir, const MYSTR &tempdir)
OnListview
Definition lhaztabcontent_gd.cpp:594
bool UploadFiles(const vector< WSTR > &files)
UploadFiles
Definition lhaztabcontent_gd.cpp:1118
void OnEnterArchive(LHAZFILE_GD *file, const MYSTR &tempdir)
OnEnterArchive
Definition lhaztabcontent_gd.cpp:485
void OnExtHistory(int idx, UINT ret, const MYSTR &tempdir)
OnExtHistory
Definition lhaztabcontent_gd.cpp:503
void Compress(std::vector< LHAZPROCFILE > &compfiles, const MYSTR &curdir)
Compress
Definition lhaztabcontent_gd.cpp:129
‾LHAZTABCONTENT_GD(void)
Destructor
Definition lhaztabcontent_gd.cpp:111
void PopupMenuOnFile(int idx, const MYSTR &destdir, const MYSTR &tempdir)
PopupMenuOnFile
Definition lhaztabcontent_gd.cpp:816
LHAZTABCONTENT_GD(HINSTANCE hins, HWND parent, DWORD dwStyle, int lv_id, bool edge, int page, HIMAGELIST himage, const MYSTR &label, TYPE type, int lvx, int panel_id, int panel_x, HWND panel_mes_hwnd, int panel_mes, int tree_id, bool showtreeview, std::vector< WSTR > &filters, LHAZSTS *stsbar)
void OnTrash(void)
OnTrash
Definition lhaztabcontent_gd.cpp:736
bool Login(void)
Login
Definition lhaztabcontent_gd.cpp:196
Definition lhaztabcontent.h:32
void Sort(void)
Sort
Definition lhaztabcontent.cpp:1121
TYPE
Definition lhaztabcontent.h:34
リストビューで用いるカラム.
Definition lhazcol.h:23
Listview column header
Tab Content
Definition lhaztabcontent_gd.h:65
FILETIME m_lastwritetime
Definition lhaztabcontent_gd.h:67
LHAZFILE_GD * m_file
Definition lhaztabcontent_gd.h:68
MYSTR m_name
Definition lhaztabcontent_gd.h:66
Definition lhaztabcontent_gd.h:70
HANDLE m_handle
Definition lhaztabcontent_gd.h:71
std::vector< WATCHFILE > m_files
Definition lhaztabcontent_gd.h:72