#include <ShareazaURL.h>
Public Types | |
enum | { uriNull, uriSource, uriDownload, uriSearch, uriHost, uriBrowse, uriDonkeyServer, uriDiscovery } |
Public Member Functions | |
CShareazaURL () | |
CShareazaURL (CBTInfo *pTorrent) | |
virtual | ~CShareazaURL () |
void | Clear () |
BOOL | Parse (LPCTSTR pszURL) |
CQuerySearch * | ToQuery () |
Static Public Member Functions | |
static void | Register (BOOL bOnStartup=FALSE) |
static BOOL | RegisterShellType (LPCTSTR pszProtocol, LPCTSTR pszName, LPCTSTR pszType, LPCTSTR pszApplication, LPCTSTR pszTopic, UINT nIDIcon, BOOL bOverwrite=TRUE) |
static BOOL | RegisterMagnetHandler (LPCTSTR pszID, LPCTSTR pszName, LPCTSTR pszDescription, LPCTSTR pszApplication, UINT nIDIcon) |
static BOOL | IsRegistered (LPCTSTR pszProtocol) |
static BOOL | UnregisterShellType (LPCTSTR pszProtocol) |
static void | DeleteKey (HKEY hParent, LPCTSTR pszKey) |
Public Attributes | |
int | m_nAction |
BOOL | m_bSHA1 |
SHA1 | m_pSHA1 |
BOOL | m_bTiger |
TIGEROOT | m_pTiger |
BOOL | m_bMD5 |
MD5 | m_pMD5 |
BOOL | m_bED2K |
MD4 | m_pED2K |
BOOL | m_bBTH |
SHA1 | m_pBTH |
CString | m_sName |
BOOL | m_bSize |
QWORD | m_nSize |
int | m_nPort |
CString | m_sURL |
CBTInfo * | m_pTorrent |
Protected Member Functions | |
BOOL | ParseMagnet (LPCTSTR pszURL) |
BOOL | ParseShareaza (LPCTSTR pszURL) |
BOOL | ParseShareazaHost (LPCTSTR pszURL, BOOL bBrowse=FALSE) |
BOOL | ParseShareazaFile (LPCTSTR pszURL) |
BOOL | ParseDonkey (LPCTSTR pszURL) |
BOOL | ParseDonkeyFile (LPCTSTR pszURL) |
BOOL | ParseDonkeyServer (LPCTSTR pszURL) |
BOOL | ParsePiolet (LPCTSTR pszURL) |
BOOL | ParsePioletFile (LPCTSTR pszURL) |
BOOL | ParseDiscovery (LPCTSTR pszURL, int nType) |
void | SkipSlashes (LPCTSTR &pszURL, int nAdd=0) |
void | SafeString (CString &strInput) |
|
Definition at line 61 of file ShareazaURL.h. |
|
Definition at line 46 of file ShareazaURL.cpp. References Clear(), m_pTorrent, and NULL. |
|
Definition at line 52 of file ShareazaURL.cpp. References Clear(), m_bBTH, CBTInfo::m_bDataED2K, CBTInfo::m_bDataSHA1, CBTInfo::m_bDataTiger, m_bED2K, m_bSHA1, m_bSize, m_bTiger, m_nAction, m_nSize, CBTInfo::m_nTotalSize, m_pBTH, CBTInfo::m_pDataED2K, CBTInfo::m_pDataSHA1, CBTInfo::m_pDataTiger, m_pED2K, CBTInfo::m_pInfoSHA1, m_pSHA1, m_pTiger, m_pTorrent, CBTInfo::m_sName, m_sName, NULL, and uriDownload. |
|
Definition at line 71 of file ShareazaURL.cpp. References Clear(). |
|
Definition at line 79 of file ShareazaURL.cpp. References GNUTELLA_DEFAULT_PORT, m_bBTH, m_bED2K, m_bMD5, m_bSHA1, m_bSize, m_bTiger, m_nAction, m_nPort, m_pTorrent, NULL, and uriNull. Referenced by CShareazaURL(), Parse(), and ~CShareazaURL(). |
|
Definition at line 878 of file ShareazaURL.cpp. References NULL. Referenced by UnregisterShellType(). |
|
Definition at line 834 of file ShareazaURL.cpp. References _tcsistr(), and NULL. Referenced by UnregisterShellType(). |
|
Definition at line 97 of file ShareazaURL.cpp. References Clear(), m_nAction, m_sURL, ParseDonkey(), ParseMagnet(), ParsePiolet(), ParseShareaza(), SkipSlashes(), and uriSource. Referenced by CDDEServer::Execute(), CDownloadDlg::OnChangeURL(), CDownloadDlg::OnInitDialog(), CDownloadDlg::OnOK(), and CRemote::PageNewDownload(). |
|
Definition at line 609 of file ShareazaURL.cpp. References m_nAction, m_nSize, m_sURL, and uriDiscovery. Referenced by ParseDonkey(), and ParseShareaza(). |
|
Definition at line 404 of file ShareazaURL.cpp. References CDiscoveryService::dsServerMet, ParseDiscovery(), ParseDonkeyFile(), and ParseDonkeyServer(). Referenced by Parse(). |
|
Definition at line 427 of file ShareazaURL.cpp. References CED2K::HashFromString(), CED2K::HashToString(), m_bED2K, m_bSize, m_nAction, m_nSize, m_pED2K, m_sName, m_sURL, SafeString(), uriDownload, and CConnection::URLDecode(). Referenced by ParseDonkey(). |
|
Definition at line 531 of file ShareazaURL.cpp. References m_nAction, m_nPort, m_sName, NULL, and uriDonkeyServer. Referenced by ParseDonkey(). |
|
Definition at line 146 of file ShareazaURL.cpp. References CED2K::HashFromURN(), CMD5::HashFromURN(), CTigerNode::HashFromURN(), CSHA::HashFromURN(), m_bED2K, m_bMD5, m_bSHA1, m_bSize, m_bTiger, m_nAction, m_nSize, m_pED2K, m_pMD5, m_pSHA1, m_pTiger, m_sName, m_sURL, Replace(), SafeString(), uriDownload, uriSearch, and CConnection::URLDecode(). Referenced by Parse(). |
|
Definition at line 555 of file ShareazaURL.cpp. References ParsePioletFile(). Referenced by Parse(). |
|
Definition at line 574 of file ShareazaURL.cpp. References CSHA::HashFromString(), m_bSHA1, m_bSize, m_nAction, m_nSize, m_pSHA1, m_sName, SafeString(), uriDownload, and CConnection::URLDecode(). Referenced by ParsePiolet(). |
|
Definition at line 256 of file ShareazaURL.cpp. References CDiscoveryService::dsServerMet, CDiscoveryService::dsWebCache, ParseDiscovery(), ParseShareazaFile(), and ParseShareazaHost(). Referenced by Parse(). |
|
Definition at line 323 of file ShareazaURL.cpp. References CED2K::HashFromURN(), CMD5::HashFromURN(), CTigerNode::HashFromURN(), CSHA::HashFromURN(), m_bED2K, m_bMD5, m_bSHA1, m_bTiger, m_nAction, m_pED2K, m_pMD5, m_pSHA1, m_pTiger, m_sName, m_sURL, NULL, Replace(), SafeString(), uriDownload, uriSearch, CConnection::URLDecode(), and CConnection::URLEncode(). Referenced by ParseShareaza(). |
|
Definition at line 299 of file ShareazaURL.cpp. References m_nAction, m_nPort, m_sName, uriBrowse, and uriHost. Referenced by ParseShareaza(). |
|
Definition at line 674 of file ShareazaURL.cpp. References CSettings::sWeb::ED2K, CSettings::sLive::FirstRun, CSettings::sWeb::Gnutella, IDI_COLLECTION, IDR_MAINFRAME, CSettings::Live, CSettings::sWeb::Magnet, NULL, CSettings::sWeb::Piolet, RegisterMagnetHandler(), RegisterShellType(), Settings, CSettings::sWeb::Torrent, UnregisterShellType(), and CSettings::Web. Referenced by CShareazaApp::InitInstance(), CWebSettingsPage::OnOK(), and CWizardInterfacePage::OnWizardNext(). |
|
Definition at line 909 of file ShareazaURL.cpp. References NULL. Referenced by Register(). |
|
Definition at line 740 of file ShareazaURL.cpp. References NULL. Referenced by Register(). |
|
Definition at line 630 of file ShareazaURL.cpp. Referenced by ParseDonkeyFile(), ParseMagnet(), ParsePioletFile(), and ParseShareazaFile(). |
|
Definition at line 624 of file ShareazaURL.cpp. Referenced by Parse(). |
|
Definition at line 645 of file ShareazaURL.cpp. References CQuerySearch::m_bED2K, m_bED2K, CQuerySearch::m_bSHA1, m_bSHA1, m_nAction, m_pED2K, CQuerySearch::m_pED2K, m_pSHA1, CQuerySearch::m_pSHA1, m_sName, CQuerySearch::m_sSearch, uriDownload, and uriSearch. Referenced by CURLActionDlg::OnUrlSearch(). |
|
Definition at line 868 of file ShareazaURL.cpp. References DeleteKey(), and IsRegistered(). Referenced by Register(). |
|
Definition at line 51 of file ShareazaURL.h. Referenced by CDownloads::Add(), Clear(), and CShareazaURL(). |
|
Definition at line 49 of file ShareazaURL.h. Referenced by CDownloads::Add(), Clear(), CShareazaURL(), CCollectionFile::File::Download(), CTorrentSeedDlg::OnDownload(), CURLActionDlg::OnUrlDownload(), ParseDonkeyFile(), ParseMagnet(), ParseShareazaFile(), ToQuery(), and CURLActionDlg::Update(). |
|
Definition at line 47 of file ShareazaURL.h. Referenced by CDownloads::Add(), Clear(), CCollectionFile::File::Download(), ParseMagnet(), and ParseShareazaFile(). |
|
Definition at line 43 of file ShareazaURL.h. Referenced by CDownloads::Add(), Clear(), CShareazaURL(), CCollectionFile::File::Download(), CTorrentSeedDlg::OnDownload(), CUpgradeDlg::OnOK(), CURLActionDlg::OnUrlDownload(), ParseMagnet(), ParsePioletFile(), ParseShareazaFile(), ToQuery(), and CURLActionDlg::Update(). |
|
Definition at line 55 of file ShareazaURL.h. Referenced by CDownloads::Add(), Clear(), CShareazaURL(), CCollectionFile::File::Download(), CUpgradeDlg::OnOK(), ParseDonkeyFile(), ParseMagnet(), ParsePioletFile(), and CURLActionDlg::Update(). |
|
Definition at line 45 of file ShareazaURL.h. Referenced by CDownloads::Add(), Clear(), CShareazaURL(), CCollectionFile::File::Download(), CUpgradeDlg::OnOK(), ParseMagnet(), ParseShareazaFile(), and CURLActionDlg::Update(). |
|
|
Definition at line 57 of file ShareazaURL.h. Referenced by Clear(), CURLActionDlg::OnUrlDownload(), CURLActionDlg::OnUrlSearch(), ParseDonkeyServer(), ParseShareazaHost(), and CURLActionDlg::Update(). |
|
Definition at line 56 of file ShareazaURL.h. Referenced by CDownloads::Add(), CShareazaURL(), CCollectionFile::File::Download(), CUpgradeDlg::OnOK(), CURLActionDlg::OnUrlDownload(), ParseDiscovery(), ParseDonkeyFile(), ParseMagnet(), ParsePioletFile(), and CURLActionDlg::Update(). |
|
Definition at line 52 of file ShareazaURL.h. Referenced by CDownloads::Add(), and CShareazaURL(). |
|
Definition at line 50 of file ShareazaURL.h. Referenced by CDownloads::Add(), CShareazaURL(), CCollectionFile::File::Download(), CTorrentSeedDlg::OnDownload(), CURLActionDlg::OnUrlDownload(), ParseDonkeyFile(), ParseMagnet(), ParseShareazaFile(), ToQuery(), and CURLActionDlg::Update(). |
|
Definition at line 48 of file ShareazaURL.h. Referenced by CDownloads::Add(), CCollectionFile::File::Download(), ParseMagnet(), and ParseShareazaFile(). |
|
Definition at line 44 of file ShareazaURL.h. Referenced by CDownloads::Add(), CShareazaURL(), CCollectionFile::File::Download(), CTorrentSeedDlg::OnDownload(), CUpgradeDlg::OnOK(), CURLActionDlg::OnUrlDownload(), ParseMagnet(), ParsePioletFile(), ParseShareazaFile(), ToQuery(), and CURLActionDlg::Update(). |
|
Definition at line 46 of file ShareazaURL.h. Referenced by CDownloads::Add(), CShareazaURL(), CCollectionFile::File::Download(), CUpgradeDlg::OnOK(), ParseMagnet(), ParseShareazaFile(), and CURLActionDlg::Update(). |
|
Definition at line 59 of file ShareazaURL.h. Referenced by CDownloads::Add(), Clear(), and CShareazaURL(). |
|
Definition at line 54 of file ShareazaURL.h. Referenced by CDownloads::Add(), CShareazaURL(), CCollectionFile::File::Download(), CUpgradeDlg::OnOK(), CURLActionDlg::OnUrlDownload(), CURLActionDlg::OnUrlSearch(), ParseDonkeyFile(), ParseDonkeyServer(), ParseMagnet(), ParsePioletFile(), ParseShareazaFile(), ParseShareazaHost(), ToQuery(), and CURLActionDlg::Update(). |
|
Definition at line 58 of file ShareazaURL.h. Referenced by CDownloads::Add(), CDownloadsWnd::OnDownloadsUrl(), CUpgradeDlg::OnOK(), CURLActionDlg::OnUrlDownload(), Parse(), ParseDiscovery(), ParseDonkeyFile(), ParseMagnet(), ParseShareazaFile(), and CURLActionDlg::Update(). |