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

CTorrentTrackerDlg Class Reference

#include <DlgTorrentTracker.h>

Inheritance diagram for CTorrentTrackerDlg:

CSkinDialog List of all members.

Public Types

enum  { IDD = IDD_TORRENT_TRACKER }

Public Member Functions

 CTorrentTrackerDlg (CBTInfo *pDown, int *pStart, CWnd *pParent=NULL)

Public Attributes

CComboBox m_wndView
CButton m_wndRefresh
CListCtrl m_wndFiles
CEdit m_wndComplete
CEdit m_wndIncomplete
CString m_sName
CString m_sTracker
CString m_sComment
CString m_sCreatedBy
CString m_sCreationDate
CComboBox m_wndStartDownloads
CBTInfo m_pInfo
CHttpRequest m_pRequest
HANDLE m_hThread
int m_nComplete
int m_nIncomplete
int * m_pStartTorrentDownloads

Protected Member Functions

void OnRun ()
BOOL OnTree (CBENode *pNode)
virtual void DoDataExchange (CDataExchange *pDX)
virtual BOOL OnInitDialog ()
afx_msg void OnSelChangeTorrentView ()
afx_msg void OnTorrentRefresh ()
afx_msg void OnTimer (UINT nIDEvent)
virtual void OnOK ()
afx_msg void OnDestroy ()

Static Protected Member Functions

static UINT ThreadStart (LPVOID pParam)

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
IDD 

Definition at line 42 of file DlgTorrentTracker.h.


Constructor & Destructor Documentation

CTorrentTrackerDlg::CTorrentTrackerDlg CBTInfo pDown,
int *  pStart,
CWnd *  pParent = NULL
 

Definition at line 50 of file DlgTorrentTracker.cpp.


Member Function Documentation

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

Reimplemented from CSkinDialog.

Definition at line 66 of file DlgTorrentTracker.cpp.

References CSkinDialog::DoDataExchange(), IDC_TORRENT_COMMENTS, IDC_TORRENT_COMPLETED, IDC_TORRENT_CREATEDBY, IDC_TORRENT_CREATIONDATE, IDC_TORRENT_FILES, IDC_TORRENT_INCOMPLETE, IDC_TORRENT_NAME, IDC_TORRENT_REFRESH, IDC_TORRENT_STARTDOWNLOADS, IDC_TORRENT_TRACKER, IDC_TORRENT_VIEW, m_sComment, m_sCreatedBy, m_sCreationDate, m_sName, m_sTracker, m_wndComplete, m_wndFiles, m_wndIncomplete, m_wndRefresh, m_wndStartDownloads, and m_wndView.

void CTorrentTrackerDlg::OnDestroy  )  [protected]
 

Definition at line 145 of file DlgTorrentTracker.cpp.

References CHttpRequest::Cancel(), CHttpRequest::CloseThread(), m_hThread, m_pRequest, and NULL.

BOOL CTorrentTrackerDlg::OnInitDialog  )  [protected, virtual]
 

Reimplemented from CSkinDialog.

Definition at line 89 of file DlgTorrentTracker.cpp.

References dtAlways, dtNever, dtWhenRatio, CShellIcons::Get(), CShellIcons::GetObject(), IDC_TORRENT_REFRESH, IDR_MAINFRAME, m_hThread, CBTInfo::m_nFiles, CBTInfo::CBTFile::m_nSize, CBTInfo::m_pFiles, m_pInfo, m_pStartTorrentDownloads, CBTInfo::m_sComment, m_sComment, CBTInfo::m_sCreatedBy, m_sCreatedBy, m_sCreationDate, CBTInfo::m_sName, m_sName, CBTInfo::CBTFile::m_sPath, CBTInfo::m_sTracker, m_sTracker, CBTInfo::m_tCreationDate, m_wndFiles, m_wndRefresh, m_wndStartDownloads, NULL, CSkinDialog::OnInitDialog(), Settings, ShellIcons, Skin, CSkinDialog::SkinMe(), CSettings::SmartVolume(), theApp, and CSkin::Translate().

void CTorrentTrackerDlg::OnOK  )  [protected, virtual]
 

Definition at line 197 of file DlgTorrentTracker.cpp.

References IDS_BT_TRACK_CHANGE, LoadString(), CBTInfo::m_bValid, m_pInfo, m_pStartTorrentDownloads, m_sTracker, CBTInfo::m_sTracker, and m_wndStartDownloads.

void CTorrentTrackerDlg::OnRun  )  [protected]
 

Definition at line 228 of file DlgTorrentTracker.cpp.

