#include <HFE_FileList.h>

Public Member Functions | |
| CHFE_FileList () | |
| void | ApplyLanguage () |
| void | ApplyLanguageToMenu (CMenu *menu) |
| int | OnUpdateToolBar (UINT nID) |
| void | UpdateList () |
| BOOL | Create (CWnd *pParent) |
| virtual | ~CHFE_FileList () |
Protected Member Functions | |
| void | OnForceUpdate () |
| void | CalcCoordsForCurSel () |
| void | DownloadSelected () |
| void | OnKeyDown (WORD wVK) |
| BOOL | Open1SelectedItem () |
| void | UpdateMenu (CMenu *pMenu) |
| void | OnRClick () |
| int | GetFileImage (fsFileInfo *file) |
| afx_msg void | OnRButtonDown (UINT nFlags, CPoint point) |
| afx_msg void | OnHfeDownload () |
| afx_msg void | OnHfeGo () |
| afx_msg void | OnHfeRefresh () |
| afx_msg void | OnHfeSettings () |
| afx_msg void | OnHfeStop () |
| afx_msg void | OnHfeOpenfolder () |
| afx_msg void | OnHfeParentfolder () |
| afx_msg void | OnLButtonDblClk (UINT nFlags, CPoint point) |
| afx_msg void | OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct) |
| afx_msg void | OnMeasureItem (int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct) |
| afx_msg void | OnHfeDisconnect () |
Static Protected Member Functions | |
| static DWORD WINAPI | _threadBuildList (LPVOID lp) |
| static fs::tree< fsFileInfo * > * | BuildList (LPCSTR pszFolder, BOOL *pbNeedStop, int *piProgress, int iProgressDone) |
| static int CALLBACK | _SortFunc (LPARAM item1, LPARAM item2, LPARAM lParam) |
Protected Attributes | |
| fsODMenu | m_odmenu |
| fs::tree< fsFileInfo * > * | m_pList |
| BOOL | m_bDontUpdateList |
| fs::tree * | m_pDldList |
| CPoint | m_rbPt |
| CImageList | m_images |
| CImageList | m_selImages |
Friends | |
| class | CHFEWnd |
| class | CCreateDownloadsDlg |
Definition at line 17 of file HFE_FileList.h.
| CHFE_FileList::CHFE_FileList | ( | ) |
| CHFE_FileList::~CHFE_FileList | ( | ) | [virtual] |
Definition at line 31 of file HFE_FileList.cpp.
| void CHFE_FileList::ApplyLanguage | ( | ) |
Definition at line 722 of file HFE_FileList.cpp.
References L_DATE, L_FILENAME, L_SIZE, LS, and CListCtrlEx::SetColumnText().
Referenced by CHFE_ListLog::ApplyLanguage().
| void CHFE_FileList::ApplyLanguageToMenu | ( | CMenu * | menu | ) |
Definition at line 709 of file HFE_FileList.cpp.
References ID_HFE_DISCONNECT, ID_HFE_DOWNLOAD, ID_HFE_OPENFOLDER, ID_HFE_PARENTFOLDER, ID_HFE_REFRESH, ID_HFE_SETTINGS, ID_HFE_STOP, L_DISCONNECT, L_DOWNLOAD, L_EXPLORER, L_EXPLORERSETTINGS, L_OPENFOLDER, L_OPENPARENTFOLDER, L_REFRESH, L_STOP, and LS.
Referenced by OnRClick(), and CHFEWnd::Plugin_SetLanguage().
| int CHFE_FileList::OnUpdateToolBar | ( | UINT | nID | ) |
Definition at line 632 of file HFE_FileList.cpp.
References fsFileInfo::bFolder, BOOL, FALSE, fsInternetFileListMgr::GetCurrentPath(), CHFEWnd::GetMgr(), ID_HFE_BACK, ID_HFE_DOWNLOAD, ID_HFE_OPENFOLDER, ID_HFE_PARENTFOLDER, ID_HFE_REFRESH, ID_HFE_STOP, fsInternetFileListMgr::IsCurrentPathRoot(), fsInternetFileListMgr::IsRunning(), CHFE_Address::m_vAddrs, CHFEWnd::m_wndUrl, NULL, pos(), TRUE, WGP_CMDITEMSTATE_DISABLED, and WGP_CMDITEMSTATE_ENABLED.
Referenced by CHFEWnd::OnUpdateToolBar().
| void CHFE_FileList::UpdateList | ( | ) |
Definition at line 85 of file HFE_FileList.cpp.
References _SortFunc(), CListCtrlEx::AddItem(), BytesToXBytes(), FALSE, fsBytesToStr(), fsInternetFileListMgr::GetFileCount(), GetFileImage(), fsInternetFileListMgr::GetFileInfo(), fsInternetFileListMgr::GetLastError(), CHFEWnd::GetMgr(), IR_SUCCESS, fsInternetFileListMgr::IsConnected(), fsInternetFileListMgr::IsCurrentPathRoot(), CDownloadsWnd::IsSizesInBytes(), m_bDontUpdateList, NULL, CListCtrlEx::SetItemText(), fsFileInfo::strName, and SystemTimeToStr().
Referenced by CHFEWnd::_EventsFunc(), and OnForceUpdate().
| BOOL CHFE_FileList::Create | ( | CWnd * | pParent | ) |
Definition at line 52 of file HFE_FileList.cpp.
References FALSE, IDB_FILELIST, IDB_FILELIST_SEL, L_DATE, L_FILENAME, L_SIZE, LS, m_images, m_selImages, CListCtrlEx::ReadState(), SBMP, CListCtrlEx::SetSelectedImages(), and TRUE.
Referenced by CHFE_ListLog::OnCreate().
| void CHFE_FileList::OnForceUpdate | ( | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 750 of file HFE_FileList.cpp.
References UpdateList().
| void CHFE_FileList::CalcCoordsForCurSel | ( | ) | [protected] |
| DWORD WINAPI CHFE_FileList::_threadBuildList | ( | LPVOID | lp | ) | [static, protected] |
Definition at line 563 of file HFE_FileList.cpp.
References fsFileInfo::bFolder, ProcWaitInfo::bNeedStop, BuildList(), ProcWaitInfo::bWaitDone, FALSE, fsnew1, simple_client::info, ProcWaitInfo::iProgress, ProcWaitInfo::lpParam1, ProcWaitInfo::lpParam2, m_pList, NULL, pos(), SAFE_DELETE, fsFileInfo::strName, and TRUE.
Referenced by DownloadSelected().
| fs::tree< fsFileInfo * > * CHFE_FileList::BuildList | ( | LPCSTR | pszFolder, | |
| BOOL * | pbNeedStop, | |||
| int * | piProgress, | |||
| int | iProgressDone | |||
| ) | [static, protected] |
Definition at line 461 of file HFE_FileList.cpp.
References fsFileInfo::bFolder, FALSE, fsnew1, fsInternetFileListMgr::GetFileCount(), fsInternetFileListMgr::GetFileInfo(), CHFEWnd::GetMgr(), fsInternetFileListMgr::GoFolder(), fsInternetFileListMgr::GoParentFolder(), fsInternetFileListMgr::IsConnected(), fsInternetFileListMgr::IsRunning(), fsString::Length(), NULL, SAFE_DELETE, fsInternetFileListMgr::Stop(), and fsFileInfo::strName.
Referenced by _threadBuildList().
| void CHFE_FileList::DownloadSelected | ( | ) | [protected] |
Definition at line 403 of file HFE_FileList.cpp.
References _DlgMgr, _threadBuildList(), BOOL, fsDialogsMgr::DoModal(), FALSE, fsInternetFileListMgr::GetCurrentUrl(), fsInternetFileListMgr::GetList(), CHFEWnd::GetMgr(), fsInternetFileListMgr::IsConnected(), fsInternetFileListMgr::IsRunning(), L_BUILDINGLIST, L_FAILED, CHFEWnd::LogFailedMessage(), LS, m_bDontUpdateList, CCreateDownloadsDlg::m_pFileList, m_pList, CCreateDownloadsDlg::m_strRootUrl, CHFE_Address::m_wndUrl, CHFEWnd::m_wndUrl, NULL, fsInternetFileListMgr::RetreiveInfoWhileGettingList(), SAFE_DELETE, CWaitDlg::StartWaiting(), fsInternetFileListMgr::Stop(), and TRUE.
Referenced by OnHfeDownload().
| void CHFE_FileList::OnKeyDown | ( | WORD | wVK | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 387 of file HFE_FileList.cpp.
References CalcCoordsForCurSel(), FALSE, OnHfeDownload(), OnRClick(), and Open1SelectedItem().
| BOOL CHFE_FileList::Open1SelectedItem | ( | ) | [protected] |
Definition at line 368 of file HFE_FileList.cpp.
References fsFileInfo::bFolder, FALSE, NULL, OnHfeDownload(), OnHfeOpenfolder(), pos(), and TRUE.
Referenced by OnKeyDown(), and OnLButtonDblClk().
| int CALLBACK CHFE_FileList::_SortFunc | ( | LPARAM | item1, | |
| LPARAM | item2, | |||
| LPARAM | lParam | |||
| ) | [static, protected] |
Definition at line 306 of file HFE_FileList.cpp.
References fsFileInfo::bFolder, FALSE, NULL, and fsFileInfo::strName.
Referenced by CCreateDownloadsDlg::OnInitDialog(), and UpdateList().
| void CHFE_FileList::UpdateMenu | ( | CMenu * | pMenu | ) | [protected] |
Definition at line 257 of file HFE_FileList.cpp.
References fsFileInfo::bFolder, FALSE, fsInternetFileListMgr::GetCurrentPath(), CHFEWnd::GetMgr(), ID_HFE_DISCONNECT, ID_HFE_DOWNLOAD, ID_HFE_OPENFOLDER, ID_HFE_PARENTFOLDER, ID_HFE_REFRESH, ID_HFE_STOP, fsInternetFileListMgr::IsConnected(), fsInternetFileListMgr::IsCurrentPathRoot(), fsInternetFileListMgr::IsRunning(), NULL, and pos().
Referenced by OnRClick(), and CHFEWnd::OnUpdateMenu().
| void CHFE_FileList::OnRClick | ( | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 171 of file HFE_FileList.cpp.
References ApplyLanguageToMenu(), fsODMenu::Attach(), fsODMenu::Detach(), FALSE, IDM_HFE, m_odmenu, m_rbPt, CHFEWnd::Plugin_GetMenuImages(), fsODMenu::SetImageList(), fsODMenu::SetImages(), and UpdateMenu().
Referenced by OnKeyDown().
| int CHFE_FileList::GetFileImage | ( | fsFileInfo * | file | ) | [protected] |
Definition at line 149 of file HFE_FileList.cpp.
References fsFileInfo::bAvailable, fsFileInfo::bFolder, and FALSE.
Referenced by UpdateList().
| void CHFE_FileList::OnRButtonDown | ( | UINT | nFlags, | |
| CPoint | point | |||
| ) | [protected] |
| void CHFE_FileList::OnHfeDownload | ( | ) | [protected] |
Definition at line 196 of file HFE_FileList.cpp.
References CDownloadsWnd::CreateDownload(), DownloadSelected(), fsInternetFileListMgr::GetFullUrl(), CHFEWnd::GetMgr(), IR_SUCCESS, L_BADURL, L_ERR, LS, NULL, and pos().
Referenced by CHFEWnd::OnHfeDownload(), OnKeyDown(), and Open1SelectedItem().
| void CHFE_FileList::OnHfeGo | ( | ) | [protected] |
| void CHFE_FileList::OnHfeRefresh | ( | ) | [protected] |
Definition at line 237 of file HFE_FileList.cpp.
References CHFEWnd::GetMgr(), and fsInternetFileListMgr::Refresh().
Referenced by CHFEWnd::OnHfeRefresh().
| void CHFE_FileList::OnHfeSettings | ( | ) | [protected] |
Definition at line 243 of file HFE_FileList.cpp.
References _DlgMgr, L_EXPLORERSETTINGS, LS, fsDialogsMgr::OnDoModal(), and fsDialogsMgr::OnEndDialog().
Referenced by CHFEWnd::OnHfeSettings().
| void CHFE_FileList::OnHfeStop | ( | ) | [protected] |
Definition at line 252 of file HFE_FileList.cpp.
References FALSE, CHFEWnd::GetMgr(), and fsInternetFileListMgr::Stop().
Referenced by CHFEWnd::OnHfeStop().
| void CHFE_FileList::OnHfeOpenfolder | ( | ) | [protected] |
Definition at line 325 of file HFE_FileList.cpp.
References FALSE, fsInternetFileListMgr::FolderToUrl(), CHFEWnd::GetMgr(), fsInternetFileListMgr::GetParentFolderUrl(), fsInternetFileListMgr::GoFolder(), fsInternetFileListMgr::GoParentFolder(), fsInternetFileListMgr::IsCurrentPathRoot(), CHFEWnd::m_wndUrl, pos(), and CHFE_Address::PushUrl().
Referenced by CHFEWnd::OnHfeOpenfolder(), and Open1SelectedItem().
| void CHFE_FileList::OnHfeParentfolder | ( | ) | [protected] |
Definition at line 351 of file HFE_FileList.cpp.
References CHFEWnd::GetMgr(), fsInternetFileListMgr::GoParentFolder(), and fsInternetFileListMgr::IsCurrentPathRoot().
Referenced by CHFEWnd::OnHfeParentfolder().
| void CHFE_FileList::OnLButtonDblClk | ( | UINT | nFlags, | |
| CPoint | point | |||
| ) | [protected] |
| void CHFE_FileList::OnDrawItem | ( | int | nIDCtl, | |
| LPDRAWITEMSTRUCT | lpDrawItemStruct | |||
| ) | [protected] |
| void CHFE_FileList::OnMeasureItem | ( | int | nIDCtl, | |
| LPMEASUREITEMSTRUCT | lpMeasureItemStruct | |||
| ) | [protected] |
Definition at line 698 of file HFE_FileList.cpp.
References m_odmenu, and fsODMenu::OnMeasureItem().
| void CHFE_FileList::OnHfeDisconnect | ( | ) | [protected] |
Definition at line 703 of file HFE_FileList.cpp.
References fsInternetFileListMgr::Disconnect(), and CHFEWnd::GetMgr().
Referenced by CHFEWnd::OnHfeDisconnect().
friend class CHFEWnd [friend] |
Definition at line 19 of file HFE_FileList.h.
friend class CCreateDownloadsDlg [friend] |
Definition at line 20 of file HFE_FileList.h.
fsODMenu CHFE_FileList::m_odmenu [protected] |
Definition at line 48 of file HFE_FileList.h.
Referenced by OnDrawItem(), OnMeasureItem(), and OnRClick().
fs::tree<fsFileInfo*>* CHFE_FileList::m_pList [protected] |
Definition at line 50 of file HFE_FileList.h.
Referenced by _threadBuildList(), and DownloadSelected().
BOOL CHFE_FileList::m_bDontUpdateList [protected] |
Definition at line 53 of file HFE_FileList.h.
Referenced by CHFE_FileList(), DownloadSelected(), and UpdateList().
fs::tree* CHFE_FileList::m_pDldList [protected] |
Definition at line 58 of file HFE_FileList.h.
CPoint CHFE_FileList::m_rbPt [protected] |
Definition at line 66 of file HFE_FileList.h.
Referenced by CalcCoordsForCurSel(), OnRButtonDown(), and OnRClick().
CImageList CHFE_FileList::m_images [protected] |
CImageList CHFE_FileList::m_selImages [protected] |
1.5.6