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... | |
![]() | |
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 |
![]() | |
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 81 of file ssdpcache.h.
|
private |
Definition at line 247 of file ssdpcache.cpp.
Referenced by Instance().
|
override |
Definition at line 264 of file ssdpcache.cpp.
|
protected |
Definition at line 510 of file ssdpcache.cpp.
Referenced by Add().
|
protected |
Definition at line 529 of file ssdpcache.cpp.
Referenced by Remove().
|
static |
Definition at line 237 of file ssdpcache.cpp.
Referenced by SSDP::AddListener(), SSDPCacheTask::Execute(), SSDP::Find(), SSDPExtension::GetDeviceList(), BackendSelection::Init(), SSDP::ProcessNotify(), SSDP::ProcessSearchResponse(), and SSDP::RemoveListener().
|
inline |
Definition at line 117 of file ssdpcache.h.
Referenced by Remove(), and RemoveStale().
|
inline |
Definition at line 118 of file ssdpcache.h.
Referenced by Remove(), and RemoveStale().
|
inline |
Definition at line 120 of file ssdpcache.h.
|
inline |
Definition at line 121 of file ssdpcache.h.
|
inline |
Definition at line 123 of file ssdpcache.h.
void SSDPCache::Clear | ( | ) |
Definition at line 278 of file ssdpcache.cpp.
Referenced by ~SSDPCache().
void SSDPCache::Add | ( | const QString & | sURI, |
const QString & | sUSN, | ||
const QString & | sLocation, | ||
std::chrono::seconds | sExpiresInSecs | ||
) |
Definition at line 324 of file ssdpcache.cpp.
Referenced by SSDP::ProcessNotify(), and SSDP::ProcessSearchResponse().
void SSDPCache::Remove | ( | const QString & | sURI, |
const QString & | sUSN | ||
) |
Definition at line 409 of file ssdpcache.cpp.
Referenced by SSDP::ProcessNotify().
int SSDPCache::RemoveStale | ( | ) |
Definition at line 451 of file ssdpcache.cpp.
Referenced by SSDPCacheTask::Execute().
void SSDPCache::Dump | ( | void | ) |
Prints this device to the console in a human readable form.
Definition at line 577 of file ssdpcache.cpp.
Referenced by SSDPCacheTask::Execute().
QTextStream & SSDPCache::OutputXML | ( | QTextStream & | os, |
uint * | pnDevCount = nullptr , |
||
uint * | pnEntryCount = nullptr |
||
) | const |
Outputs the XML for this device.
Definition at line 542 of file ssdpcache.cpp.
Referenced by SSDPExtension::GetDeviceList().
SSDPCacheEntries * SSDPCache::Find | ( | const QString & | sURI | ) |
Finds the SSDPCacheEntries in the cache, returns nullptr when absent.
Definition at line 293 of file ssdpcache.cpp.
Referenced by SSDP::Find(), Find(), and BackendSelection::Init().
DeviceLocation * SSDPCache::Find | ( | const QString & | sURI, |
const QString & | sUSN | ||
) |
Finds the Device in the cache, returns nullptr when absent.
Definition at line 306 of file ssdpcache.cpp.
|
staticprivate |
Definition at line 88 of file ssdpcache.h.
Referenced by Instance().
|
private |
Definition at line 89 of file ssdpcache.h.
Referenced by Add().
|
private |
Definition at line 90 of file ssdpcache.h.
Referenced by Add().
|
mutableprotected |
Definition at line 94 of file ssdpcache.h.
Referenced by Add(), Clear(), Dump(), Find(), and OutputXML().
|
protected |
Definition at line 95 of file ssdpcache.h.
Referenced by Add(), Clear(), Dump(), Find(), OutputXML(), Remove(), and RemoveStale().