Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CFileCopyDlg Class Reference

#include <DlgFileCopy.h>

Inheritance diagram for CFileCopyDlg:

CSkinDialog List of all members.

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

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
IDD 

Definition at line 42 of file DlgFileCopy.h.


Constructor & Destructor Documentation

CFileCopyDlg::CFileCopyDlg CWnd *  pParent = NULL,
BOOL  bMove = FALSE
 

Definition at line 50 of file DlgFileCopy.cpp.


Member Function Documentation

void CFileCopyDlg::AddFile CLibraryFile pFile  ) 
 

Definition at line 76 of file DlgFileCopy.cpp.

References CLibraryFile::m_nIndex, and m_pFiles.

Referenced by CLibraryTreeView::DropObjects(), CLibraryFileView::OnLibraryCopy(), and CLibraryFileView::OnLibraryMove().

BOOL CFileCopyDlg::CheckTarget LPCTSTR  pszTarget  )  [protected]
 

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().

DWORD WINAPI CFileCopyDlg::CopyCallback LARGE_INTEGER  TotalFileSize,
LARGE_INTEGER  TotalBytesTransferred,
LARGE_INTEGER  StreamSize,
LARGE_INTEGER  StreamBytesTransferred,
DWORD  dwStreamNumber,
DWORD  dwCallbackReason,
HANDLE  hSourceFile,
HANDLE  hDestinationFile,
LPVOID  lpData
[static, protected]
 

Definition at line 500 of file DlgFileCopy.cpp.

References m_bThread, m_nFileProg, and m_wndFileProg.

Referenced by ProcessCopy().

void CFileCopyDlg::DoDataExchange CDataExchange *  pDX  )  [protected, virtual]
 

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.

void CFileCopyDlg::OnCancel  )  [protected, virtual]
 

Definition at line 188 of file DlgFileCopy.cpp.

References m_hThread, m_wndFileName, and StopOperation().

BOOL CFileCopyDlg::OnInitDialog  )  [protected, virtual]
 

Reimplemented from CSkinDialog.

Definition at line 81 of file DlgFileCopy.cpp.

References CLibraryFolderCtrl::Create(), CLibraryFolders::GetFolder(), IDC_FOLDERS, IDR_LIBRARYFRAME, Library, LibraryFolders, m_bMove, CShareazaApp::m_bRTL, m_bThread, m_hThread, m_nCookie, CLibrary::m_nUpdateCookie, m_pFiles, CLibrary::m_pSection, m_sTarget, m_wndCopy, m_wndFileProg, m_wndMove, m_wndPlaceholder, m_wndProgress, m_wndTree, NULL, CSkinDialog::OnInitDialog(), CSkinDialog::SelectCaption(), CLibraryFolderCtrl::SelectFolder(), CLibraryFolderCtrl::SetMultiSelect(), CSkinDialog::SkinMe(), theApp, and CLibraryFolderCtrl::Update().

BOOL CFileCopyDlg::OnNotify WPARAM  wParam,
LPARAM  lParam,
LRESULT *  pResult
[protected, virtual]
 

Definition at line 159 of file DlgFileCopy.cpp.

void CFileCopyDlg::OnOK  )  [protected, virtual]
 

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().

void CFileCopyDlg::OnRun  )  [protected]
 

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().

void CFileCopyDlg::OnTimer UINT  nIDEvent  )  [protected]
 

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().

BOOL CFileCopyDlg::ProcessCopy LPCTSTR  pszSource,
LPCTSTR  pszTarget
[protected]
 

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().

BOOL CFileCopyDlg::ProcessFile CString &  strName,
CString &  strPath,
BOOL  bMetaData
[protected]
 

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().

BOOL CFileCopyDlg::ProcessMove LPCTSTR  pszSource,
LPCTSTR  pszTarget
[protected]
 

Definition at line 440 of file DlgFileCopy.cpp.

References CheckTarget(), CUploads::OnRename(), ProcessCopy(), and Uploads.

