00001 // 00002 // PageSettingsRemote.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 "WndSettingsPage.h" 00025 00026 00027 class CRemoteSettingsPage : public CSettingsPage 00028 { 00029 // Construction 00030 public: 00031 CRemoteSettingsPage(); 00032 virtual ~CRemoteSettingsPage(); 00033 00034 DECLARE_DYNAMIC(CRemoteSettingsPage) 00035 enum { IDD = IDD_SETTINGS_REMOTE }; 00036 00037 // Attributes 00038 protected: 00039 BOOL m_bEnable; 00040 CStatic m_wndURL; 00041 CEdit m_wndUsername; 00042 CString m_sUsername; 00043 CEdit m_wndPassword; 00044 CString m_sPassword; 00045 protected: 00046 BOOL m_bOldEnable; 00047 CString m_sOldUsername; 00048 CString m_sOldPassword; 00049 00050 // Operations 00051 public: 00052 00053 // Implementation 00054 protected: 00055 DECLARE_MESSAGE_MAP() 00056 virtual void DoDataExchange(CDataExchange* pDX); 00057 virtual BOOL OnInitDialog(); 00058 afx_msg void OnNewPassword(); 00059 afx_msg void OnBnClickedRemoteEnable(); 00060 afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); 00061 afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message); 00062 afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 00063 virtual void OnCancel(); 00064 };