00001 // 00002 // DlgTorrentTracker.h 00003 // 00004 // Copyright (c) Shareaza Development Team, 2002-2005. 00005 // This file is part of SHAREAZA (www.shareaza.com) 00006 // 00007 // Shareaza is free software; you can redistribute it 00008 // and/or modify it under the terms of the GNU General Public License 00009 // as published by the Free Software Foundation; either version 2 of 00010 // the License, or (at your option) any later version. 00011 // 00012 // Shareaza is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU General Public License 00018 // along with Shareaza; if not, write to the Free Software 00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 // 00021 00022 #if !defined(AFX_DLGTORRENTTRACKER_H__543DC4E4_C8F6_42AC_99D5_56F58C12ECB3__INCLUDED_) 00023 #define AFX_DLGTORRENTTRACKER_H__543DC4E4_C8F6_42AC_99D5_56F58C12ECB3__INCLUDED_ 00024 00025 #pragma once 00026 00027 #include "BTInfo.h" 00028 #include "DlgSkinDialog.h" 00029 #include "HttpRequest.h" 00030 #include "Download.h" 00031 00032 00033 class CTorrentTrackerDlg : public CSkinDialog 00034 { 00035 // Construction 00036 public: 00037 CTorrentTrackerDlg(CBTInfo* pDown, int* pStart, CWnd* pParent = NULL); 00038 00039 // Dialog Data 00040 public: 00041 //{{AFX_DATA(CTorrentTrackerDlg) 00042 enum { IDD = IDD_TORRENT_TRACKER }; 00043 CComboBox m_wndView; 00044 CButton m_wndRefresh; 00045 CListCtrl m_wndFiles; 00046 CEdit m_wndComplete; 00047 CEdit m_wndIncomplete; 00048 CString m_sName; 00049 CString m_sTracker; 00050 CString m_sComment; 00051 CString m_sCreatedBy; 00052 CString m_sCreationDate; 00053 CComboBox m_wndStartDownloads; 00054 //}}AFX_DATA 00055 00056 // Attributes 00057 public: 00058 CBTInfo m_pInfo; 00059 CHttpRequest m_pRequest; 00060 HANDLE m_hThread; 00061 int m_nComplete; 00062 int m_nIncomplete; 00063 int* m_pStartTorrentDownloads; 00064 00065 // Thread 00066 protected: 00067 static UINT ThreadStart(LPVOID pParam); 00068 void OnRun(); 00069 BOOL OnTree(CBENode* pNode); 00070 00071 // Overrides 00072 public: 00073 //{{AFX_VIRTUAL(CTorrentTrackerDlg) 00074 protected: 00075 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00076 //}}AFX_VIRTUAL 00077 00078 // Implementation 00079 protected: 00080 //{{AFX_MSG(CTorrentTrackerDlg) 00081 virtual BOOL OnInitDialog(); 00082 afx_msg void OnSelChangeTorrentView(); 00083 afx_msg void OnTorrentRefresh(); 00084 afx_msg void OnTimer(UINT nIDEvent); 00085 virtual void OnOK(); 00086 afx_msg void OnDestroy(); 00087 //}}AFX_MSG 00088 00089 DECLARE_MESSAGE_MAP() 00090 00091 }; 00092 00093 //{{AFX_INSERT_LOCATION}} 00094 00095 #endif // !defined(AFX_DLGTORRENTTRACKER_H__543DC4E4_C8F6_42AC_99D5_56F58C12ECB3__INCLUDED_)