|
MythTV master
|
#include <libmythupnp/ssdpcache.h>
Public Member Functions | |
| ~SSDPCache () override | |
| void | Lock () |
| void | Unlock () |
| SSDPCacheEntriesMap::Iterator | Begin () |
| SSDPCacheEntriesMap::Iterator | End () |
| int | Count () |
| void | Clear () |
| void | Add (const QString &sURI, const QString &sUSN, const QString &sLocation, std::chrono::seconds sExpiresInSecs) |
| void | Remove (const QString &sURI, const QString &sUSN) |
| int | RemoveStale () |
| void | Dump (void) |
| Prints this device to the console in a human readable form. More... | |
| QTextStream & | OutputXML (QTextStream &os, uint *pnDevCount=nullptr, uint *pnEntryCount=nullptr) const |
| Outputs the XML for this device. More... | |
| SSDPCacheEntries * | Find (const QString &sURI) |
| Finds the SSDPCacheEntries in the cache, returns nullptr when absent. More... | |
| DeviceLocation * | Find (const QString &sURI, const QString &sUSN) |
| Finds the Device in the cache, returns nullptr when absent. More... | |
Public Member Functions inherited from MythObservable | |
| MythObservable () | |
| virtual | ~MythObservable () |
| void | addListener (QObject *listener) |
| Add a listener to the observable. More... | |
| void | removeListener (QObject *listener) |
| Remove a listener to the observable. More... | |
| void | dispatch (const MythEvent &event) |
| Dispatch an event to all listeners. More... | |
| bool | hasListeners (void) |
Static Public Member Functions | |
| static SSDPCache * | Instance () |
Protected Member Functions | |
| void | NotifyAdd (const QString &sURI, const QString &sUSN, const QString &sLocation) |
| void | NotifyRemove (const QString &sURI, const QString &sUSN) |
Protected Attributes | |
| QMutex | m_mutex |
| SSDPCacheEntriesMap | m_cache |
Protected Attributes inherited from MythObservable | |
| QMutex * | m_lock {nullptr} |
| QSet< QObject * > | m_listeners |
Private Member Functions | |
| SSDPCache () | |
Private Attributes | |
| QStringList | m_badUrlList |
| QStringList | m_goodUrlList |
Static Private Attributes | |
| static SSDPCache * | g_pSSDPCache = nullptr |
Definition at line 86 of file ssdpcache.h.
|
private |
Definition at line 295 of file ssdpcache.cpp.
Referenced by Instance().
|
override |
Definition at line 312 of file ssdpcache.cpp.
| void SSDPCache::Add | ( | const QString & | sURI, |
| const QString & | sUSN, | ||
| const QString & | sLocation, | ||
| std::chrono::seconds | sExpiresInSecs | ||
| ) |
Definition at line 372 of file ssdpcache.cpp.
Referenced by ProcessNotify(), and ProcessSearchResponse().
|
inline |
Definition at line 125 of file ssdpcache.h.
| void SSDPCache::Clear | ( | void | ) |
Definition at line 326 of file ssdpcache.cpp.
Referenced by ~SSDPCache().
|
inline |
Definition at line 128 of file ssdpcache.h.
| void SSDPCache::Dump | ( | void | ) |
Prints this device to the console in a human readable form.
Definition at line 625 of file ssdpcache.cpp.
Referenced by SSDPCacheTask::Execute().
|
inline |
Definition at line 126 of file ssdpcache.h.
| SSDPCacheEntries * SSDPCache::Find | ( | const QString & | sURI | ) |
Finds the SSDPCacheEntries in the cache, returns nullptr when absent.
Definition at line 341 of file ssdpcache.cpp.
Referenced by BackendSelection::customEvent(), MythContext::Impl::DefaultUPnP(), SatIP::doUPNPsearch(), VBox::doUPNPSearch(), HttpStatus::FillStatusXML(), V2Status::FillStatusXML(), Find(), SatIP::findServers(), BackendSelection::Init(), and MythContext::Impl::UPnPautoconf().
| DeviceLocation * SSDPCache::Find | ( | const QString & | sURI, |
| const QString & | sUSN | ||
| ) |
Finds the Device in the cache, returns nullptr when absent.
Definition at line 354 of file ssdpcache.cpp.
|
static |
Definition at line 285 of file ssdpcache.cpp.
Referenced by UPNPScanner::CheckStatus(), BackendSelection::customEvent(), MythContext::Impl::DefaultUPnP(), SatIP::doUPNPsearch(), VBox::doUPNPSearch(), SSDPCacheTask::Execute(), HttpStatus::FillStatusXML(), V2Status::FillStatusXML(), SatIP::findServers(), SSDPExtension::GetDeviceList(), BackendSelection::Init(), BackendSelection::Load(), ProcessNotify(), ProcessSearchResponse(), UPNPScanner::Start(), UPNPScanner::Stop(), MythContext::Impl::UPnPautoconf(), and BackendSelection::~BackendSelection().
|
inline |
Definition at line 122 of file ssdpcache.h.
Referenced by Remove(), and RemoveStale().
|
protected |
Definition at line 558 of file ssdpcache.cpp.
Referenced by Add().
|
protected |
Definition at line 577 of file ssdpcache.cpp.
Referenced by Remove().
| QTextStream & SSDPCache::OutputXML | ( | QTextStream & | os, |
| uint * | pnDevCount = nullptr, |
||
| uint * | pnEntryCount = nullptr |
||
| ) | const |
Outputs the XML for this device.
Definition at line 590 of file ssdpcache.cpp.
Referenced by SSDPExtension::GetDeviceList().
| void SSDPCache::Remove | ( | const QString & | sURI, |
| const QString & | sUSN | ||
| ) |
Definition at line 457 of file ssdpcache.cpp.
Referenced by ProcessNotify().
| int SSDPCache::RemoveStale | ( | ) |
Definition at line 499 of file ssdpcache.cpp.
Referenced by SSDPCacheTask::Execute().
|
inline |
Definition at line 123 of file ssdpcache.h.
Referenced by Remove(), and RemoveStale().
|
staticprivate |
Definition at line 93 of file ssdpcache.h.
Referenced by Instance().
|
private |
Definition at line 94 of file ssdpcache.h.
Referenced by Add().
|
protected |
Definition at line 100 of file ssdpcache.h.
Referenced by Add(), Clear(), Dump(), Find(), OutputXML(), Remove(), and RemoveStale().
|
private |
Definition at line 95 of file ssdpcache.h.
Referenced by Add().
|
mutableprotected |
Definition at line 99 of file ssdpcache.h.
Referenced by Add(), Clear(), Dump(), Find(), and OutputXML().