MythHttpHandler Class Reference

#include <mythhttphandler.h>

List of all members.

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
MythHttpPoolm_pool
QHttp * m_qhttp

Static Private Attributes

static const uint kMaxRedirectCount = 32

Detailed Description

Definition at line 20 of file mythhttphandler.h.


Constructor & Destructor Documentation

MythHttpHandler::MythHttpHandler ( MythHttpPool pool  ) 

Definition at line 17 of file mythhttphandler.cpp.

MythHttpHandler::~MythHttpHandler (  )  [inline, private]

Definition at line 39 of file mythhttphandler.h.


Member Function Documentation

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().


Member Data Documentation

QMutex MythHttpHandler::m_lock [mutable, private]

Definition at line 47 of file mythhttphandler.h.

Referenced by Get(), RemoveUrlRequest(), RequestFinished(), and ResponseHeaderReceived().

Definition at line 48 of file mythhttphandler.h.

Referenced by Get(), RemoveUrlRequest(), RequestFinished(), and ResponseHeaderReceived().

Definition at line 49 of file mythhttphandler.h.

Referenced by Get(), RemoveUrlRequest(), and RequestFinished().

Definition at line 50 of file mythhttphandler.h.

Referenced by Get(), RemoveUrlRequest(), and RequestFinished().

Definition at line 51 of file mythhttphandler.h.

Referenced by Done(), RequestFinished(), and TeardownAll().

QHttp* MythHttpHandler::m_qhttp [private]
const uint MythHttpHandler::kMaxRedirectCount = 32 [static, private]

Definition at line 54 of file mythhttphandler.h.

Referenced by RequestFinished().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:16 2012 for MythTV by  doxygen 1.6.3