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

CIEProtocol Class Reference

#include <IEProtocol.h>

List of all members.

Public Member Functions

 CIEProtocol ()
virtual ~CIEProtocol ()
BOOL Create ()
void Close ()
BOOL SetCollection (SHA1 *pSHA1, LPCTSTR pszPath, CString *psIndex=NULL)

Static Public Attributes

static CLSID clsidProtocol = { 0x18d11ed9, 0x1264, 0x48a1, { 0x9e, 0x14, 0x20, 0xf2, 0xc6, 0x33, 0x24, 0x2b } }
static LPCWSTR pszProtocols [] = { L"p2p-col", L"telnet", NULL }

Protected Member Functions

CIEProtocolRequestCreateRequest ()
void OnRequestConstruct (CIEProtocolRequest *pRequest)
void OnRequestDestruct (CIEProtocolRequest *pRequest)
HRESULT OnRequest (LPCTSTR pszURL, CBuffer *pBuffer, CString *psMimeType, BOOL bParseOnly)
HRESULT OnRequestRAZACOL (LPCTSTR pszURL, CBuffer *pBuffer, CString *psMimeType, BOOL bParseOnly)

Protected Attributes

CCriticalSection m_pSection
CComPtr< IInternetSession > m_pSession
CEvent * m_pShutdown
LONG m_nRequests
SHA1 m_pCollSHA1
CZIPFilem_pCollZIP
STDMETHOD( CreateInstance )(IUnknown *pUnkOuter, REFIID riid, void **ppvObject)
STDMETHOD( LockServer )(BOOL fLock)

Friends

class CIEProtocolRequest


Constructor & Destructor Documentation

CIEProtocol::CIEProtocol  ) 
 

Definition at line 61 of file IEProtocol.cpp.

References m_nRequests, m_pCollZIP, m_pShutdown, and NULL.

CIEProtocol::~CIEProtocol  )  [virtual]
 

Definition at line 69 of file IEProtocol.cpp.

References Close().


Member Function Documentation

void CIEProtocol::Close  ) 
 

Definition at line 98 of file IEProtocol.cpp.

References m_nRequests, m_pSection, m_pSession, m_pShutdown, NULL, pszProtocols, and SetCollection().

Referenced by CShareazaApp::ExitInstance(), and ~CIEProtocol().

BOOL CIEProtocol::Create  ) 
 

Definition at line 77 of file IEProtocol.cpp.

References clsidProtocol, m_pSection, m_pSession, NULL, and pszProtocols.

Referenced by CShareazaApp::InitInstance().

CIEProtocolRequest * CIEProtocol::CreateRequest  )  [protected]
 

Definition at line 133 of file IEProtocol.cpp.

References CIEProtocolRequest, and m_pSection.

HRESULT CIEProtocol::OnRequest LPCTSTR  pszURL,
CBuffer pBuffer,
CString *  psMimeType,
BOOL  bParseOnly
[protected]
 

Definition at line 396 of file IEProtocol.cpp.

References m_pSection, and OnRequestRAZACOL().

Referenced by CIEProtocolRequest::OnStart().

void CIEProtocol::OnRequestConstruct CIEProtocolRequest pRequest  )  [protected]
 

Definition at line 139 of file IEProtocol.cpp.

References m_nRequests, and m_pSection.

void CIEProtocol::OnRequestDestruct CIEProtocolRequest pRequest  )  [protected]
 

Definition at line 145 of file IEProtocol.cpp.

References m_nRequests, m_pSection, m_pShutdown, and NULL.

Referenced by CIEProtocolRequest::~CIEProtocolRequest().

HRESULT CIEProtocol::OnRequestRAZACOL LPCTSTR  pszURL,
CBuffer pBuffer,
CString *  psMimeType,
BOOL  bParseOnly
[protected]
 

Definition at line 413 of file IEProtocol.cpp.

References CBuffer::AddBuffer(), CZIPFile::File::Decompress(), CZIPFile::GetFile(), CSHA::HashFromString(), CZIPFile::IsOpen(), CShellIcons::Lookup(), m_pCollSHA1, m_pCollZIP, NULL, ShellIcons, and CConnection::URLDecode().

Referenced by OnRequest().

BOOL CIEProtocol::SetCollection SHA1 pSHA1,
LPCTSTR  pszPath,
CString *  psIndex = NULL
 

Definition at line 445 of file IEProtocol.cpp.

References CZIPFile::GetFile(), m_pCollSHA1, m_pCollZIP, m_pSection, NULL, and CZIPFile::Open().

Referenced by Close(), CLibraryCollectionView::OnDestroy(), and CLibraryCollectionView::ShowCollection().


Friends And Related Function Documentation

friend class CIEProtocolRequest [friend]
 

Definition at line 75 of file IEProtocol.h.

Referenced by CreateRequest().


Member Data Documentation

CLSID CIEProtocol::clsidProtocol = { 0x18d11ed9, 0x1264, 0x48a1, { 0x9e, 0x14, 0x20, 0xf2, 0xc6, 0x33, 0x24, 0x2b } } [static]
 

Definition at line 52 of file IEProtocol.cpp.

Referenced by Create().

STDMETHOD( CIEProtocol::CreateInstance)(IUnknown *pUnkOuter, REFIID riid, void **ppvObject) [protected]
 

STDMETHOD( CIEProtocol::LockServer)(BOOL fLock) [protected]
 

LONG CIEProtocol::m_nRequests [protected]
 

Definition at line 50 of file IEProtocol.h.

Referenced by CIEProtocol(), Close(), OnRequestConstruct(), and OnRequestDestruct().

SHA1 CIEProtocol::m_pCollSHA1 [protected]
 

Definition at line 52 of file IEProtocol.h.

Referenced by OnRequestRAZACOL(), and SetCollection().

CZIPFile* CIEProtocol::m_pCollZIP [protected]
 

Definition at line 53 of file IEProtocol.h.

Referenced by CIEProtocol(), OnRequestRAZACOL(), and SetCollection().

CCriticalSection CIEProtocol::m_pSection [protected]
 

Definition at line 47 of file IEProtocol.h.

Referenced by Close(), Create(), CreateRequest(), OnRequest(), OnRequestConstruct(), OnRequestDestruct(), and SetCollection().

CComPtr<IInternetSession> CIEProtocol::m_pSession [protected]
 

Definition at line 48 of file IEProtocol.h.

Referenced by Close(), and Create().

CEvent* CIEProtocol::m_pShutdown [protected]
 

Definition at line 49 of file IEProtocol.h.

Referenced by CIEProtocol(), Close(), and OnRequestDestruct().

LPCWSTR CIEProtocol::pszProtocols = { L"p2p-col", L"telnet", NULL } [static]
 

Definition at line 53 of file IEProtocol.cpp.

Referenced by Close(), and Create().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:08 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2