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

CFilePreviewDlg Class Reference

#include <DlgFilePreview.h>

Inheritance diagram for CFilePreviewDlg:

CSkinDialog List of all members.

Public Types

enum  { IDD = IDD_FILE_PREVIEW }

Public Member Functions

 CFilePreviewDlg (CDownload *pDownload, CWnd *pParent=NULL)
virtual ~CFilePreviewDlg ()
BOOL Create ()
afx_msg void OnClose ()

Static Public Member Functions

static void OnSkinChange (BOOL bSet)
static void CloseAll ()

Public Attributes

CCriticalSection m_pSection
CDownloadm_pDownload
CString m_sRemoteName
CString m_sSourceName
CString m_sTargetName
QWORD m_nRange
QWORD m_nPosition
DWORD m_nScaled
DWORD m_nOldScaled
CString m_sStatus
CString m_sOldStatus
CDWordArray m_pRanges
CButton m_wndCancel
CProgressCtrl m_wndProgress
CStatic m_wndStatus
CStatic m_wndName

Protected Member Functions

void SetDownload (CDownload *pDownload)
void OnRun ()
BOOL RunPlugin (HANDLE hFile)
BOOL LoadPlugin (LPCTSTR pszType)
BOOL RunManual (HANDLE hFile)
BOOL QueueDeleteFile (LPCTSTR pszFile)
BOOL ExecuteFile (LPCTSTR pszFile)
void UpdateProgress (BOOL bRange, QWORD nRange, BOOL bPosition, QWORD nPosition)
virtual void DoDataExchange (CDataExchange *pDX)
virtual void PostNcDestroy ()
virtual BOOL OnInitDialog ()
virtual void OnCancel ()
afx_msg void OnTimer (UINT nIDEvent)
afx_msg void OnDestroy ()

Static Protected Member Functions

static UINT ThreadStart (LPVOID pParam)

Protected Attributes

BOOL m_bThread
HANDLE m_hThread
BOOL m_bCancel
CString m_sExecute
IDownloadPreviewPluginm_pPlugin
STDMETHOD( GetSuggestedFilename )(BSTR FAR *psFile)
STDMETHOD( GetAvailableRanges )(SAFEARRAY FAR *FAR *ppArray)
STDMETHOD( SetProgressRange )(DWORD nRange)
STDMETHOD( SetProgressPosition )(DWORD nPosition)
STDMETHOD( SetProgressMessage )(BSTR sMessage)
STDMETHOD( QueueDeleteFile )(BSTR sTempFile)
STDMETHOD( ExecuteFile )(BSTR sFile)

Static Protected Attributes

static CPtrList m_pWindows

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
IDD 

Definition at line 83 of file DlgFilePreview.h.


Constructor & Destructor Documentation

CFilePreviewDlg::CFilePreviewDlg CDownload pDownload,
CWnd *  pParent = NULL
 

Definition at line 60 of file DlgFilePreview.cpp.

References NULL.

CFilePreviewDlg::~CFilePreviewDlg  )  [virtual]
 

Definition at line 74 of file DlgFilePreview.cpp.

References m_pDownload, m_pWindows, and NULL.


Member Function Documentation

void CFilePreviewDlg::CloseAll  )  [static]
 

Definition at line 189 of file DlgFilePreview.cpp.

References m_pWindows.

Referenced by CMainWnd::OnClose().

BOOL CFilePreviewDlg::Create  ) 
 

Definition at line 150 of file DlgFilePreview.cpp.

References IDD, m_pDownload, and NULL.

Referenced by CDownloadWithExtras::Preview().

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

Reimplemented from CSkinDialog.

Definition at line 80 of file DlgFilePreview.cpp.

References CSkinDialog::DoDataExchange(), IDC_FILE_NAME, IDC_PREVIEW_STATUS, IDC_PROGRESS, m_wndCancel, m_wndName, m_wndProgress, and m_wndStatus.

BOOL CFilePreviewDlg::ExecuteFile LPCTSTR  pszFile  )  [protected]
 

BOOL CFilePreviewDlg::LoadPlugin LPCTSTR  pszType  )  [protected]
 

Definition at line 386 of file DlgFilePreview.cpp.

References CPlugins::LookupCLSID(), m_pPlugin, NULL, and Plugins.

Referenced by RunPlugin().

void CFilePreviewDlg::OnCancel  )  [protected, virtual]
 

Definition at line 229 of file DlgFilePreview.cpp.

References m_bCancel, m_bThread, m_pPlugin, m_pSection, and NULL.

