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

CDeleteFileDlg Class Reference

#include <DlgDeleteFile.h>

Inheritance diagram for CDeleteFileDlg:

CSkinDialog List of all members.

Public Types

enum  { IDD = IDD_DELETE_FILE }

Public Member Functions

 CDeleteFileDlg (CWnd *pParent=NULL)
virtual ~CDeleteFileDlg ()
void Apply (CLibraryFile *pFile)
void Create (CDownload *pDownload, BOOL bShare)
afx_msg void OnBnClickedRateValue ()

Public Attributes

BOOL m_bAll
CStatic m_wndName
CString m_sComments
CString m_sName
BOOL m_nRateValue
CButton m_wndOK
CEdit m_wndComments
CStatic m_wndPrompt
CButton m_wndAll

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
virtual BOOL OnInitDialog ()
afx_msg HBRUSH OnCtlColor (CDC *pDC, CWnd *pWnd, UINT nCtlColor)
afx_msg void OnTimer (UINT nIDEvent)
afx_msg void OnDeleteAll ()

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
IDD 

Definition at line 39 of file DlgDeleteFile.h.


Constructor & Destructor Documentation

CDeleteFileDlg::CDeleteFileDlg CWnd *  pParent = NULL  ) 
 

Definition at line 42 of file DlgDeleteFile.cpp.

CDeleteFileDlg::~CDeleteFileDlg  )  [virtual]
 

Definition at line 48 of file DlgDeleteFile.cpp.


Member Function Documentation

void CDeleteFileDlg::Apply CLibraryFile pFile  ) 
 

Definition at line 135 of file DlgDeleteFile.cpp.

References m_nRateValue, CLibraryFile::m_nRating, CLibraryFile::m_sComments, m_sComments, and CLibraryFile::SaveMetadata().

Referenced by Create(), CDownloadsWnd::OnDownloadsFileDelete(), and CLibraryFileView::OnLibraryDelete().

void CDeleteFileDlg::Create CDownload pDownload,
BOOL  bShare
 

Definition at line 159 of file DlgDeleteFile.cpp.

References Apply(), CLibraryFile::Ghost(), Library, LibraryMaps, CLibraryMaps::LookupFileByED2K(), CLibraryMaps::LookupFileBySHA1(), CLibraryMaps::LookupFileByTiger(), CLibraryFile::m_bED2K, CLibraryFile::m_bMD5, CLibraryFile::m_bSHA1, CLibraryFile::m_bShared, CLibraryFile::m_bTiger, CLibraryFile::m_nSize, CLibraryFile::m_pED2K, CLibraryFile::m_pMD5, CLibrary::m_pSection, CLibraryFile::m_pSHA1, CLibraryFile::m_pTiger, m_sComments, NULL, TS_FALSE, TS_TRUE, and CLibrary::Update().

Referenced by CDownloadsWnd::OnDownloadsClear(), and CDownloadsWnd::OnDownloadsClearIncomplete().

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

Reimplemented from CSkinDialog.

Definition at line 52 of file DlgDeleteFile.cpp.

References CSkinDialog::DoDataExchange(), IDC_DELETE_ALL, IDC_FILE_NAME, IDC_RATE_COMMENTS, IDC_RATE_PROMPT, IDC_RATE_VALUE_0, m_nRateValue, m_sComments, m_sName, m_wndAll, m_wndComments, m_wndName, m_wndOK, and m_wndPrompt.

void CDeleteFileDlg::OnBnClickedRateValue  ) 
 

Definition at line 92 of file DlgDeleteFile.cpp.

References m_nRateValue, m_sComments, m_sName, m_wndComments, and m_wndPrompt.

HBRUSH CDeleteFileDlg::OnCtlColor CDC *  pDC,
CWnd *  pWnd,
UINT  nCtlColor
[protected]
 

Reimplemented from CSkinDialog.

Definition at line 80 of file DlgDeleteFile.cpp.

References CShareazaApp::m_gdiFontBold, m_wndName, CSkinDialog::OnCtlColor(), and theApp.

void CDeleteFileDlg::OnDeleteAll  )  [protected]
 

Definition at line 129 of file DlgDeleteFile.cpp.

References m_bAll, and m_nRateValue.

BOOL CDeleteFileDlg::OnInitDialog  )  [protected, virtual]
 

Reimplemented from CSkinDialog.

Definition at line 65 of file DlgDeleteFile.cpp.

References ID_LIBRARY_DELETE, m_bAll, m_wndAll, NULL, CSkinDialog::OnInitDialog(), and CSkinDialog::SkinMe().

afx_msg void CDeleteFileDlg::OnTimer UINT  nIDEvent  )  [protected]
 


Member Data Documentation

BOOL CDeleteFileDlg::m_bAll
 

Definition at line 43 of file DlgDeleteFile.h.

Referenced by OnDeleteAll(), OnInitDialog(), and CLibraryFileView::OnLibraryDelete().

BOOL CDeleteFileDlg::m_nRateValue
 

Definition at line 47 of file DlgDeleteFile.h.

Referenced by Apply(), DoDataExchange(), OnBnClickedRateValue(), and OnDeleteAll().

CString CDeleteFileDlg::m_sComments
 

Definition at line 45 of file DlgDeleteFile.h.

Referenced by Apply(), Create(), DoDataExchange(), and OnBnClickedRateValue().

CString CDeleteFileDlg::m_sName
 

Definition at line 46 of file DlgDeleteFile.h.

Referenced by DoDataExchange(), OnBnClickedRateValue(), CDownloadsWnd::OnDownloadsClear(), CDownloadsWnd::OnDownloadsClearIncomplete(), CDownloadsWnd::OnDownloadsFileDelete(), and CLibraryFileView::OnLibraryDelete().

CButton CDeleteFileDlg::m_wndAll
 

Definition at line 51 of file DlgDeleteFile.h.

Referenced by DoDataExchange(), and OnInitDialog().

CEdit CDeleteFileDlg::m_wndComments
 

Definition at line 49 of file DlgDeleteFile.h.

Referenced by DoDataExchange(), and OnBnClickedRateValue().

CStatic CDeleteFileDlg::m_wndName
 

Definition at line 44 of file DlgDeleteFile.h.

Referenced by DoDataExchange(), and OnCtlColor().

CButton CDeleteFileDlg::m_wndOK
 

Definition at line 48 of file DlgDeleteFile.h.

Referenced by DoDataExchange().

CStatic CDeleteFileDlg::m_wndPrompt
 

Definition at line 50 of file DlgDeleteFile.h.

Referenced by DoDataExchange(), and OnBnClickedRateValue().


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