MythTV  master
Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
NAMThread Class Reference

Thread to process NetStream requests. More...

#include <netstream.h>

Inheritance diagram for NAMThread:
Inheritance graph
[legend]
Collaboration diagram for NAMThread:
Collaboration graph
[legend]

Signals

void requestStarted (int, QNetworkReply *)
 

Public Member Functions

virtual ~NAMThread ()
 
void Post (QEvent *event)
 

Static Public Member Functions

static NAMThreadmanager ()
 NetworkAccessManager event loop thread. More...
 
static void PostEvent (QEvent *e)
 
static QMutex * GetMutex ()
 
static bool isAvailable ()
 
static QDateTime GetLastModified (const QUrl &url)
 

Protected Member Functions

void run () override
 
bool NewRequest (QEvent *)
 
bool StartRequest (NetStreamRequest *)
 
bool AbortRequest (NetStreamAbort *)
 

Private Slots

void quit ()
 

Private Member Functions

 NAMThread ()
 

Private Attributes

volatile bool m_bQuit
 
QSemaphore m_running
 
QMutex m_mutexNAM
 
QNetworkAccessManager * m_nam
 
QMutex m_mutex
 
QQueue< QEvent * > m_workQ
 
QWaitCondition m_work
 

Detailed Description

Thread to process NetStream requests.

Definition at line 113 of file netstream.h.

Constructor & Destructor Documentation

◆ NAMThread()

NAMThread::NAMThread ( )
private

Definition at line 735 of file netstream.cpp.

◆ ~NAMThread()

NAMThread::~NAMThread ( )
virtual

Definition at line 747 of file netstream.cpp.

Member Function Documentation

◆ manager()

NAMThread & NAMThread::manager ( )
static

◆ PostEvent()

static void NAMThread::PostEvent ( QEvent *  e)
inlinestatic

Definition at line 124 of file netstream.h.

Referenced by NetStream::Abort(), and NetStream::Request().

◆ Post()

void NAMThread::Post ( QEvent *  event)

Definition at line 838 of file netstream.cpp.

Referenced by PostEvent().

◆ GetMutex()

static QMutex* NAMThread::GetMutex ( )
inlinestatic

Definition at line 127 of file netstream.h.

Referenced by NetStream::safe_read().

◆ isAvailable()

bool NAMThread::isAvailable ( )
static

Definition at line 898 of file netstream.cpp.

Referenced by NetStream::isAvailable().

◆ GetLastModified()

QDateTime NAMThread::GetLastModified ( const QUrl &  url)
static

Definition at line 923 of file netstream.cpp.

Referenced by NetStream::GetLastModified().

◆ requestStarted

void NAMThread::requestStarted ( int  ,
QNetworkReply *   
)
signal

Referenced by StartRequest().

◆ run()

void NAMThread::run ( void  )
overrideprotected

Definition at line 754 of file netstream.cpp.

◆ NewRequest()

bool NAMThread::NewRequest ( QEvent *  event)
protected

Definition at line 844 of file netstream.cpp.

Referenced by run().

◆ StartRequest()

bool NAMThread::StartRequest ( NetStreamRequest p)
protected

Definition at line 861 of file netstream.cpp.

Referenced by NewRequest().

◆ AbortRequest()

bool NAMThread::AbortRequest ( NetStreamAbort p)
protected

Definition at line 881 of file netstream.cpp.

Referenced by NewRequest().

◆ quit

void NAMThread::quit ( void  )
privateslot

Definition at line 832 of file netstream.cpp.

Referenced by run().

Member Data Documentation

◆ m_bQuit

volatile bool NAMThread::m_bQuit
private

Definition at line 148 of file netstream.h.

Referenced by quit(), and run().

◆ m_running

QSemaphore NAMThread::m_running
private

Definition at line 149 of file netstream.h.

Referenced by isAvailable(), and run().

◆ m_mutexNAM

QMutex NAMThread::m_mutexNAM
mutableprivate

Definition at line 150 of file netstream.h.

Referenced by GetMutex(), and run().

◆ m_nam

QNetworkAccessManager* NAMThread::m_nam
private

Definition at line 151 of file netstream.h.

Referenced by GetLastModified(), isAvailable(), run(), StartRequest(), and ~NAMThread().

◆ m_mutex

QMutex NAMThread::m_mutex
mutableprivate

Definition at line 152 of file netstream.h.

Referenced by GetLastModified(), isAvailable(), Post(), run(), and ~NAMThread().

◆ m_workQ

QQueue< QEvent * > NAMThread::m_workQ
private

Definition at line 153 of file netstream.h.

Referenced by Post(), and run().

◆ m_work

QWaitCondition NAMThread::m_work
private

Definition at line 154 of file netstream.h.

Referenced by run().


The documentation for this class was generated from the following files: