|
MythTV
0.26-pre
|
#include <mythhttppool.h>
Public Member Functions | |
| MythHttpPool (uint max_connections=20) | |
| ~MythHttpPool () | |
| void | AddUrlRequest (const QUrl &url, MythHttpListener *listener) |
| void | RemoveUrlRequest (const QUrl &url, MythHttpListener *listener) |
| void | RemoveListener (MythHttpListener *listener) |
| void | Update (QHttp::Error error, const QString &error_str, const QUrl &url, uint http_status_id, const QString &http_status_str, const QByteArray &data) |
| void | Done (const QString &host, MythHttpHandler *handler) |
Static Public Member Functions | |
| static MythHttpPool * | GetSingleton () |
Private Attributes | |
| QMutex | m_lock |
| uint | m_maxConnections |
| deque< HttpRequest > | m_httpQueue |
| set< MythHttpListener * > | m_listeners |
| UrlToListener | m_urlToListener |
| HostToHandler | m_hostToHandler |
Static Private Attributes | |
| static MythHttpPool * | singleton |
Definition at line 44 of file mythhttppool.h.
| MythHttpPool::MythHttpPool | ( | uint | max_connections = 20 | ) |
Definition at line 14 of file mythhttppool.cpp.
Referenced by GetSingleton().
Definition at line 19 of file mythhttppool.cpp.
| void MythHttpPool::AddUrlRequest | ( | const QUrl & | url, |
| MythHttpListener * | listener | ||
| ) |
Definition at line 30 of file mythhttppool.cpp.
Referenced by NewsSite::retrieve(), and IconData::UpdateSourceIcons().
| void MythHttpPool::RemoveUrlRequest | ( | const QUrl & | url, |
| MythHttpListener * | listener | ||
| ) |
Definition at line 81 of file mythhttppool.cpp.
Referenced by NewsSite::stop().
| void MythHttpPool::RemoveListener | ( | MythHttpListener * | listener | ) |
Definition at line 89 of file mythhttppool.cpp.
Referenced by NewsSite::deleteLater(), IconData::~IconData(), and NewsSite::~NewsSite().
| MythHttpPool * MythHttpPool::GetSingleton | ( | ) | [static] |
Definition at line 157 of file mythhttppool.cpp.
Referenced by NewsSite::deleteLater(), NewsSite::retrieve(), NewsSite::stop(), IconData::UpdateSourceIcons(), IconData::~IconData(), and NewsSite::~NewsSite().
| void MythHttpPool::Update | ( | QHttp::Error | error, |
| const QString & | error_str, | ||
| const QUrl & | url, | ||
| uint | http_status_id, | ||
| const QString & | http_status_str, | ||
| const QByteArray & | data | ||
| ) |
Definition at line 100 of file mythhttppool.cpp.
Referenced by MythHttpHandler::RequestFinished().
| void MythHttpPool::Done | ( | const QString & | host, |
| MythHttpHandler * | handler | ||
| ) |
Definition at line 123 of file mythhttppool.cpp.
Referenced by MythHttpHandler::Done().
QMutex MythHttpPool::m_lock [mutable, private] |
Definition at line 66 of file mythhttppool.h.
Referenced by AddUrlRequest(), Done(), RemoveListener(), RemoveUrlRequest(), and Update().
uint MythHttpPool::m_maxConnections [private] |
Definition at line 67 of file mythhttppool.h.
Referenced by AddUrlRequest().
deque<HttpRequest> MythHttpPool::m_httpQueue [private] |
Definition at line 68 of file mythhttppool.h.
Referenced by AddUrlRequest(), and Done().
set<MythHttpListener*> MythHttpPool::m_listeners [private] |
Definition at line 69 of file mythhttppool.h.
Referenced by AddUrlRequest(), Done(), RemoveListener(), and Update().
UrlToListener MythHttpPool::m_urlToListener [private] |
Definition at line 70 of file mythhttppool.h.
Referenced by AddUrlRequest(), and Update().
HostToHandler MythHttpPool::m_hostToHandler [private] |
Definition at line 71 of file mythhttppool.h.
Referenced by AddUrlRequest(), Done(), and ~MythHttpPool().
MythHttpPool * MythHttpPool::singleton [static, private] |
Definition at line 73 of file mythhttppool.h.
Referenced by GetSingleton().
1.7.6.1