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

#include <MythExternRecApp.h>

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

Public Slots

void ProcStarted (void)
 
void ProcFinished (int exitCode, QProcess::ExitStatus exitStatus)
 
void ProcStateChanged (QProcess::ProcessState newState)
 
void ProcError (QProcess::ProcessError error)
 
void ProcReadStandardError (void)
 
void ProcReadStandardOutput (void)
 
void Close (void)
 
void StartStreaming (const QString &serial)
 
void StopStreaming (const QString &serial, bool silent)
 
void LockTimeout (const QString &serial)
 
void HasTuner (const QString &serial)
 
void LoadChannels (const QString &serial)
 
void FirstChannel (const QString &serial)
 
void NextChannel (const QString &serial)
 
void TuneChannel (const QString &serial, const QString &channum)
 
void HasPictureAttributes (const QString &serial)
 
void SetBlockSize (const QString &serial, int blksz)
 

Signals

void SetDescription (const QString &desc)
 
void SendMessage (const QString &func, 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)
 

Public Member Functions

 MythExternRecApp (QString command, QString conf_file, QString log_file, QString logging)
 
 ~MythExternRecApp (void)
 
bool Open (void)
 
void Run (void)
 
QString Desc (void) const
 
void MythLog (const QString &msg)
 
void SetErrorMsg (const QString &msg)
 

Protected Member Functions

void GetChannel (const QString &serial, const QString &func)
 
void TerminateProcess (void)
 

Private Member Functions

bool config (void)
 

Private Attributes

bool m_fatal
 
std::atomic< boolm_run
 
std::condition_variable m_run_cond
 
std::mutex m_run_mutex
 
std::atomic< boolm_streaming
 
int m_result
 
uint m_buffer_max
 
uint m_block_size
 
QProcess m_proc
 
QString m_command
 
QString m_rec_command
 
QString m_rec_desc
 
QMap< QString, QString > m_app_env
 
QString m_tune_command
 
QString m_channels_ini
 
uint m_lock_timeout
 
QString m_scan_command
 
uint m_scan_timeout
 
QString m_log_file
 
QString m_logging
 
QString m_config_ini
 
QString m_desc
 
bool m_tuned
 
QSettings * m_chan_settings
 
QStringList m_channels
 
int m_channel_idx
 

Detailed Description

Definition at line 32 of file MythExternRecApp.h.

Constructor & Destructor Documentation

◆ MythExternRecApp()

MythExternRecApp::MythExternRecApp ( QString  command,
QString  conf_file,
QString  log_file,
QString  logging 
)

Definition at line 33 of file MythExternRecApp.cpp.

◆ ~MythExternRecApp()

MythExternRecApp::~MythExternRecApp ( void  )

Definition at line 71 of file MythExternRecApp.cpp.

Member Function Documentation

◆ Open()

bool MythExternRecApp::Open ( void  )

Definition at line 132 of file MythExternRecApp.cpp.

Referenced by LockTimeout().

◆ Run()

void MythExternRecApp::Run ( void  )

Definition at line 236 of file MythExternRecApp.cpp.

Referenced by main().

◆ Desc()

QString MythExternRecApp::Desc ( void  ) const

Definition at line 76 of file MythExternRecApp.cpp.

Referenced by StartStreaming(), StopStreaming(), and TuneChannel().

◆ MythLog()

void MythExternRecApp::MythLog ( const QString &  msg)
inline

◆ SetErrorMsg()

void MythExternRecApp::SetErrorMsg ( const QString &  msg)
inline

Definition at line 47 of file MythExternRecApp.h.

◆ SetDescription

void MythExternRecApp::SetDescription ( const QString &  desc)
signal

◆ SendMessage

void MythExternRecApp::SendMessage ( const QString &  func,
const QString &  serial,
const QString &  msg 
)
signal

◆ ErrorMessage

void MythExternRecApp::ErrorMessage ( const QString &  msg)
signal

Referenced by main(), and SetErrorMsg().

◆ Opened

void MythExternRecApp::Opened ( void  )
signal

Referenced by main(), and Open().

◆ Done

void MythExternRecApp::Done ( void  )
signal

Referenced by Close(), main(), and Run().

◆ Streaming

void MythExternRecApp::Streaming ( bool  val)
signal

◆ Fill

void MythExternRecApp::Fill ( const QByteArray &  buffer)
signal

Referenced by main(), ProcReadStandardOutput(), and Run().

