21#ifndef MYTHTVEXTERNRECAPP_H
22#define MYTHTVEXTERNRECAPP_H
33#include <condition_variable>
43 QString log_file, QString logging);
50 QString
Desc(
void)
const;
58 const QString & serial,
59 const QString & message,
60 const QString & status =
"");
65 void Fill(
const QByteArray & buffer);
69 void ProcFinished(
int exitCode, QProcess::ExitStatus exitStatus);
79 void HasTuner(
const QString & serial);
87 void TuneChannel(
const QString & serial,
const QVariantMap & chaninfo);
93 void GetChannel(
const QString & serial,
const QString & func);
100 const QVariantMap & extra_args)
const;
void LockTimeout(const QString &serial)
QString replace_extra_args(const QString &var, const QVariantMap &extra_args) const
std::atomic< bool > m_run
void StartStreaming(const QString &serial)
void TerminateProcess(QProcess &proc, const QString &desc) const
void ProcFinished(int exitCode, QProcess::ExitStatus exitStatus)
void SetDescription(const QString &desc)
void ProcReadStandardError(void)
QProcess m_finishTuneProc
QString m_newEpisodeCommand
void NewEpisodeStarting(void)
std::condition_variable m_runCond
void GetChannel(const QString &serial, const QString &func)
MythExternRecApp(QString command, QString conf_file, QString log_file, QString logging)
void ProcReadStandardOutput(void)
~MythExternRecApp(void) override
QMap< QString, QString > m_settingVars
QMap< QString, QString > m_appEnv
void TuneChannel(const QString &serial, const QVariantMap &chaninfo)
void SendMessage(const QString &command, const QString &serial, const QString &message, const QString &status="")
void MythLog(const QString &msg)
void ProcStateChanged(QProcess::ProcessState newState)
void HasTuner(const QString &serial)
void FirstChannel(const QString &serial)
void Fill(const QByteArray &buffer)
void StopStreaming(const QString &serial, bool silent)
std::atomic< bool > m_streaming
void LoadChannels(const QString &serial)
QSettings * m_chanSettings
void NextChannel(const QString &serial)
void ErrorMessage(const QString &msg)
void TuneStatus(const QString &serial)
void ProcError(QProcess::ProcessError error)
void SetBlockSize(const QString &serial, int blksz)
static QString sanitize_var(const QString &var)
void ReplaceVariables(QString &cmd) const
void HasPictureAttributes(const QString &serial)
void SetErrorMsg(const QString &msg)