#include <ssdpcache.h>
Public Member Functions | |
| SSDPCacheEntries () | |
| void | Clear (void) |
| Clears the cache of all entries. | |
| uint | Count (void) const |
| void | Insert (const QString &sUSN, DeviceLocation *pEntry) |
| Inserts a device location into the cache. | |
| void | Remove (const QString &sUSN) |
| Removes a specific entry from the cache. | |
| uint | RemoveStale (const TaskTime &ttNow) |
| Removes expired cache entries, returning the number removed. | |
| DeviceLocation * | Find (const QString &sUSN) |
| Finds the Device in the cache, returns NULL when absent. | |
| DeviceLocation * | GetFirst (void) |
| Returns random entry in cache, returns NULL when list is empty. | |
| void | GetEntryMap (EntryMap &) |
| Returns a copy of the EntryMap. | |
| QTextStream & | OutputXML (QTextStream &os, uint *pnEntryCount=NULL) const |
| Outputs the XML for this service. | |
| void | Dump (uint &nEntryCount) const |
| Prints this service to the console in human readable form. | |
Static Public Member Functions | |
| static QString | GetNormalizedUSN (const QString &sUSN) |
| Returns a normalized USN, so that capitalization of the uuid is not an issue. | |
Static Public Attributes | |
| static int | g_nAllocated = 0 |
Protected Member Functions | |
| virtual | ~SSDPCacheEntries () |
| Destructor protected to enforce Release method usage. | |
Protected Attributes | |
| QMutex | m_mutex |
| EntryMap | m_mapEntries |
Definition at line 31 of file ssdpcache.h.
| SSDPCacheEntries::~SSDPCacheEntries | ( | ) | [protected, virtual] |
Destructor protected to enforce Release method usage.
Definition at line 35 of file ssdpcache.cpp.
| SSDPCacheEntries::SSDPCacheEntries | ( | ) |
Definition at line 30 of file ssdpcache.cpp.
| void SSDPCacheEntries::Clear | ( | void | ) |
Clears the cache of all entries.
Definition at line 42 of file ssdpcache.cpp.
Referenced by ~SSDPCacheEntries().
| uint SSDPCacheEntries::Count | ( | void | ) | const [inline] |
Definition at line 41 of file ssdpcache.h.
Referenced by SSDPCache::Remove(), SSDPCache::RemoveStale(), and MythContextPrivate::UPnPautoconf().
| void SSDPCacheEntries::Insert | ( | const QString & | sUSN, | |
| DeviceLocation * | pEntry | |||
| ) |
Inserts a device location into the cache.
Definition at line 97 of file ssdpcache.cpp.
Referenced by SSDPCache::Add().
| void SSDPCacheEntries::Remove | ( | const QString & | sUSN | ) |
Removes a specific entry from the cache.
Definition at line 120 of file ssdpcache.cpp.
Referenced by SSDPCache::Remove().
Removes expired cache entries, returning the number removed.
Definition at line 143 of file ssdpcache.cpp.
Referenced by SSDPCache::RemoveStale().
| DeviceLocation * SSDPCacheEntries::Find | ( | const QString & | sUSN | ) |
Finds the Device in the cache, returns NULL when absent.
Definition at line 58 of file ssdpcache.cpp.
Referenced by SSDPCache::Add(), and SSDPCache::Find().
| DeviceLocation * SSDPCacheEntries::GetFirst | ( | void | ) |
Returns random entry in cache, returns NULL when list is empty.
Definition at line 72 of file ssdpcache.cpp.
Referenced by MythContextPrivate::UPnPautoconf().
| void SSDPCacheEntries::GetEntryMap | ( | EntryMap & | map | ) |
Returns a copy of the EntryMap.
Definition at line 84 of file ssdpcache.cpp.
Referenced by HttpStatus::FillStatusXML(), BackendSelection::Init(), and MythFrontendStatus::ProcessRequest().
| QTextStream & SSDPCacheEntries::OutputXML | ( | QTextStream & | os, | |
| uint * | pnEntryCount = NULL | |||
| ) | const |
Outputs the XML for this service.
Definition at line 176 of file ssdpcache.cpp.
| void SSDPCacheEntries::Dump | ( | uint & | nEntryCount | ) | const |
Prints this service to the console in human readable form.
Definition at line 201 of file ssdpcache.cpp.
| QString SSDPCacheEntries::GetNormalizedUSN | ( | const QString & | sUSN | ) | [static] |
Returns a normalized USN, so that capitalization of the uuid is not an issue.
Definition at line 223 of file ssdpcache.cpp.
int SSDPCacheEntries::g_nAllocated = 0 [static] |
Definition at line 59 of file ssdpcache.h.
Referenced by SSDPCache::Dump(), SSDPExtension::GetDeviceList(), SSDPCacheEntries(), and ~SSDPCacheEntries().
QMutex SSDPCacheEntries::m_mutex [mutable, protected] |
Reimplemented from RefCounted.
Definition at line 62 of file ssdpcache.h.
Referenced by Clear(), Dump(), Find(), GetEntryMap(), GetFirst(), Insert(), OutputXML(), Remove(), and RemoveStale().
EntryMap SSDPCacheEntries::m_mapEntries [protected] |
Definition at line 63 of file ssdpcache.h.
Referenced by Clear(), Dump(), Find(), GetEntryMap(), GetFirst(), Insert(), OutputXML(), Remove(), and RemoveStale().
1.6.3