◆ ProcStarted

Q_SLOT void MythExternRecApp::ProcStarted ( void  )
slot

Definition at line 586 of file MythExternRecApp.cpp.

Referenced by Open().

◆ ProcFinished

Q_SLOT void MythExternRecApp::ProcFinished ( int  exitCode,
QProcess::ExitStatus  exitStatus 
)
slot

Definition at line 593 of file MythExternRecApp.cpp.

Referenced by Open().

◆ ProcStateChanged

Q_SLOT void MythExternRecApp::ProcStateChanged ( QProcess::ProcessState  newState)
slot

Definition at line 609 of file MythExternRecApp.cpp.

Referenced by Open().

◆ ProcError

Q_SLOT void MythExternRecApp::ProcError ( QProcess::ProcessError  error)
slot

Definition at line 635 of file MythExternRecApp.cpp.

Referenced by Open().

◆ ProcReadStandardError

Q_SLOT void MythExternRecApp::ProcReadStandardError ( void  )
slot

Definition at line 642 of file MythExternRecApp.cpp.

Referenced by Open().

◆ ProcReadStandardOutput

Q_SLOT void MythExternRecApp::ProcReadStandardOutput ( void  )
slot

Definition at line 659 of file MythExternRecApp.cpp.

Referenced by Open().

◆ Close

Q_SLOT void MythExternRecApp::Close ( void  )
slot

Definition at line 216 of file MythExternRecApp.cpp.

Referenced by main(), and ~MythExternRecApp().

◆ StartStreaming

Q_SLOT void MythExternRecApp::StartStreaming ( const QString &  serial)
slot

Definition at line 507 of file MythExternRecApp.cpp.

Referenced by main().

◆ StopStreaming

Q_SLOT void MythExternRecApp::StopStreaming ( const QString &  serial,
bool  silent 
)
slot

Definition at line 559 of file MythExternRecApp.cpp.

Referenced by main().

◆ LockTimeout

Q_SLOT void MythExternRecApp::LockTimeout ( const QString &  serial)
slot

Definition at line 478 of file MythExternRecApp.cpp.

Referenced by main().

◆ HasTuner

Q_SLOT void MythExternRecApp::HasTuner ( const QString &  serial)
slot

Definition at line 490 of file MythExternRecApp.cpp.

Referenced by main().

◆ LoadChannels

Q_SLOT void MythExternRecApp::LoadChannels ( const QString &  serial)
slot

Definition at line 269 of file MythExternRecApp.cpp.

Referenced by main().

◆ FirstChannel

Q_SLOT void MythExternRecApp::FirstChannel ( const QString &  serial)
slot

Definition at line 380 of file MythExternRecApp.cpp.

Referenced by main().

◆ NextChannel

Q_SLOT void MythExternRecApp::NextChannel ( const QString &  serial)
slot

Definition at line 386 of file MythExternRecApp.cpp.

Referenced by main().

◆ TuneChannel

Q_SLOT void MythExternRecApp::TuneChannel ( const QString &  serial,
const QString &  channum 
)
slot

Definition at line 391 of file MythExternRecApp.cpp.

Referenced by main().

◆ HasPictureAttributes

Q_SLOT void MythExternRecApp::HasPictureAttributes ( const QString &  serial)
slot

Definition at line 496 of file MythExternRecApp.cpp.

Referenced by main().

◆ SetBlockSize

Q_SLOT void MythExternRecApp::SetBlockSize ( const QString &  serial,
int  blksz 
)
slot

Definition at line 501 of file MythExternRecApp.cpp.

Referenced by main().

◆ GetChannel()

void MythExternRecApp::GetChannel ( const QString &  serial,
const QString &  func 
)
protected

Definition at line 337 of file MythExternRecApp.cpp.

Referenced by FirstChannel(), and NextChannel().

◆ TerminateProcess()

void MythExternRecApp::TerminateProcess ( void  )
protected

Definition at line 191 of file MythExternRecApp.cpp.

Referenced by Close(), Run(), and StopStreaming().

◆ config()

bool MythExternRecApp::config ( void  )
private

Definition at line 86 of file MythExternRecApp.cpp.

Referenced by MythExternRecApp().

Member Data Documentation

◆ m_fatal

bool MythExternRecApp::m_fatal
private

Definition at line 87 of file MythExternRecApp.h.

Referenced by config(), and Open().

◆ m_run

