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

SourceURL.h

Go to the documentation of this file.
00001 //
00002 // SourceURL.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_HTTPURL_H__E247E342_B4B7_4E3C_84E4_B69BBFF0BC2E__INCLUDED_)
00023 #define AFX_HTTPURL_H__E247E342_B4B7_4E3C_84E4_B69BBFF0BC2E__INCLUDED_
00024 
00025 #pragma once
00026 
00027 
00028 class CSourceURL  
00029 {
00030 // Construction
00031 public:
00032         CSourceURL(LPCTSTR pszURL = NULL);
00033         
00034 // Attributes
00035 public:
00036         CString         m_sURL;
00037         PROTOCOLID      m_nProtocol;
00038 public:
00039         CString         m_sAddress;
00040         IN_ADDR         m_pAddress;
00041         WORD            m_nPort;
00042         IN_ADDR         m_pServerAddress;
00043         WORD            m_nServerPort;
00044         CString         m_sPath;
00045 public:
00046         BOOL            m_bSHA1;
00047         SHA1            m_pSHA1;
00048         BOOL            m_bED2K;
00049         MD4                     m_pED2K;
00050         BOOL            m_bBTH;
00051         SHA1            m_pBTH;
00052         BOOL            m_bBTC;
00053         SHA1            m_pBTC;
00054         BOOL            m_bSize;
00055         QWORD           m_nSize;
00056         CString         m_sLogin;
00057         CString         m_sPassword;
00058         
00059 // Operations
00060 public:
00061         void    Clear();
00062         BOOL    Parse(LPCTSTR pszURL, BOOL bResolve = TRUE);
00063         BOOL    ParseHTTP(LPCTSTR pszURL, BOOL bResolve = TRUE);
00064         BOOL    ParseFTP(LPCTSTR pszURL, BOOL bResolve = TRUE);
00065         BOOL    ParseED2KFTP(LPCTSTR pszURL, BOOL bResolve = TRUE);
00066         BOOL    ParseBTC(LPCTSTR pszURL, BOOL bResolve = TRUE);
00067 };
00068 
00069 #endif // !defined(AFX_HTTPURL_H__E247E342_B4B7_4E3C_84E4_B69BBFF0BC2E__INCLUDED_)

Generated on Thu Dec 15 10:39:50 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2