Go to the documentation of this file.
21 #ifndef MYTHEXTERNCONTROL_H
22 #define MYTHEXTERNCONTROL_H
29 #include <condition_variable>
44 ~Buffer(
void)
override =
default;
52 bool Fill(
const QByteArray & buffer);
54 std::chrono::time_point<std::chrono::system_clock>
HeartBeat(
void)
const
71 std::chrono::time_point<std::chrono::system_clock>
m_heartbeat;
91 const QString & status,
92 const QString & serial,
93 const QString & response =
"");
103 void HasTuner(
const QString & serial)
const;
135 QString
Desc(
void)
const {
return QString(
"%1: ").arg(
m_desc); }
139 void Error(
const QString & msg);
140 void Fatal(
const QString & msg);
151 void HasTuner(
const QString & serial);
165 const QString & serial,
166 const QString & message,
167 const QString & status =
"");
197 #endif // MYTHEXTERNCONTROL_H
std::chrono::time_point< std::chrono::system_clock > HeartBeat(void) const
void TuneChannel(const QString &serial, const QVariantMap &args)
void Fill(const QByteArray &buffer)
void TuneStatus(const QString &serial)
~MythExternControl(void) override
std::atomic< bool > m_xon
void FirstChannel(const QString &serial)
void NextChannel(const QString &serial)
bool SendStatus(const QString &command, const QString &status, const QString &serial, const QString &response="")
Commands(MythExternControl *parent)
std::atomic< bool > m_ready
std::atomic< bool > m_run
~Buffer(void) override=default
void HasTuner(const QString &serial)
~Commands(void) override=default
void TuneChannel(const QString &serial, const QVariantMap &args)
void LockTimeout(const QString &serial)
void Error(const QString &msg)
void StartStreaming(const QString &serial)
std::atomic< bool > m_streaming
void HasTuner(const QString &serial) const
void LoadChannels(const QString &serial)
void Fatal(const QString &msg)
void LockTimeout(const QString &serial) const
std::condition_variable m_runCond
std::condition_variable m_flowCond
MythExternControl * m_parent
void StopStreaming(const QString &serial, bool silent)
void HasPictureAttributes(const QString &serial) const
QString ErrorString(void) const
void TuneStatus(const QString &serial)
void NextChannel(const QString &serial)
Buffer(MythExternControl *parent)
std::atomic< bool > m_bufferRunning
void StartStreaming(const QString &serial)
void SetBlockSize(const QString &serial, int blksz)
void LoadChannels(const QString &serial)
std::chrono::time_point< std::chrono::system_clock > m_heartbeat
void SetBlockSize(const QString &serial, int blksz)
void SetDescription(const QString &desc)
static constexpr uint16_t kMaxQueue
std::queue< block_t > stack_t
bool Fill(const QByteArray &buffer)
MythExternControl * m_parent
std::atomic< bool > m_commandsRunning
void HasPictureAttributes(const QString &serial)
void StopStreaming(const QString &serial, bool silent)
void FirstChannel(const QString &serial)
std::vector< uint8_t > block_t
void ErrorMessage(const QString &msg)
void SendMessage(const QString &command, const QString &serial, const QString &message, const QString &status="")
bool ProcessCommand(const QString &query)