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

CURLActionDlg Class Reference

#include <DlgURLAction.h>

Inheritance diagram for CURLActionDlg:

CSkinDialog List of all members.

Public Types

enum  { IDD = IDD_URL_ACTION }

Public Member Functions

 CURLActionDlg (CWnd *pParent=NULL, CShareazaURL *pURL=NULL, BOOL bMultiple=FALSE)
virtual ~CURLActionDlg ()
void AddURL (CShareazaURL *pURL)
virtual BOOL PreTranslateMessage (MSG *pMsg)

Public Attributes

CStatic m_wndMessage4
CStatic m_wndMessage3
CButton m_wndNewWindow
CButton m_wndCancel
CStatic m_wndMessage2
CStatic m_wndMessage1
CButton m_wndSearch
CButton m_wndDownload
CString m_sNameTitle
CString m_sNameValue
CString m_sHashTitle
CString m_sHashValue
BOOL m_bNewWindow
BOOL m_bAlwaysOpen

Protected Member Functions

void Update ()
virtual void DoDataExchange (CDataExchange *pDX)
virtual BOOL OnInitDialog ()
afx_msg void OnUrlDownload ()
afx_msg void OnUrlSearch ()

Protected Attributes

CPtrList m_pURLs
BOOL m_bMultiple

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
IDD 

Definition at line 42 of file DlgURLAction.h.


Constructor & Destructor Documentation

CURLActionDlg::CURLActionDlg CWnd *  pParent = NULL,
CShareazaURL pURL = NULL,
BOOL  bMultiple = FALSE
 

Definition at line 63 of file DlgURLAction.cpp.

CURLActionDlg::~CURLActionDlg  )  [virtual]
 

Definition at line 78 of file DlgURLAction.cpp.

References m_pURLs.


Member Function Documentation

void CURLActionDlg::AddURL CShareazaURL pURL  ) 
 

Definition at line 145 of file DlgURLAction.cpp.

References CShareazaURL::m_nAction, m_pURLs, and Update().

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

Reimplemented from CSkinDialog.

Definition at line 86 of file DlgURLAction.cpp.

References CSkinDialog::DoDataExchange(), IDC_ALWAYS_OPEN, IDC_MESSAGE_1, IDC_MESSAGE_2, IDC_MESSAGE_3, IDC_MESSAGE_4, IDC_NEW_WINDOW, IDC_URL_DOWNLOAD, IDC_URL_NAME_TITLE, IDC_URL_NAME_VALUE, IDC_URL_SEARCH, IDC_URL_URN_TITLE, IDC_URL_URN_VALUE, m_bAlwaysOpen, m_bNewWindow, m_sHashTitle, m_sHashValue, m_sNameTitle, m_sNameValue, m_wndCancel, m_wndDownload, m_wndMessage1, m_wndMessage2, m_wndMessage3, m_wndMessage4, m_wndNewWindow, and m_wndSearch.

BOOL CURLActionDlg::OnInitDialog  )  [protected, virtual]
 

Reimplemented from CSkinDialog.

Definition at line 110 of file DlgURLAction.cpp.

References CSettings::sGeneral::AlwaysOpenURLs, CSettings::Downloads, CSettings::General, IDC_URL_DOWNLOAD, IDC_URL_SEARCH, IDR_MAINFRAME, m_bAlwaysOpen, m_bMultiple, m_bNewWindow, m_wndDownload, CSkinDialog::OnInitDialog(), Settings, CSettings::sDownloads::ShowMonitorURLs, CSkinDialog::SkinMe(), and Update().

void CURLActionDlg::OnUrlDownload  )  [protected]
 

Definition at line 342 of file DlgURLAction.cpp.

References CDiscoveryServices::Add(), CDownloads::Add(), CSettings::sGeneral::AlwaysOpenURLs, CDownloads::Check(), CNetwork::Connect(), CNetwork::ConnectTo(), DiscoveryServices, Downloads, CSettings::Downloads, CSettings::General, IDS_URL_ALREADY_HAVE, CNetwork::IsWellConnected(), Library, LibraryMaps, CSkin::LoadString(), CLibraryMaps::LookupFileByED2K(), CLibraryMaps::LookupFileBySHA1(), m_bAlwaysOpen, CShareazaURL::m_bED2K, m_bMultiple, m_bNewWindow, CShareazaURL::m_bSHA1, CShareazaURL::m_nAction, CShareazaURL::m_nPort, CShareazaURL::m_nSize, CShareazaURL::m_pED2K, CTransfers::m_pSection, CLibrary::m_pSection, CShareazaURL::m_pSHA1, m_pURLs, CMainWnd::m_pWindows, CShareazaURL::m_sName, CLibraryFile::m_sName, CShareazaURL::m_sURL, Network, NULL, CWindowManager::Open(), PROTOCOL_ED2K, CNetwork::Resolve(), Settings, CDownloadWithExtras::ShowMonitor(), CSettings::sDownloads::ShowMonitorURLs, Skin, Transfers, CShareazaURL::uriBrowse, CShareazaURL::uriDiscovery, CShareazaURL::uriDonkeyServer, CShareazaURL::uriDownload, CShareazaURL::uriHost, and CShareazaURL::uriSource.

void CURLActionDlg::OnUrlSearch  )  [protected]
 