std::atomic<bool> MythExternRecApp::m_run
private

Definition at line 89 of file MythExternRecApp.h.

Referenced by Close(), and Run().

◆ m_run_cond

std::condition_variable MythExternRecApp::m_run_cond
private

Definition at line 90 of file MythExternRecApp.h.

Referenced by Close(), and Run().

◆ m_run_mutex

std::mutex MythExternRecApp::m_run_mutex
private

Definition at line 91 of file MythExternRecApp.h.

Referenced by Run().

◆ m_streaming

std::atomic<bool> MythExternRecApp::m_streaming
private

Definition at line 92 of file MythExternRecApp.h.

Referenced by ProcFinished(), ProcStateChanged(), StartStreaming(), and StopStreaming().

◆ m_result

int MythExternRecApp::m_result
private

Definition at line 93 of file MythExternRecApp.h.

Referenced by ProcFinished().

◆ m_buffer_max

uint MythExternRecApp::m_buffer_max
private

Definition at line 95 of file MythExternRecApp.h.

◆ m_block_size

uint MythExternRecApp::m_block_size
private

Definition at line 96 of file MythExternRecApp.h.

Referenced by ProcReadStandardOutput(), Run(), and SetBlockSize().

◆ m_proc

QProcess MythExternRecApp::m_proc
private

◆ m_command

QString MythExternRecApp::m_command
private

Definition at line 99 of file MythExternRecApp.h.

Referenced by MythExternRecApp(), Open(), StartStreaming(), and TuneChannel().

◆ m_rec_command

QString MythExternRecApp::m_rec_command
private

Definition at line 101 of file MythExternRecApp.h.

Referenced by config(), MythExternRecApp(), and TuneChannel().

◆ m_rec_desc

QString MythExternRecApp::m_rec_desc
private

Definition at line 102 of file MythExternRecApp.h.

Referenced by config(), MythExternRecApp(), and TuneChannel().

◆ m_app_env

QMap<QString, QString> MythExternRecApp::m_app_env
private

Definition at line 104 of file MythExternRecApp.h.

Referenced by config(), and Open().

◆ m_tune_command

QString MythExternRecApp::m_tune_command
private

Definition at line 106 of file MythExternRecApp.h.

Referenced by config(), MythExternRecApp(), and TuneChannel().

◆ m_channels_ini

QString MythExternRecApp::m_channels_ini
private

◆ m_lock_timeout

uint MythExternRecApp::m_lock_timeout
private

Definition at line 108 of file MythExternRecApp.h.

Referenced by config(), and LockTimeout().

◆ m_scan_command

QString MythExternRecApp::m_scan_command
private

Definition at line 110 of file MythExternRecApp.h.

Referenced by config(), LoadChannels(), LockTimeout(), and MythExternRecApp().

◆ m_scan_timeout

uint MythExternRecApp::m_scan_timeout
private

Definition at line 111 of file MythExternRecApp.h.

Referenced by config(), and LoadChannels().

◆ m_log_file

QString MythExternRecApp::m_log_file
private

Definition at line 113 of file MythExternRecApp.h.

Referenced by ProcReadStandardError(), and TuneChannel().

◆ m_logging

QString MythExternRecApp::m_logging
private

Definition at line 114 of file MythExternRecApp.h.

Referenced by TuneChannel().

◆ m_config_ini

QString MythExternRecApp::m_config_ini
private

Definition at line 115 of file MythExternRecApp.h.

Referenced by config(), and MythExternRecApp().

◆ m_desc

QString MythExternRecApp::m_desc
private

Definition at line 116 of file MythExternRecApp.h.

Referenced by Desc(), MythExternRecApp(), and TuneChannel().

◆ m_tuned

bool MythExternRecApp::m_tuned
private

Definition at line 118 of file MythExternRecApp.h.

Referenced by StartStreaming(), and TuneChannel().

◆ m_chan_settings

QSettings* MythExternRecApp::m_chan_settings
private

Definition at line 121 of file MythExternRecApp.h.

Referenced by GetChannel(), and LoadChannels().

◆ m_channels

QStringList MythExternRecApp::m_channels
private

Definition at line 122 of file MythExternRecApp.h.

Referenced by GetChannel(), and LoadChannels().

◆ m_channel_idx

int MythExternRecApp::m_channel_idx
private

Definition at line 123 of file MythExternRecApp.h.

Referenced by FirstChannel(), and GetChannel().


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