MythTV  master
Public Slots | Signals | Public Member Functions | Protected Attributes | Friends | List of all members
MythExternControl Class Reference

#include <MythExternControl.h>

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

Public Slots

void SetDescription (const QString &desc)
 
void SendMessage (const QString &cmd, const QString &serial, const QString &msg)
 
void ErrorMessage (const QString &msg)
 
void Opened (void)
 
void Done (void)
 
void Streaming (bool val)
 
void Fill (const QByteArray &buffer)
 

Signals

void 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)
 

Public Member Functions

 MythExternControl (void)
 
 ~MythExternControl (void)
 
QString Desc (void) const
 
void Terminate (void)
 
void Error (const QString &msg)
 
void Fatal (const QString &msg)
 
QString ErrorString (void) const
 
void ClearError (void)
 

Protected Attributes

Buffer m_buffer
 
Commands m_commands
 
QString m_desc
 
std::atomic< boolm_run
 
std::atomic< boolm_commands_running
 
std::atomic< boolm_buffer_running
 
std::mutex m_run_mutex
 
std::condition_variable m_run_cond
 
std::mutex m_msg_mutex
 
bool m_fatal
 
QString m_errmsg
 
std::mutex m_flow_mutex
 
std::condition_variable m_flow_cond
 
std::atomic< boolm_streaming
 
std::atomic< boolm_xon
 
std::atomic< boolm_ready
 

Friends

class Buffer
 
class Commands
 

Detailed Description

Definition at line 117 of file MythExternControl.h.

Constructor & Destructor Documentation

◆ MythExternControl()

MythExternControl::MythExternControl ( void  )

Definition at line 38 of file MythExternControl.cpp.

◆ ~MythExternControl()

MythExternControl::~MythExternControl ( void  )

Definition at line 55 of file MythExternControl.cpp.

Member Function Documentation

◆ Desc()

QString MythExternControl::Desc ( void  ) const
inline

Definition at line 128 of file MythExternControl.h.

◆ Terminate()

void MythExternControl::Terminate ( void  )

Definition at line 76 of file MythExternControl.cpp.

Referenced by Fatal(), Commands::ProcessCommand(), and ~MythExternControl().

◆ Error()

void MythExternControl::Error ( const QString &  msg)

Definition at line 101 of file MythExternControl.cpp.

Referenced by Fatal().

◆ Fatal()

void MythExternControl::Fatal ( const QString &  msg)

Definition at line 112 of file MythExternControl.cpp.

Referenced by Commands::Run().

◆ ErrorString()

QString MythExternControl::ErrorString ( void  ) const
inline

Definition at line 135 of file MythExternControl.h.

Referenced by Commands::ProcessCommand().

◆ ClearError()

void MythExternControl::ClearError ( void  )
inline

Definition at line 136 of file MythExternControl.h.

Referenced by Commands::SendStatus().

◆ Open

void MythExternControl::Open ( void  )
signal

◆ Close

void MythExternControl::Close ( void  )
signal

Referenced by Commands::Close(), main(), and Terminate().

◆ StartStreaming

void MythExternControl::StartStreaming ( const QString &  serial)
signal

Referenced by main(), and Commands::StartStreaming().

◆ StopStreaming

void MythExternControl::StopStreaming ( const QString &  serial,
bool  silent 
)
signal

Referenced by main(), and Commands::StopStreaming().

◆ LockTimeout

void MythExternControl::LockTimeout ( const QString &  serial) const
signal

Referenced by Commands::LockTimeout(), and main().

◆ HasTuner

void MythExternControl::HasTuner ( const QString &  serial) const
signal

Referenced by Commands::HasTuner(), and main().

◆ HasPictureAttributes

void MythExternControl::HasPictureAttributes ( const QString &  serial) const
signal

◆ SetBlockSize

void MythExternControl::SetBlockSize ( const QString &  serial,
int  blksz 
)
signal

Referenced by main(), and Commands::SetBlockSize().

◆ TuneChannel

void MythExternControl::TuneChannel ( const QString &  serial,
const QString &  channum 
)
signal

Referenced by main(), and Commands::TuneChannel().

◆ LoadChannels

void MythExternControl::LoadChannels ( const QString &  serial)
signal

Referenced by Commands::LoadChannels(), and main().

◆ FirstChannel

void MythExternControl::FirstChannel ( const QString &  serial)
signal

Referenced by Commands::FirstChannel(), and main().

◆ NextChannel

void MythExternControl::NextChannel ( const QString &  serial)
signal

Referenced by main(), and Commands::NextChannel().

◆ SetDescription

