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

#include <libmythtv/recorders/httptsstreamhandler.h>

Inheritance diagram for HTTPReader:
[legend]
Collaboration diagram for HTTPReader:
[legend]

Public Member Functions

 HTTPReader (HTTPTSStreamHandler *parent)
 
void Cancel (void)
 
bool DownloadStream (const QUrl &url)
 

Protected Member Functions

void ReadBytes ()
 
void WriteBytes ()
 

Private Slots

void HttpRead ()
 

Private Attributes

QString m_url
 
HTTPTSStreamHandlerm_parent {nullptr}
 
QTimer m_timer
 
QNetworkAccessManager m_mgr
 
QNetworkReply * m_reply {nullptr}
 
QMutex m_lock
 
QMutex m_replylock
 
QMutex m_bufferlock
 
uint8_t * m_buffer {nullptr}
 
bool m_ok {true}
 
qint64 m_size {0}
 

Detailed Description

Definition at line 39 of file httptsstreamhandler.h.

Constructor & Destructor Documentation

◆ HTTPReader()

HTTPReader::HTTPReader ( HTTPTSStreamHandler parent)
inlineexplicit

Definition at line 44 of file httptsstreamhandler.h.

Member Function Documentation

◆ Cancel()

void HTTPReader::Cancel ( void  )

Definition at line 241 of file httptsstreamhandler.cpp.

◆ DownloadStream()

bool HTTPReader::DownloadStream ( const QUrl &  url)

Definition at line 136 of file httptsstreamhandler.cpp.

Referenced by HTTPTSStreamHandler::run().

◆ ReadBytes()

void HTTPReader::ReadBytes ( )
protected

Definition at line 206 of file httptsstreamhandler.cpp.

Referenced by HttpRead().

◆ WriteBytes()

void HTTPReader::WriteBytes ( )
protected

Definition at line 219 of file httptsstreamhandler.cpp.

Referenced by HttpRead().

◆ HttpRead

void HTTPReader::HttpRead ( )
privateslot

Definition at line 198 of file httptsstreamhandler.cpp.

Referenced by DownloadStream().

Member Data Documentation

◆ m_url

QString HTTPReader::m_url
private

Definition at line 57 of file httptsstreamhandler.h.

Referenced by DownloadStream().

◆ m_parent

HTTPTSStreamHandler* HTTPReader::m_parent {nullptr}
private

Definition at line 58 of file httptsstreamhandler.h.

Referenced by WriteBytes().

◆ m_timer

QTimer HTTPReader::m_timer
private

Definition at line 59 of file httptsstreamhandler.h.

Referenced by DownloadStream(), and HttpRead().

◆ m_mgr

QNetworkAccessManager HTTPReader::m_mgr
private

Definition at line 60 of file httptsstreamhandler.h.

Referenced by DownloadStream().

◆ m_reply

QNetworkReply* HTTPReader::m_reply {nullptr}
private

Definition at line 61 of file httptsstreamhandler.h.

Referenced by Cancel(), DownloadStream(), and ReadBytes().

◆ m_lock

QMutex HTTPReader::m_lock
private

Definition at line 62 of file httptsstreamhandler.h.

Referenced by DownloadStream().

◆ m_replylock

QMutex HTTPReader::m_replylock
private

Definition at line 63 of file httptsstreamhandler.h.

Referenced by Cancel(), DownloadStream(), and ReadBytes().

◆ m_bufferlock

QMutex HTTPReader::m_bufferlock
private

Definition at line 64 of file httptsstreamhandler.h.

Referenced by ReadBytes(), and WriteBytes().

◆ m_buffer

uint8_t* HTTPReader::m_buffer {nullptr}
private

Definition at line 65 of file httptsstreamhandler.h.

Referenced by DownloadStream(), ReadBytes(), and WriteBytes().

◆ m_ok

bool HTTPReader::m_ok {true}
private

Definition at line 66 of file httptsstreamhandler.h.

Referenced by DownloadStream(), and HttpRead().

◆ m_size

qint64 HTTPReader::m_size {0}
private

Definition at line 67 of file httptsstreamhandler.h.

Referenced by DownloadStream(), ReadBytes(), and WriteBytes().


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