MythTV  0.26-pre
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes
MythHttpPool Class Reference

#include <mythhttppool.h>

List of all members.

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

Private Attributes

QMutex m_lock
uint m_maxConnections
deque< HttpRequestm_httpQueue
set< MythHttpListener * > m_listeners
UrlToListener m_urlToListener
HostToHandler m_hostToHandler

Static Private Attributes

static MythHttpPoolsingleton

Detailed Description

Definition at line 44 of file mythhttppool.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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


Member Data Documentation

QMutex MythHttpPool::m_lock [mutable, private]

Definition at line 66 of file mythhttppool.h.

Referenced by AddUrlRequest(), Done(), RemoveListener(), RemoveUrlRequest(), and Update().

Definition at line 67 of file mythhttppool.h.

Referenced by AddUrlRequest().

Definition at line 68 of file mythhttppool.h.

Referenced by AddUrlRequest(), and Done().

Definition at line 69 of file mythhttppool.h.

Referenced by AddUrlRequest(), Done(), RemoveListener(), and Update().

Definition at line 70 of file mythhttppool.h.

Referenced by AddUrlRequest(), and Update().

Definition at line 71 of file mythhttppool.h.

Referenced by AddUrlRequest(), Done(), and ~MythHttpPool().

Definition at line 73 of file mythhttppool.h.

Referenced by GetSingleton().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends