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

#include <mythfilerecorder.h>

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

Public Slots

void CloseFile (void)
 
void SendBytes (void)
 

Public Member Functions

 Streamer (Commands *parent, QString fname, int data_rate, bool loopinput)
 
 ~Streamer (void) override
 
void BlockSize (int val)
 
bool IsOpen (void) const
 
QString ErrorString (void) const
 

Protected Member Functions

void OpenFile (void)
 

Private Attributes

Commandsm_parent { nullptr }
 
QString m_fileName
 
QFile * m_file { nullptr }
 
bool m_loop
 
QString m_error
 
QByteArray m_buffer
 
int m_bufferMax { 188 * 100000 }
 
QAtomicInt m_blockSize { m_bufferMax / 4 }
 
uint m_dataRate
 
QDateTime m_startTime
 
quint64 m_dataRead { 0 }
 

Detailed Description

Definition at line 16 of file mythfilerecorder.h.

Constructor & Destructor Documentation

◆ Streamer()

Streamer::Streamer ( Commands parent,
QString  fname,
int  data_rate,
bool  loopinput 
)

Definition at line 28 of file mythfilerecorder.cpp.

◆ ~Streamer()

Streamer::~Streamer ( void  )
override

Definition at line 38 of file mythfilerecorder.cpp.

Member Function Documentation

◆ CloseFile

void Streamer::CloseFile ( void  )
slot

Definition at line 55 of file mythfilerecorder.cpp.

Referenced by ~Streamer().

◆ SendBytes

void Streamer::SendBytes ( void  )
slot

Definition at line 68 of file mythfilerecorder.cpp.

◆ BlockSize()

void Streamer::BlockSize ( int  val)
inline

Definition at line 28 of file mythfilerecorder.h.

Referenced by Commands::process_command().

◆ IsOpen()

bool Streamer::IsOpen ( void  ) const
inline

Definition at line 29 of file mythfilerecorder.h.

Referenced by Commands::process_command().

◆ ErrorString()

QString Streamer::ErrorString ( void  ) const
inline

Definition at line 30 of file mythfilerecorder.h.

Referenced by Commands::process_command().

◆ OpenFile()

void Streamer::OpenFile ( void  )
protected

Definition at line 45 of file mythfilerecorder.cpp.

Referenced by Streamer().

Member Data Documentation

◆ m_parent

Commands* Streamer::m_parent { nullptr }
private

Definition at line 36 of file mythfilerecorder.h.

Referenced by SendBytes().

◆ m_fileName

QString Streamer::m_fileName
private

Definition at line 37 of file mythfilerecorder.h.

Referenced by OpenFile().

◆ m_file

QFile* Streamer::m_file { nullptr }
private

Definition at line 38 of file mythfilerecorder.h.

Referenced by CloseFile(), IsOpen(), OpenFile(), and SendBytes().

◆ m_loop

bool Streamer::m_loop
private

Definition at line 39 of file mythfilerecorder.h.

Referenced by SendBytes().

◆ m_error

QString Streamer::m_error
private

Definition at line 41 of file mythfilerecorder.h.

Referenced by ErrorString().

◆ m_buffer

QByteArray Streamer::m_buffer
private

Definition at line 43 of file mythfilerecorder.h.

Referenced by SendBytes().

◆ m_bufferMax

int Streamer::m_bufferMax { 188 * 100000 }
private

Definition at line 44 of file mythfilerecorder.h.

Referenced by SendBytes().

◆ m_blockSize

QAtomicInt Streamer::m_blockSize { m_bufferMax / 4 }
private

Definition at line 45 of file mythfilerecorder.h.

Referenced by BlockSize(), and SendBytes().

◆ m_dataRate

uint Streamer::m_dataRate
private

Definition at line 48 of file mythfilerecorder.h.

Referenced by SendBytes(), and Streamer().

◆ m_startTime

QDateTime Streamer::m_startTime
private

Definition at line 49 of file mythfilerecorder.h.

Referenced by SendBytes().

◆ m_dataRead

quint64 Streamer::m_dataRead { 0 }
private

Definition at line 50 of file mythfilerecorder.h.

Referenced by SendBytes().


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