Definition at line 424 of file DlgURLAction.cpp.

References CSettings::sGeneral::AlwaysOpenURLs, CNetwork::Connect(), CNetwork::ConnectTo(), CSettings::General, CNetwork::IsWellConnected(), m_bAlwaysOpen, CShareazaURL::m_nAction, CShareazaURL::m_nPort, m_pURLs, CShareazaURL::m_sName, Network, CNetwork::Resolve(), Settings, CShareazaURL::ToQuery(), CShareazaURL::uriBrowse, CShareazaURL::uriDownload, CShareazaURL::uriHost, and CShareazaURL::uriSearch.

BOOL CURLActionDlg::PreTranslateMessage MSG *  pMsg  )  [virtual]
 

Definition at line 326 of file DlgURLAction.cpp.

References IDC_URL_DOWNLOAD, IDC_URL_SEARCH, m_wndCancel, m_wndDownload, and m_wndSearch.

void CURLActionDlg::Update  )  [protected]
 

Definition at line 162 of file DlgURLAction.cpp.

References CDiscoveryService::dsServerMet, CDiscoveryService::dsWebCache, CED2K::HashToString(), CTigerNode::HashToString(), CSHA::HashToString(), IDS_URL_ADD, IDS_URL_BROWSE, IDS_URL_CONNECT, IDS_URL_FILENAME, IDS_URL_HOST, IDS_URL_PORT, IDS_URL_TYPE, IDS_URL_UNSPECIFIED, IDS_URL_URL, LoadString(), CShareazaURL::m_bED2K, CShareazaURL::m_bSHA1, CShareazaURL::m_bSize, CShareazaURL::m_bTiger, CShareazaURL::m_nAction, CShareazaURL::m_nPort, CShareazaURL::m_nSize, CShareazaURL::m_pED2K, CShareazaURL::m_pSHA1, CShareazaURL::m_pTiger, m_pURLs, m_sHashTitle, m_sHashValue, CShareazaURL::m_sName, m_sNameTitle, m_sNameValue, CShareazaURL::m_sURL, m_wndDownload, m_wndMessage1, m_wndMessage2, m_wndMessage3, m_wndMessage4, m_wndNewWindow, m_wndSearch, Settings, CSettings::SmartVolume(), CShareazaURL::uriBrowse, CShareazaURL::uriDiscovery, CShareazaURL::uriDonkeyServer, CShareazaURL::uriDownload, CShareazaURL::uriHost, CShareazaURL::uriSearch, and CShareazaURL::uriSource.

Referenced by AddURL(), and OnInitDialog().


Member Data Documentation

BOOL CURLActionDlg::m_bAlwaysOpen
 

Definition at line 56 of file DlgURLAction.h.

Referenced by DoDataExchange(), OnInitDialog(), OnUrlDownload(), and OnUrlSearch().

BOOL CURLActionDlg::m_bMultiple [protected]
 

Definition at line 68 of file DlgURLAction.h.

Referenced by OnInitDialog(), and OnUrlDownload().

BOOL CURLActionDlg::m_bNewWindow
 

Definition at line 55 of file DlgURLAction.h.

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

CPtrList CURLActionDlg::m_pURLs [protected]
 

Definition at line 67 of file DlgURLAction.h.

Referenced by AddURL(), OnUrlDownload(), OnUrlSearch(), Update(), and ~CURLActionDlg().

CString CURLActionDlg::m_sHashTitle
 

Definition at line 53 of file DlgURLAction.h.

Referenced by DoDataExchange(), and Update().

CString CURLActionDlg::m_sHashValue
 

Definition at line 54 of file DlgURLAction.h.

Referenced by DoDataExchange(), and Update().

CString CURLActionDlg::m_sNameTitle
 

Definition at line 51 of file DlgURLAction.h.

Referenced by DoDataExchange(), and Update().

CString CURLActionDlg::m_sNameValue
 

Definition at line 52 of file DlgURLAction.h.

Referenced by DoDataExchange(), and Update().

CButton CURLActionDlg::m_wndCancel
 

Definition at line 46 of file DlgURLAction.h.

Referenced by DoDataExchange(), and PreTranslateMessage().

CButton CURLActionDlg::m_wndDownload
 

Definition at line 50 of file DlgURLAction.h.

Referenced by DoDataExchange(), OnInitDialog(), PreTranslateMessage(), and Update().

CStatic CURLActionDlg::m_wndMessage1
 

Definition at line 48 of file DlgURLAction.h.

Referenced by DoDataExchange(), and Update().

CStatic CURLActionDlg::m_wndMessage2
 

Definition at line 47 of file DlgURLAction.h.

Referenced by DoDataExchange(), and Update().

CStatic CURLActionDlg::m_wndMessage3
 

Definition at line 44 of file DlgURLAction.h.

Referenced by DoDataExchange(), and Update().

CStatic CURLActionDlg::m_wndMessage4
 

Definition at line 43 of file DlgURLAction.h.

Referenced by DoDataExchange(), and Update().

CButton CURLActionDlg::m_wndNewWindow
 

Definition at line 45 of file DlgURLAction.h.

Referenced by DoDataExchange(), and Update().

CButton CURLActionDlg::m_wndSearch
 

Definition at line 49 of file DlgURLAction.h.

Referenced by DoDataExchange(), PreTranslateMessage(), and Update().


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