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

#include <MythExternControl.h>

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

Signals

void CloseFile (void)
 
void SendBytes (void)
 

Public Member Functions

 Commands (MythExternControl *parent)
 
 ~Commands (void)=default
 
void Start (void)
 
void Join (void)
 
bool SendStatus (const QString &command, const QString &status)
 
bool SendStatus (const QString &command, const QString &serial, const QString &status)
 
bool ProcessCommand (const QString &cmd)
 
 Commands (void)
 
virtual ~Commands (void)=default
 
bool Run (const QString &filename, int data_rate, bool loopinput)
 
void setEoF (void)
 

Protected Member Functions

void Run (void)
 
bool Open (void)
 
void Close (void)
 
void StartStreaming (const QString &serial)
 
void StopStreaming (const QString &serial, bool silent)
 
void LockTimeout (const QString &serial) const
 
void HasTuner (const QString &serial) const
 
void HasPictureAttributes (const QString &serial) const
 
void SetBlockSize (const QString &serial, int blksz)
 
void TuneChannel (const QString &serial, const QString &channum)
 
void LoadChannels (const QString &serial)
 
void FirstChannel (const QString &serial)
 
void NextChannel (const QString &serial)
 
bool send_status (const QString &status) const
 
bool process_command (QString &cmd)
 

Private Attributes

std::thread m_thread
 
MythExternControlm_parent
 
int m_apiVersion
 
QString m_fileName
 
Streamerm_streamer
 
int m_timeout
 
bool m_run
 
QAtomicInt m_eof
 

Detailed Description

Definition at line 73 of file MythExternControl.h.

Constructor & Destructor Documentation

◆ Commands() [1/2]

Commands::Commands ( MythExternControl parent)
inline

Definition at line 78 of file MythExternControl.h.

◆ ~Commands() [1/2]

Commands::~Commands ( void  )
default

◆ Commands() [2/2]

Commands::Commands ( void  )

Definition at line 157 of file mythfilerecorder.cpp.

◆ ~Commands() [2/2]

virtual Commands::~Commands ( void  )
virtualdefault

Member Function Documentation

◆ Start()

void Commands::Start ( void  )
inline

Definition at line 82 of file MythExternControl.h.

Referenced by MythExternControl::MythExternControl().

◆ Join()

void Commands::Join ( void  )
inline

Definition at line 85 of file MythExternControl.h.

Referenced by MythExternControl::~MythExternControl().

◆ SendStatus() [1/2]

bool Commands::SendStatus ( const QString &  command,
const QString &  status 
)

Definition at line 198 of file MythExternControl.cpp.

Referenced by ProcessCommand(), and MythExternControl::SendMessage().

◆ SendStatus() [2/2]

bool Commands::SendStatus ( const QString &  command,
const QString &  serial,
const QString &  status 
)

Definition at line 218 of file MythExternControl.cpp.

◆ ProcessCommand()

bool Commands::ProcessCommand ( const QString &  cmd)

Definition at line 248 of file MythExternControl.cpp.

Referenced by Run().

◆ Run() [1/2]

void Commands::Run ( void  )
protected

Definition at line 425 of file MythExternControl.cpp.

Referenced by Start().

◆ Open()

bool Commands::Open ( void  )
protected

◆ Close()

void Commands::Close ( void  )
protected

Definition at line 139 of file MythExternControl.cpp.

◆ StartStreaming()

void Commands::StartStreaming ( const QString &  serial)
protected

Definition at line 148 of file MythExternControl.cpp.

Referenced by ProcessCommand().

◆ StopStreaming()

void Commands::StopStreaming ( const QString &  serial,
bool  silent 
)
protected

Definition at line 153 of file MythExternControl.cpp.

Referenced by ProcessCommand().

◆ LockTimeout()

void Commands::LockTimeout ( const QString &  serial) const
protected

Definition at line 158 of file MythExternControl.cpp.

Referenced by ProcessCommand().

◆ HasTuner()

void Commands::HasTuner ( const QString &  serial) const
protected

Definition at line 163 of file MythExternControl.cpp.

Referenced by ProcessCommand().

◆ HasPictureAttributes()

void Commands::HasPictureAttributes ( const QString &  serial) const
protected

Definition at line 168 of file MythExternControl.cpp.

Referenced by ProcessCommand().

◆ SetBlockSize()

void Commands::SetBlockSize ( const QString &  serial,
int  blksz 
)
protected

Definition at line 173 of file MythExternControl.cpp.

Referenced by ProcessCommand().

◆ TuneChannel()

void Commands::TuneChannel ( const QString &  serial,
const QString &  channum 
)
protected

Definition at line 178 of file MythExternControl.cpp.

Referenced by ProcessCommand().

◆ LoadChannels()

void Commands::LoadChannels ( const QString &  serial)
protected

Definition at line 183 of file MythExternControl.cpp.

Referenced by ProcessCommand().

◆ FirstChannel()

void Commands::FirstChannel ( const QString &  serial)
protected

Definition at line 188 of file MythExternControl.cpp.

Referenced by ProcessCommand().

◆ NextChannel()

void Commands::NextChannel ( const QString &  serial)
protected

Definition at line 193 of file MythExternControl.cpp.

Referenced by ProcessCommand().

◆ CloseFile

void Commands::CloseFile ( void  )
signal

Referenced by process_command().

◆ SendBytes

void Commands::SendBytes ( void  )
signal

Referenced by process_command(), and Run().

◆ Run() [2/2]

bool Commands::Run ( const QString &  filename,
int  data_rate,
bool  loopinput 
)

Definition at line 301 of file mythfilerecorder.cpp.

◆ setEoF()

void Commands::setEoF ( void  )
inline

Definition at line 65 of file mythfilerecorder.h.

Referenced by Streamer::SendBytes().

◆ send_status()

bool Commands::send_status ( const QString &  status) const
protected

Definition at line 163 of file mythfilerecorder.cpp.

Referenced by process_command().

◆ process_command()

bool Commands::process_command ( QString &  cmd)
protected

Definition at line 178 of file mythfilerecorder.cpp.

Referenced by Run().

Member Data Documentation

◆ m_thread

std::thread Commands::m_thread
private

Definition at line 111 of file MythExternControl.h.

Referenced by Join(), and Start().

◆ m_parent

MythExternControl* Commands::m_parent
private

◆ m_apiVersion

int Commands::m_apiVersion
private

Definition at line 114 of file MythExternControl.h.

Referenced by ProcessCommand().

◆ m_fileName

QString Commands::m_fileName
private

Definition at line 72 of file mythfilerecorder.h.

Referenced by Run().

◆ m_streamer

Streamer* Commands::m_streamer
private

Definition at line 73 of file mythfilerecorder.h.

Referenced by process_command(), and Run().

◆ m_timeout

int Commands::m_timeout
private

Definition at line 74 of file mythfilerecorder.h.

Referenced by Run().

◆ m_run

bool Commands::m_run
private

Definition at line 75 of file mythfilerecorder.h.

Referenced by Run().

◆ m_eof

QAtomicInt Commands::m_eof
private

Definition at line 76 of file mythfilerecorder.h.

Referenced by process_command(), and setEoF().


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