void CFilePreviewDlg::OnClose  ) 
 

Definition at line 278 of file DlgFilePreview.cpp.

void CFilePreviewDlg::OnDestroy  )  [protected]
 

Definition at line 283 of file DlgFilePreview.cpp.

References CDownloads::Check(), Downloads, m_bThread, m_hThread, m_pDownload, CTransfers::m_pSection, CShareazaApp::Message(), MSG_DEBUG, NULL, theApp, and Transfers.

BOOL CFilePreviewDlg::OnInitDialog  )  [protected, virtual]
 

Reimplemented from CSkinDialog.

Definition at line 201 of file DlgFilePreview.cpp.

References ID_DOWNLOADS_LAUNCH_COPY, m_bCancel, CShareazaApp::m_bRTL, m_bThread, m_hThread, m_nOldScaled, m_nPosition, m_nRange, m_nScaled, m_sOldStatus, m_sRemoteName, m_sStatus, m_wndCancel, m_wndName, m_wndProgress, m_wndStatus, NULL, CSkinDialog::OnInitDialog(), CSkinDialog::SkinMe(), theApp, and ThreadStart().

void CFilePreviewDlg::OnRun  )  [protected]
 

Definition at line 336 of file DlgFilePreview.cpp.

References m_bCancel, m_bThread, m_sSourceName, NULL, RunManual(), and RunPlugin().

Referenced by ThreadStart().

void CFilePreviewDlg::OnSkinChange BOOL  bSet  )  [static]
 

Definition at line 171 of file DlgFilePreview.cpp.

References ID_DOWNLOADS_LAUNCH_COPY, CSkinDialog::m_pSkin, m_pWindows, NULL, and CSkinDialog::SkinMe().

Referenced by CMainWnd::OnSkinChanged().

void CFilePreviewDlg::OnTimer UINT  nIDEvent  )  [protected]
 

Definition at line 244 of file DlgFilePreview.cpp.

References CFileExecutor::Execute(), m_nOldScaled, m_nScaled, m_pSection, m_sExecute, m_sOldStatus, m_sStatus, m_wndCancel, m_wndProgress, and m_wndStatus.

void CFilePreviewDlg::PostNcDestroy  )  [protected, virtual]
 

Definition at line 320 of file DlgFilePreview.cpp.

BOOL CFilePreviewDlg::QueueDeleteFile LPCTSTR  pszFile  )  [protected]
 

BOOL CFilePreviewDlg::RunManual HANDLE  hFile  )  [protected]
 

Definition at line 413 of file DlgFilePreview.cpp.

References BUFFER_SIZE, ExecuteFile, m_bCancel, m_nPosition, m_nRange, m_pRanges, m_sTargetName, CShareazaApp::Message(), MSG_DEBUG, NULL, QueueDeleteFile, theApp, and UpdateProgress().

Referenced by OnRun().

BOOL CFilePreviewDlg::RunPlugin HANDLE  hFile  )  [protected]
 

Definition at line 354 of file DlgFilePreview.cpp.

References LoadPlugin(), m_pPlugin, m_pSection, m_sTargetName, and NULL.

Referenced by OnRun().

void CFilePreviewDlg::SetDownload CDownload pDownload  )  [protected]
 

Definition at line 94 of file DlgFilePreview.cpp.

References detail::List< FragmentT, ContainerT >::begin(), detail::List< FragmentT, ContainerT >::end(), CDownloadWithFile::GetEmptyFragmentList(), detail::inverse(), m_pDownload, m_pRanges, CDownloadBase::m_sLocalName, CDownloadBase::m_sRemoteName, m_sRemoteName, m_sSourceName, m_sTargetName, and NULL.

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

Definition at line 329 of file DlgFilePreview.cpp.

References OnRun().

Referenced by OnInitDialog().

void CFilePreviewDlg::UpdateProgress BOOL  bRange,
QWORD  nRange,
BOOL  bPosition,
QWORD  nPosition
[protected]
 

Definition at line 512 of file DlgFilePreview.cpp.

References m_nOldScaled, m_nPosition, m_nRange, m_nScaled, and m_pSection.

Referenced by RunManual().


Member Data Documentation

BOOL CFilePreviewDlg::ExecuteFile [protected]
 

Definition at line 502 of file DlgFilePreview.cpp.

Referenced by RunManual().

STDMETHOD( CFilePreviewDlg::GetAvailableRanges)(SAFEARRAY FAR *FAR *ppArray) [protected]
 

STDMETHOD( CFilePreviewDlg::GetSuggestedFilename)(BSTR FAR *psFile) [protected]
 

