#include <DlgFileCopy.h>
Inheritance diagram for CFileCopyDlg:
Public Types | |
enum | { IDD = IDD_FILE_COPY } |
Public Member Functions | |
CFileCopyDlg (CWnd *pParent=NULL, BOOL bMove=FALSE) | |
void | AddFile (CLibraryFile *pFile) |
Public Attributes | |
CStatic | m_wndMove |
CStatic | m_wndCopy |
CStatic | m_wndFileName |
CProgressCtrl | m_wndFileProg |
CButton | m_wndCancel |
CButton | m_wndOK |
CProgressCtrl | m_wndProgress |
CStatic | m_wndPlaceholder |
CString | m_sTarget |
Protected Member Functions | |
void | StartOperation () |
void | StopOperation () |
void | OnRun () |
BOOL | ProcessFile (CString &strName, CString &strPath, BOOL bMetaData) |
BOOL | CheckTarget (LPCTSTR pszTarget) |
BOOL | ProcessMove (LPCTSTR pszSource, LPCTSTR pszTarget) |
BOOL | ProcessCopy (LPCTSTR pszSource, LPCTSTR pszTarget) |
virtual void | DoDataExchange (CDataExchange *pDX) |
virtual BOOL | OnNotify (WPARAM wParam, LPARAM lParam, LRESULT *pResult) |
virtual BOOL | OnInitDialog () |
virtual void | OnOK () |
afx_msg void | OnTimer (UINT nIDEvent) |
virtual void | OnCancel () |
Static Protected Member Functions | |
static UINT | ThreadStart (LPVOID pParam) |
static DWORD WINAPI | CopyCallback (LARGE_INTEGER TotalFileSize, LARGE_INTEGER TotalBytesTransferred, LARGE_INTEGER StreamSize, LARGE_INTEGER StreamBytesTransferred, DWORD dwStreamNumber, DWORD dwCallbackReason, HANDLE hSourceFile, HANDLE hDestinationFile, LPVOID lpData) |
Protected Attributes | |
BOOL | m_bMove |
CPtrList | m_pFiles |
CLibraryFolderCtrl | m_wndTree |
DWORD | m_nCookie |
HANDLE | m_hThread |
BOOL | m_bThread |
BOOL | m_bCancel |
int | m_nFileProg |
|
Definition at line 42 of file DlgFileCopy.h. |
|
Definition at line 50 of file DlgFileCopy.cpp. |
|
Definition at line 76 of file DlgFileCopy.cpp. References CLibraryFile::m_nIndex, and m_pFiles. Referenced by CLibraryTreeView::DropObjects(), CLibraryFileView::OnLibraryCopy(), and CLibraryFileView::OnLibraryMove(). |
|
Definition at line 407 of file DlgFileCopy.cpp. References CShareazaApp::GetErrorString(), IDS_LIBRARY_DELETE_FAIL, IDS_LIBRARY_TARGET_EXISTS, LoadString(), m_bThread, and theApp. Referenced by ProcessCopy(), and ProcessMove(). |
|
Definition at line 500 of file DlgFileCopy.cpp. References m_bThread, m_nFileProg, and m_wndFileProg. Referenced by ProcessCopy(). |
|
Reimplemented from CSkinDialog. Definition at line 58 of file DlgFileCopy.cpp. References CSkinDialog::DoDataExchange(), IDC_FILE_NAME, IDC_MESSAGE_COPY, IDC_MESSAGE_MOVE, IDC_PLACEHOLDER, IDC_PROGRESS, IDC_PROGRESS_FILE, m_wndCancel, m_wndCopy, m_wndFileName, m_wndFileProg, m_wndMove, m_wndOK, m_wndPlaceholder, and m_wndProgress. |
|
Definition at line 188 of file DlgFileCopy.cpp. References m_hThread, m_wndFileName, and StopOperation(). |
|
|
Definition at line 159 of file DlgFileCopy.cpp. |
|
Definition at line 172 of file DlgFileCopy.cpp. References CLibraryFolderCtrl::GetNextSelectedFolder(), CLibraryFolderCtrl::GetSelectedFolderIterator(), Library, CLibrary::m_pSection, CLibraryFolder::m_sPath, m_sTarget, m_wndTree, NULL, and StartOperation(). |
|
Definition at line 265 of file DlgFileCopy.cpp. References CLibraryFile::IsAvailable(), Library, CLibrary::LookupFile(), CLibraryFile::m_bMetadataAuto, m_bThread, m_pFiles, CLibraryFile::m_pFolder, CLibraryFile::m_pMetadata, CLibrary::m_pSection, CLibraryFile::m_sName, CLibraryFolder::m_sPath, m_wndFileName, m_wndProgress, NULL, and ProcessFile(). Referenced by ThreadStart(). |
|
Definition at line 130 of file DlgFileCopy.cpp. References CLibraryFolderCtrl::GetSelectedFolderIterator(), Library, m_bThread, m_hThread, m_nCookie, CLibrary::m_nUpdateCookie, CLibrary::m_pSection, m_wndOK, m_wndTree, NULL, StopOperation(), and CLibraryFolderCtrl::Update(). |
|
Definition at line 467 of file DlgFileCopy.cpp. References CheckTarget(), CopyCallback(), m_bCancel, m_bThread, m_nFileProg, m_wndFileProg, and NULL. Referenced by ProcessFile(), and ProcessMove(). |
|
Definition at line 332 of file DlgFileCopy.cpp. References IDS_LIBRARY_MOVE_FAIL, LoadString(), m_bMove, m_sTarget, m_wndFileName, NULL, ProcessCopy(), and ProcessMove(). Referenced by OnRun(). |
|
Definition at line 440 of file DlgFileCopy.cpp. References CheckTarget(), CUploads::OnRename(), ProcessCopy(), and Uploads. Referenced by ProcessFile(). |
|
Definition at line 205 of file DlgFileCopy.cpp. References m_bCancel, m_bThread, m_hThread, m_pFiles, m_wndOK, m_wndProgress, m_wndTree, and ThreadStart(). Referenced by OnOK(). |
|
Definition at line 221 of file DlgFileCopy.cpp. References IDS_GENERAL_CLOSE, LoadString(), m_bThread, m_hThread, m_wndCancel, m_wndProgress, CShareazaApp::Message(), MSG_DEBUG, NULL, and theApp. Referenced by OnCancel(), and OnTimer(). |
|
Definition at line 258 of file DlgFileCopy.cpp. References OnRun(). Referenced by StartOperation(). |
|
Definition at line 64 of file DlgFileCopy.h. Referenced by ProcessCopy(), and StartOperation(). |
|
Definition at line 57 of file DlgFileCopy.h. Referenced by OnInitDialog(), and ProcessFile(). |
|
Definition at line 63 of file DlgFileCopy.h. Referenced by CheckTarget(), CopyCallback(), OnInitDialog(), OnRun(), OnTimer(), ProcessCopy(), StartOperation(), and StopOperation(). |
|
Definition at line 62 of file DlgFileCopy.h. Referenced by OnCancel(), OnInitDialog(), OnTimer(), StartOperation(), and StopOperation(). |
|
Definition at line 60 of file DlgFileCopy.h. Referenced by OnInitDialog(), and OnTimer(). |
|
Definition at line 65 of file DlgFileCopy.h. Referenced by CopyCallback(), and ProcessCopy(). |
|
Definition at line 58 of file DlgFileCopy.h. Referenced by AddFile(), OnInitDialog(), OnRun(), and StartOperation(). |
|
Definition at line 55 of file DlgFileCopy.h. Referenced by CLibraryTreeView::DropObjects(), OnInitDialog(), OnOK(), and ProcessFile(). |
|
Definition at line 47 of file DlgFileCopy.h. Referenced by DoDataExchange(), and StopOperation(). |
|
Definition at line 44 of file DlgFileCopy.h. Referenced by DoDataExchange(), and OnInitDialog(). |
|
Definition at line 45 of file DlgFileCopy.h. Referenced by DoDataExchange(), OnCancel(), OnRun(), and ProcessFile(). |
|
Definition at line 46 of file DlgFileCopy.h. Referenced by CopyCallback(), DoDataExchange(), OnInitDialog(), and ProcessCopy(). |
|
Definition at line 43 of file DlgFileCopy.h. Referenced by DoDataExchange(), and OnInitDialog(). |
|
Definition at line 48 of file DlgFileCopy.h. Referenced by DoDataExchange(), OnTimer(), and StartOperation(). |
|
Definition at line 50 of file DlgFileCopy.h. Referenced by DoDataExchange(), and OnInitDialog(). |
|
Definition at line 49 of file DlgFileCopy.h. Referenced by DoDataExchange(), OnInitDialog(), OnRun(), StartOperation(), and StopOperation(). |
|
Definition at line 59 of file DlgFileCopy.h. Referenced by OnInitDialog(), OnOK(), OnTimer(), and StartOperation(). |