#include <mythhttphandler.h>
Public Member Functions | |
| MythHttpHandler (MythHttpPool *pool) | |
| virtual void | deleteLater (void) |
| bool | HasPendingRequests (void) const |
| void | AddUrlRequest (const QUrl &url) |
| void | RemoveUrlRequest (const QUrl &url) |
Protected Slots | |
| void | Done (bool error) |
| void | ResponseHeaderReceived (const QHttpResponseHeader &resp) |
| void | RequestFinished (int id, bool error) |
| void | RequestStarted (int id) |
| void | StateChanged (int state) |
Private Member Functions | |
| ~MythHttpHandler () | |
| void | TeardownAll () |
| void | Get (const QUrl &url) |
Private Attributes | |
| QMutex | m_lock |
| UrlQueue | m_urls |
| QUrl | m_cur_url |
| uint | m_cur_status_id |
| QString | m_cur_status_str |
| int | m_cur_get_id |
| uint | m_cur_redirect_cnt |
| MythHttpPool * | m_pool |
| QHttp * | m_qhttp |
Static Private Attributes | |
| static const uint | kMaxRedirectCount = 32 |
Definition at line 20 of file mythhttphandler.h.
| MythHttpHandler::MythHttpHandler | ( | MythHttpPool * | pool | ) |
Definition at line 17 of file mythhttphandler.cpp.
| MythHttpHandler::~MythHttpHandler | ( | ) | [inline, private] |
Definition at line 39 of file mythhttphandler.h.
| virtual void MythHttpHandler::deleteLater | ( | void | ) | [inline, virtual] |
Definition at line 25 of file mythhttphandler.h.
Referenced by MythHttpPool::~MythHttpPool().
| bool MythHttpHandler::HasPendingRequests | ( | void | ) | const |
Definition at line 46 of file mythhttphandler.cpp.
| void MythHttpHandler::AddUrlRequest | ( | const QUrl & | url | ) |
Definition at line 54 of file mythhttphandler.cpp.
Referenced by MythHttpPool::AddUrlRequest().
| void MythHttpHandler::RemoveUrlRequest | ( | const QUrl & | url | ) |
Definition at line 95 of file mythhttphandler.cpp.
| void MythHttpHandler::Done | ( | bool | error | ) | [protected, slot] |
Definition at line 120 of file mythhttphandler.cpp.
Referenced by MythHttpHandler().
| void MythHttpHandler::ResponseHeaderReceived | ( | const QHttpResponseHeader & | resp | ) | [protected, slot] |
Definition at line 131 of file mythhttphandler.cpp.
Referenced by MythHttpHandler().
| void MythHttpHandler::RequestFinished | ( | int | id, | |
| bool | error | |||
| ) | [protected, slot] |
Definition at line 187 of file mythhttphandler.cpp.
Referenced by MythHttpHandler().
| void MythHttpHandler::RequestStarted | ( | int | id | ) | [protected, slot] |
Definition at line 234 of file mythhttphandler.cpp.
Referenced by MythHttpHandler().
| void MythHttpHandler::StateChanged | ( | int | state | ) | [protected, slot] |
Definition at line 242 of file mythhttphandler.cpp.
Referenced by MythHttpHandler().
| void MythHttpHandler::TeardownAll | ( | void | ) | [private] |
Definition at line 32 of file mythhttphandler.cpp.
Referenced by deleteLater(), and ~MythHttpHandler().
| void MythHttpHandler::Get | ( | const QUrl & | url | ) | [private] |
Definition at line 67 of file mythhttphandler.cpp.
Referenced by AddUrlRequest(), and RequestFinished().
QMutex MythHttpHandler::m_lock [mutable, private] |
Definition at line 44 of file mythhttphandler.h.
Referenced by AddUrlRequest(), Done(), HasPendingRequests(), RemoveUrlRequest(), RequestFinished(), RequestStarted(), ResponseHeaderReceived(), StateChanged(), and TeardownAll().
UrlQueue MythHttpHandler::m_urls [private] |
Definition at line 45 of file mythhttphandler.h.
Referenced by AddUrlRequest(), HasPendingRequests(), RemoveUrlRequest(), and RequestFinished().
QUrl MythHttpHandler::m_cur_url [private] |
Definition at line 46 of file mythhttphandler.h.
Referenced by Done(), Get(), RemoveUrlRequest(), RequestFinished(), RequestStarted(), ResponseHeaderReceived(), and StateChanged().
uint MythHttpHandler::m_cur_status_id [private] |
Definition at line 47 of file mythhttphandler.h.
Referenced by Get(), RemoveUrlRequest(), RequestFinished(), and ResponseHeaderReceived().
QString MythHttpHandler::m_cur_status_str [private] |
Definition at line 48 of file mythhttphandler.h.
Referenced by Get(), RemoveUrlRequest(), RequestFinished(), and ResponseHeaderReceived().
int MythHttpHandler::m_cur_get_id [private] |
Definition at line 49 of file mythhttphandler.h.
Referenced by Get(), RemoveUrlRequest(), and RequestFinished().
uint MythHttpHandler::m_cur_redirect_cnt [private] |
Definition at line 50 of file mythhttphandler.h.
Referenced by Get(), RemoveUrlRequest(), and RequestFinished().
MythHttpPool* MythHttpHandler::m_pool [private] |
Definition at line 51 of file mythhttphandler.h.
Referenced by Done(), RequestFinished(), and TeardownAll().
QHttp* MythHttpHandler::m_qhttp [private] |
Definition at line 52 of file mythhttphandler.h.
Referenced by AddUrlRequest(), Get(), HasPendingRequests(), MythHttpHandler(), RemoveUrlRequest(), RequestFinished(), and TeardownAll().
const uint MythHttpHandler::kMaxRedirectCount = 32 [static, private] |
Definition at line 54 of file mythhttphandler.h.
Referenced by RequestFinished().
1.6.3