BOOL CFilePreviewDlg::m_bCancel [protected]
 

Definition at line 57 of file DlgFilePreview.h.

Referenced by OnCancel(), OnInitDialog(), OnRun(), and RunManual().

BOOL CFilePreviewDlg::m_bThread [protected]
 

Definition at line 55 of file DlgFilePreview.h.

Referenced by OnCancel(), OnDestroy(), OnInitDialog(), and OnRun().

HANDLE CFilePreviewDlg::m_hThread [protected]
 

Definition at line 56 of file DlgFilePreview.h.

Referenced by OnDestroy(), and OnInitDialog().

DWORD CFilePreviewDlg::m_nOldScaled
 

Definition at line 50 of file DlgFilePreview.h.

Referenced by OnInitDialog(), OnTimer(), and UpdateProgress().

QWORD CFilePreviewDlg::m_nPosition
 

Definition at line 48 of file DlgFilePreview.h.

Referenced by OnInitDialog(), RunManual(), and UpdateProgress().

QWORD CFilePreviewDlg::m_nRange
 

Definition at line 47 of file DlgFilePreview.h.

Referenced by OnInitDialog(), RunManual(), and UpdateProgress().

DWORD CFilePreviewDlg::m_nScaled
 

Definition at line 49 of file DlgFilePreview.h.

Referenced by OnInitDialog(), OnTimer(), and UpdateProgress().

CDownload* CFilePreviewDlg::m_pDownload
 

Definition at line 43 of file DlgFilePreview.h.

Referenced by Create(), OnDestroy(), SetDownload(), and ~CFilePreviewDlg().

IDownloadPreviewPlugin* CFilePreviewDlg::m_pPlugin [protected]
 

Definition at line 60 of file DlgFilePreview.h.

Referenced by LoadPlugin(), OnCancel(), and RunPlugin().

CDWordArray CFilePreviewDlg::m_pRanges
 

Definition at line 53 of file DlgFilePreview.h.

Referenced by RunManual(), and SetDownload().

CCriticalSection CFilePreviewDlg::m_pSection
 

Definition at line 42 of file DlgFilePreview.h.

Referenced by OnCancel(), OnTimer(), RunPlugin(), and UpdateProgress().

CPtrList CFilePreviewDlg::m_pWindows [static, protected]
 

Definition at line 54 of file DlgFilePreview.cpp.

Referenced by CloseAll(), OnSkinChange(), and ~CFilePreviewDlg().

CString CFilePreviewDlg::m_sExecute [protected]
 

Definition at line 58 of file DlgFilePreview.h.

Referenced by OnTimer().

CString CFilePreviewDlg::m_sOldStatus
 

Definition at line 52 of file DlgFilePreview.h.

Referenced by OnInitDialog(), and OnTimer().

CString CFilePreviewDlg::m_sRemoteName
 

Definition at line 44 of file DlgFilePreview.h.

Referenced by OnInitDialog(), and SetDownload().

CString CFilePreviewDlg::m_sSourceName
 

Definition at line 45 of file DlgFilePreview.h.

Referenced by OnRun(), and SetDownload().

CString CFilePreviewDlg::m_sStatus
 

Definition at line 51 of file DlgFilePreview.h.

Referenced by OnInitDialog(), and OnTimer().

CString CFilePreviewDlg::m_sTargetName
 

Definition at line 46 of file DlgFilePreview.h.

Referenced by RunManual(), RunPlugin(), and SetDownload().

CButton CFilePreviewDlg::m_wndCancel
 

Definition at line 84 of file DlgFilePreview.h.

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

CStatic CFilePreviewDlg::m_wndName
 

Definition at line 87 of file DlgFilePreview.h.

Referenced by DoDataExchange(), and OnInitDialog().

CProgressCtrl CFilePreviewDlg::m_wndProgress
 

Definition at line 85 of file DlgFilePreview.h.

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

CStatic CFilePreviewDlg::m_wndStatus
 

Definition at line 86 of file DlgFilePreview.h.

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

BOOL CFilePreviewDlg::QueueDeleteFile [protected]
 

Definition at line 486 of file DlgFilePreview.cpp.

Referenced by RunManual().

STDMETHOD( CFilePreviewDlg::SetProgressMessage)(BSTR sMessage) [protected]
 

STDMETHOD( CFilePreviewDlg::SetProgressPosition)(DWORD nPosition) [protected]
 

STDMETHOD( CFilePreviewDlg::SetProgressRange)(DWORD nRange) [protected]
 


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