void MythExternControl::SetDescription ( const QString &  desc)
inlineslot

Definition at line 153 of file MythExternControl.h.

Referenced by main().

◆ SendMessage

Q_SLOT void MythExternControl::SendMessage ( const QString &  cmd,
const QString &  serial,
const QString &  msg 
)
slot

Definition at line 119 of file MythExternControl.cpp.

Referenced by main().

◆ ErrorMessage

Q_SLOT void MythExternControl::ErrorMessage ( const QString &  msg)
slot

Definition at line 127 of file MythExternControl.cpp.

Referenced by main().

◆ Opened

Q_SLOT void MythExternControl::Opened ( void  )
slot

Definition at line 62 of file MythExternControl.cpp.

Referenced by main().

◆ Done

Q_SLOT void MythExternControl::Done ( void  )
slot

Definition at line 81 of file MythExternControl.cpp.

Referenced by main().

◆ Streaming

Q_SLOT void MythExternControl::Streaming ( bool  val)
slot

Definition at line 70 of file MythExternControl.cpp.

Referenced by main().

◆ Fill

void MythExternControl::Fill ( const QByteArray &  buffer)
inlineslot

Definition at line 160 of file MythExternControl.h.

Referenced by main().

Friends And Related Function Documentation

◆ Buffer

friend class Buffer
friend

Definition at line 121 of file MythExternControl.h.

◆ Commands

friend class Commands
friend

Definition at line 122 of file MythExternControl.h.

Member Data Documentation

◆ m_buffer

Buffer MythExternControl::m_buffer
protected

Definition at line 163 of file MythExternControl.h.

Referenced by Fill(), MythExternControl(), and ~MythExternControl().

◆ m_commands

Commands MythExternControl::m_commands
protected

Definition at line 164 of file MythExternControl.h.

Referenced by MythExternControl(), SendMessage(), and ~MythExternControl().

◆ m_desc

QString MythExternControl::m_desc
protected

Definition at line 165 of file MythExternControl.h.

Referenced by Desc(), Commands::ProcessCommand(), and SetDescription().

◆ m_run

std::atomic<bool> MythExternControl::m_run
protected

Definition at line 167 of file MythExternControl.h.

Referenced by Done(), Buffer::Run(), and Commands::Run().

◆ m_commands_running

std::atomic<bool> MythExternControl::m_commands_running
protected

Definition at line 168 of file MythExternControl.h.

Referenced by Done(), and Commands::Run().

◆ m_buffer_running

std::atomic<bool> MythExternControl::m_buffer_running
protected

Definition at line 169 of file MythExternControl.h.

Referenced by Done(), and Buffer::Run().

◆ m_run_mutex

std::mutex MythExternControl::m_run_mutex
protected

Definition at line 170 of file MythExternControl.h.

Referenced by Commands::ProcessCommand().

◆ m_run_cond

std::condition_variable MythExternControl::m_run_cond
protected

Definition at line 171 of file MythExternControl.h.

Referenced by Done().

◆ m_msg_mutex

std::mutex MythExternControl::m_msg_mutex
protected

Definition at line 172 of file MythExternControl.h.

Referenced by Error(), ErrorMessage(), Commands::ProcessCommand(), and SendMessage().

◆ m_fatal

bool MythExternControl::m_fatal
protected

Definition at line 174 of file MythExternControl.h.

Referenced by Fatal(), and Commands::ProcessCommand().

◆ m_errmsg

QString MythExternControl::m_errmsg
protected

Definition at line 175 of file MythExternControl.h.

Referenced by ClearError(), Error(), ErrorMessage(), and ErrorString().

◆ m_flow_mutex

std::mutex MythExternControl::m_flow_mutex
protected

Definition at line 177 of file MythExternControl.h.

Referenced by Commands::Close(), Done(), Buffer::Fill(), Opened(), and Buffer::Run().

◆ m_flow_cond

std::condition_variable MythExternControl::m_flow_cond
protected

◆ m_streaming

std::atomic<bool> MythExternControl::m_streaming
protected

Definition at line 179 of file MythExternControl.h.

Referenced by Commands::ProcessCommand(), Buffer::Run(), and Streaming().

◆ m_xon

std::atomic<bool> MythExternControl::m_xon
protected

Definition at line 180 of file MythExternControl.h.

Referenced by Commands::ProcessCommand(), and Buffer::Run().

◆ m_ready

std::atomic<bool> MythExternControl::m_ready
protected

Definition at line 181 of file MythExternControl.h.

Referenced by Commands::Close(), Opened(), and Commands::ProcessCommand().


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