00001 // 00002 // DlgBitziDownload.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_DLGBITZIDOWNLOAD_H__14C3A521_9E56_42DE_A449_75BAD986DFFC__INCLUDED_) 00023 #define AFX_DLGBITZIDOWNLOAD_H__14C3A521_9E56_42DE_A449_75BAD986DFFC__INCLUDED_ 00024 00025 #pragma once 00026 00027 #include "DlgSkinDialog.h" 00028 #include "BitziDownloader.h" 00029 00030 00031 class CBitziDownloadDlg : public CSkinDialog 00032 { 00033 // Construction 00034 public: 00035 CBitziDownloadDlg(CWnd* pParent = NULL); 00036 00037 // Attributes 00038 protected: 00039 CBitziDownloader m_pDownloader; 00040 DWORD m_nFailures; 00041 00042 // Operations 00043 public: 00044 void AddFile(DWORD nIndex); 00045 void OnNextFile(DWORD nIndex); 00046 void OnRequesting(DWORD nIndex, LPCTSTR pszName); 00047 void OnSuccess(DWORD nIndex); 00048 void OnFailure(DWORD nIndex, LPCTSTR pszMessage); 00049 void OnFinishedFile(DWORD nIndex); 00050 00051 // Dialog Data 00052 public: 00053 //{{AFX_DATA(CBitziDownloadDlg) 00054 enum { IDD = IDD_BITZI_DOWNLOAD }; 00055 CStatic m_wndWeb; 00056 CListCtrl m_wndFiles; 00057 CButton m_wndCancel; 00058 CProgressCtrl m_wndProgress; 00059 //}}AFX_DATA 00060 00061 // Overrides 00062 public: 00063 //{{AFX_VIRTUAL(CBitziDownloadDlg) 00064 protected: 00065 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00066 //}}AFX_VIRTUAL 00067 00068 // Implementation 00069 protected: 00070 //{{AFX_MSG(CBitziDownloadDlg) 00071 virtual BOOL OnInitDialog(); 00072 virtual void OnCancel(); 00073 afx_msg void OnTimer(UINT nIDEvent); 00074 afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message); 00075 afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 00076 afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); 00077 //}}AFX_MSG 00078 DECLARE_MESSAGE_MAP() 00079 }; 00080 00081 //{{AFX_INSERT_LOCATION}} 00082 00083 #endif // !defined(AFX_DLGBITZIDOWNLOAD_H__14C3A521_9E56_42DE_A449_75BAD986DFFC__INCLUDED_)