References CHttpRequest::AddHeader(), CHttpRequest::Clear(), CBENode::Decode(), CHttpRequest::Execute(), CHttpRequest::GetResponseBuffer(), CHttpRequest::InflateResponse(), m_pInfo, m_pRequest, CBTInfo::m_sTracker, OnTree(), Replace(), and CHttpRequest::SetURL().

Referenced by ThreadStart().

void CTorrentTrackerDlg::OnSelChangeTorrentView  )  [protected]
 

Definition at line 156 of file DlgTorrentTracker.cpp.

void CTorrentTrackerDlg::OnTimer UINT  nIDEvent  )  [protected]
 

Definition at line 174 of file DlgTorrentTracker.cpp.

References CHttpRequest::CloseThread(), m_hThread, m_nComplete, m_nIncomplete, m_wndComplete, m_wndIncomplete, m_wndRefresh, and NULL.

void CTorrentTrackerDlg::OnTorrentRefresh  )  [protected]
 

Definition at line 160 of file DlgTorrentTracker.cpp.

References CHttpRequest::Cancel(), CHttpRequest::CloseThread(), m_hThread, m_pRequest, m_wndRefresh, NULL, and ThreadStart().

BOOL CTorrentTrackerDlg::OnTree CBENode pNode  )  [protected]
 

Definition at line 263 of file DlgTorrentTracker.cpp.

References CBENode::beDict, CBENode::beInt, CBENode::GetNode(), CBENode::IsType(), m_nComplete, m_nIncomplete, m_pInfo, and CBTInfo::m_pInfoSHA1.

Referenced by OnRun().

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

Definition at line 221 of file DlgTorrentTracker.cpp.

References OnRun().

Referenced by OnTorrentRefresh().


Member Data Documentation

HANDLE CTorrentTrackerDlg::m_hThread
 

Definition at line 60 of file DlgTorrentTracker.h.

Referenced by OnDestroy(), OnInitDialog(), OnTimer(), and OnTorrentRefresh().

int CTorrentTrackerDlg::m_nComplete
 

Definition at line 61 of file DlgTorrentTracker.h.

Referenced by OnTimer(), and OnTree().

int CTorrentTrackerDlg::m_nIncomplete
 

Definition at line 62 of file DlgTorrentTracker.h.

Referenced by OnTimer(), and OnTree().

CBTInfo CTorrentTrackerDlg::m_pInfo
 

Definition at line 58 of file DlgTorrentTracker.h.

Referenced by CDownloadsWnd::OnDownloadsTorrentInfo(), OnInitDialog(), OnOK(), OnRun(), and OnTree().

CHttpRequest CTorrentTrackerDlg::m_pRequest
 

Definition at line 59 of file DlgTorrentTracker.h.

Referenced by OnDestroy(), OnRun(), and OnTorrentRefresh().

int* CTorrentTrackerDlg::m_pStartTorrentDownloads
 

Definition at line 63 of file DlgTorrentTracker.h.

Referenced by OnInitDialog(), and OnOK().

CString CTorrentTrackerDlg::m_sComment
 

Definition at line 50 of file DlgTorrentTracker.h.

Referenced by DoDataExchange(), and OnInitDialog().

CString CTorrentTrackerDlg::m_sCreatedBy
 

Definition at line 51 of file DlgTorrentTracker.h.

Referenced by DoDataExchange(), and OnInitDialog().

CString CTorrentTrackerDlg::m_sCreationDate
 

Definition at line 52 of file DlgTorrentTracker.h.

Referenced by DoDataExchange(), and OnInitDialog().

CString CTorrentTrackerDlg::m_sName
 

Definition at line 48 of file DlgTorrentTracker.h.

Referenced by DoDataExchange(), and OnInitDialog().

CString CTorrentTrackerDlg::m_sTracker
 

Definition at line 49 of file DlgTorrentTracker.h.

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

CEdit CTorrentTrackerDlg::m_wndComplete
 

Definition at line 46 of file DlgTorrentTracker.h.

Referenced by DoDataExchange(), and OnTimer().

CListCtrl CTorrentTrackerDlg::m_wndFiles
 

Definition at line 45 of file DlgTorrentTracker.h.

Referenced by DoDataExchange(), and OnInitDialog().

CEdit CTorrentTrackerDlg::m_wndIncomplete
 

Definition at line 47 of file DlgTorrentTracker.h.

Referenced by DoDataExchange(), and OnTimer().

CButton CTorrentTrackerDlg::m_wndRefresh
 

Definition at line 44 of file DlgTorrentTracker.h.

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

CComboBox CTorrentTrackerDlg::m_wndStartDownloads
 

Definition at line 53 of file DlgTorrentTracker.h.

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

CComboBox CTorrentTrackerDlg::m_wndView
 

Definition at line 43 of file DlgTorrentTracker.h.

Referenced by DoDataExchange().


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