#include <Remote.h>
Inheritance diagram for CRemote:
Public Member Functions | |
CRemote (CConnection *pConnection) | |
~CRemote () | |
virtual BOOL | OnRun () |
virtual void | OnDropped (BOOL bError) |
virtual BOOL | OnRead () |
virtual BOOL | OnHeadersComplete () |
Protected Member Functions | |
CString | GetKey (LPCTSTR pszName) |
BOOL | CheckCookie () |
void | Prepare (LPCTSTR pszPrefix=NULL) |
void | Add (LPCTSTR pszKey, LPCTSTR pszValue) |
void | Output (LPCTSTR pszName) |
void | PageSwitch (CString &strPath) |
void | PageLogin () |
void | PageHome () |
void | PageSearch () |
void | PageNewSearch () |
void | PageDownloads () |
void | PageNewDownload () |
void | PageUploads () |
void | PageNetwork () |
void | PageBanner (CString &strPath) |
void | PageImage (CString &strPath) |
void | PageSearchHeaderColumn (int nColumnID, LPCTSTR pszCaption, LPCTSTR pszAlign) |
void | PageSearchRowColumn (int nColumnID, CMatchFile *pFile, LPCTSTR pszValue, LPCTSTR pszAlign=_T("center")) |
void | PageNetworkNetwork (int nID, BOOL *pbConnect, LPCTSTR pszName) |
Protected Attributes | |
CString | m_sHandshake |
CString | m_sRedirect |
CString | m_sHeader |
CString | m_sResponse |
CBuffer | m_pResponse |
CMapStringToString | m_pKeys |
Static Protected Attributes | |
static CList< int > | m_pCookies |
|
Definition at line 71 of file Remote.cpp. References CTransfer::AttachTo(), CConnection::m_mInput, CConnection::m_mOutput, NULL, OnRead(), and TCPBandwidthMeter::pLimit. |
|
Definition at line 78 of file Remote.cpp. |
|
Definition at line 285 of file Remote.cpp. References m_pKeys. Referenced by PageDownloads(), PageLogin(), PageNetwork(), PageNetworkNetwork(), PageSearch(), PageSearchHeaderColumn(), PageSearchRowColumn(), and PageUploads(). |
|
Definition at line 236 of file Remote.cpp. References m_pCookies, CTransfer::m_pHeaderName, CTransfer::m_pHeaderValue, m_sRedirect, and NULL. Referenced by PageDownloads(), PageHome(), PageImage(), PageNetwork(), PageNewDownload(), PageNewSearch(), PageSearch(), and PageUploads(). |
|
Definition at line 211 of file Remote.cpp. References m_sHandshake, and CConnection::URLDecode(). Referenced by PageDownloads(), PageLogin(), PageNetwork(), PageNetworkNetwork(), PageNewDownload(), PageNewSearch(), PageSearch(), and PageUploads(). |
|
Reimplemented from CConnection. Definition at line 102 of file Remote.cpp. References CTransfer::Close(). |
|
Reimplemented from CConnection. Definition at line 137 of file Remote.cpp. References CBuffer::AddBuffer(), CBuffer::Clear(), CTransfer::ClearHeaders(), CTransfer::Close(), CBuffer::m_nLength, CConnection::m_pOutput, m_pResponse, m_sHandshake, m_sHeader, m_sRedirect, m_sResponse, NULL, CConnection::OnWrite(), Output(), PageSwitch(), Prepare(), and CBuffer::Print(). |
|
Reimplemented from CConnection. Definition at line 111 of file Remote.cpp. References CTransfer::Close(), CSettings::sRemote::Enable, CBuffer::m_nLength, CConnection::m_pInput, m_sHandshake, CConnection::OnRead(), CConnection::ReadHeaders(), CBuffer::ReadLine(), CSettings::Remote, and Settings. Referenced by CRemote(). |
|
Reimplemented from CConnection. Definition at line 85 of file Remote.cpp. References CTransfer::Close(), CNetwork::IsConnected(), CConnection::m_mOutput, Network, and TCPBandwidthMeter::tLast. |
|
Definition at line 296 of file Remote.cpp. References CSettings::General, m_pKeys, m_sResponse, NULL, CSettings::sGeneral::Path, and Settings. Referenced by OnHeadersComplete(), PageDownloads(), PageHome(), PageLogin(), PageNetwork(), PageNetworkNetwork(), PageSearch(), PageSearchHeaderColumn(), PageSearchRowColumn(), PageUploads(), and Prepare(). |
|
Definition at line 1413 of file Remote.cpp. References CBuffer::EnsureBuffer(), IDR_HOME_HEADER_1, IDR_HOME_HEADER_2, CBuffer::m_nLength, CBuffer::m_pBuffer, m_pResponse, m_sHeader, and NULL. Referenced by PageSwitch(). |
|
|
Definition at line 469 of file Remote.cpp. References CheckCookie(), Output(), and Prepare(). Referenced by PageSwitch(). |
|
Definition at line 1439 of file Remote.cpp. References CheckCookie(), CBuffer::EnsureBuffer(), CSettings::General, CBuffer::m_nLength, CBuffer::m_pBuffer, m_pResponse, CSettings::sGeneral::Path, and Settings. Referenced by PageSwitch(). |
|
Definition at line 436 of file Remote.cpp. References Add(), CSHA::Add(), CSHA::Finish(), CSHA::GetHashString(), GetKey(), m_pCookies, m_sHeader, m_sRedirect, Output(), CSettings::sRemote::Password, Prepare(), CSettings::Remote, Settings, and CSettings::sRemote::Username. Referenced by PageSwitch(). |
|
Definition at line 1205 of file Remote.cpp. References Add(), CheckCookie(), CSettings::eDonkey, CSettings::seDonkey::EnableToday, CSettings::sGnutella1::EnableToday, CSettings::sGnutella2::EnableToday, CNeighboursBase::Get(), GetKey(), CSettings::Gnutella1, CSettings::Gnutella2, CNetwork::m_pSection, Neighbours, Network, Output(), PageNetworkNetwork(), Prepare(), PROTOCOL_ED2K, PROTOCOL_G1, PROTOCOL_G2, and Settings. Referenced by PageSwitch(). |
|
|
Definition at line 1081 of file Remote.cpp. References CDownloads::Add(), CheckCookie(), Downloads, GetKey(), m_sRedirect, and CShareazaURL::Parse(). Referenced by PageSwitch(). |
|
Definition at line 751 of file Remote.cpp. References CheckCookie(), CSchemaCache::Get(), GetKey(), CSettings::sSearch::LastSchemaURI, CQuerySearch::m_pSchema, CShareazaApp::m_pSection, m_sRedirect, CQuerySearch::m_sSearch, CSchema::m_sURI, NULL, SchemaCache, CSettings::Search, Settings, theApp, and WM_OPENSEARCH. Referenced by PageSwitch(). |
|
|
Definition at line 724 of file Remote.cpp. References Add(), Output(), and Prepare(). Referenced by PageSearch(). |
|
Definition at line 735 of file Remote.cpp. References Add(), CMatchFile::GetURN(), Output(), and Prepare(). Referenced by PageSearch(). |
|
Definition at line 385 of file Remote.cpp. References m_sRedirect, PageBanner(), PageDownloads(), PageHome(), PageImage(), PageLogin(), PageNetwork(), PageNewDownload(), PageNewSearch(), PageSearch(), and PageUploads(). Referenced by OnHeadersComplete(). |
|
|
Definition at line 264 of file Remote.cpp. References m_pKeys, m_sResponse, NULL, and Output(). Referenced by OnHeadersComplete(), PageDownloads(), PageHome(), PageLogin(), PageNetwork(), PageNetworkNetwork(), PageSearch(), PageSearchHeaderColumn(), PageSearchRowColumn(), and PageUploads(). |
|
Definition at line 66 of file Remote.cpp. Referenced by CheckCookie(), and PageLogin(). |
|
|
|
Definition at line 43 of file Remote.h. Referenced by OnHeadersComplete(), PageBanner(), and PageImage(). |
|
Definition at line 39 of file Remote.h. Referenced by GetKey(), OnHeadersComplete(), and OnRead(). |
|
Definition at line 41 of file Remote.h. Referenced by OnHeadersComplete(), PageBanner(), and PageLogin(). |
|
Definition at line 40 of file Remote.h. Referenced by CheckCookie(), OnHeadersComplete(), PageLogin(), PageNewDownload(), PageNewSearch(), PageSearch(), and PageSwitch(). |
|
Definition at line 42 of file Remote.h. Referenced by OnHeadersComplete(), Output(), PageSearch(), and Prepare(). |