00001 // 00002 // DlgDownload.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 #pragma once 00023 00024 #include "DlgSkinDialog.h" 00025 00026 class CDownload; 00027 class CShareazaURL; 00028 00029 00030 class CDownloadDlg : public CSkinDialog 00031 { 00032 // Construction 00033 public: 00034 CDownloadDlg(CWnd* pParent = NULL, CDownload* pDownload = NULL); 00035 virtual ~CDownloadDlg(); 00036 00037 DECLARE_DYNAMIC(CDownloadDlg) 00038 00039 // Operations 00040 public: 00041 CShareazaURL* GetURL(); 00042 00043 // Attributes 00044 public: 00045 CDownload* m_pDownload; 00046 CShareazaURL* m_pURL; 00047 00048 // Dialog Data 00049 public: 00050 enum { IDD = IDD_DOWNLOAD }; 00051 CButton m_wndTorrentFile; 00052 CButton m_wndOK; 00053 CEdit m_wndURL; 00054 CString m_sURL; 00055 00056 // Implementation 00057 protected: 00058 DECLARE_MESSAGE_MAP() 00059 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00060 virtual BOOL OnInitDialog(); 00061 afx_msg void OnChangeURL(); 00062 virtual void OnOK(); 00063 afx_msg void OnTorrentFile(); 00064 00065 };