Referenced by ProcessFile().

void CFileCopyDlg::StartOperation  )  [protected]
 

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().

void CFileCopyDlg::StopOperation  )  [protected]
 

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().

UINT CFileCopyDlg::ThreadStart LPVOID  pParam  )  [static, protected]
 

Definition at line 258 of file DlgFileCopy.cpp.

References OnRun().

Referenced by StartOperation().


Member Data Documentation

BOOL CFileCopyDlg::m_bCancel [protected]
 

Definition at line 64 of file DlgFileCopy.h.

Referenced by ProcessCopy(), and StartOperation().

BOOL CFileCopyDlg::m_bMove [protected]
 

Definition at line 57 of file DlgFileCopy.h.

Referenced by OnInitDialog(), and ProcessFile().

BOOL CFileCopyDlg::m_bThread [protected]
 

Definition at line 63 of file DlgFileCopy.h.

Referenced by CheckTarget(), CopyCallback(), OnInitDialog(), OnRun(), OnTimer(), ProcessCopy(), StartOperation(), and StopOperation().

HANDLE CFileCopyDlg::m_hThread [protected]
 

Definition at line 62 of file DlgFileCopy.h.

Referenced by OnCancel(), OnInitDialog(), OnTimer(), StartOperation(), and StopOperation().

DWORD CFileCopyDlg::m_nCookie [protected]
 

Definition at line 60 of file DlgFileCopy.h.

Referenced by OnInitDialog(), and OnTimer().

int CFileCopyDlg::m_nFileProg [protected]
 

Definition at line 65 of file DlgFileCopy.h.

Referenced by CopyCallback(), and ProcessCopy().

CPtrList CFileCopyDlg::m_pFiles [protected]
 

Definition at line 58 of file DlgFileCopy.h.

Referenced by AddFile(), OnInitDialog(), OnRun(), and StartOperation().

CString CFileCopyDlg::m_sTarget
 

Definition at line 55 of file DlgFileCopy.h.

Referenced by CLibraryTreeView::DropObjects(), OnInitDialog(), OnOK(), and ProcessFile().

CButton CFileCopyDlg::m_wndCancel
 

Definition at line 47 of file DlgFileCopy.h.

Referenced by DoDataExchange(), and StopOperation().

CStatic CFileCopyDlg::m_wndCopy
 

Definition at line 44 of file DlgFileCopy.h.

Referenced by DoDataExchange(), and OnInitDialog().

CStatic CFileCopyDlg::m_wndFileName
 

Definition at line 45 of file DlgFileCopy.h.

Referenced by DoDataExchange(), OnCancel(), OnRun(), and ProcessFile().

CProgressCtrl CFileCopyDlg::m_wndFileProg
 

Definition at line 46 of file DlgFileCopy.h.

Referenced by CopyCallback(), DoDataExchange(), OnInitDialog(), and ProcessCopy().

CStatic CFileCopyDlg::m_wndMove
 

Definition at line 43 of file DlgFileCopy.h.

Referenced by DoDataExchange(), and OnInitDialog().

CButton CFileCopyDlg::m_wndOK
 

Definition at line 48 of file DlgFileCopy.h.

Referenced by DoDataExchange(), OnTimer(), and StartOperation().

CStatic CFileCopyDlg::m_wndPlaceholder
 

Definition at line 50 of file DlgFileCopy.h.

Referenced by DoDataExchange(), and OnInitDialog().

CProgressCtrl CFileCopyDlg::m_wndProgress
 

Definition at line 49 of file DlgFileCopy.h.

Referenced by DoDataExchange(), OnInitDialog(), OnRun(), StartOperation(), and StopOperation().

CLibraryFolderCtrl CFileCopyDlg::m_wndTree [protected]
 

Definition at line 59 of file DlgFileCopy.h.

Referenced by OnInitDialog(), OnOK(), OnTimer(), and StartOperation().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:06 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2