1#ifndef NETWORKCONTROL_H_
2#define NETWORKCONTROL_H_
6#include <QWaitCondition>
12#include <QRecursiveMutex>
109 void run(
void)
override;
127 static QString
listRecordings(
const QString& chanid =
"",
const QString& starttime =
"");
128 static QString
listSchedule(
const QString& chanID =
"") ;
This is a wrapper around QThread that does several additional things.
The base class on which all widgets and screens are based.
NetworkControlClient * getClient()
NetworkCommand & operator=(NetworkCommand const &nc)
NetworkCommand(NetworkControlClient *cli, const QString &c)
NetworkControlClient * m_client
NetworkControlClient(QTcpSocket *s)
void commandReceived(QString &)
~NetworkControlClient() override
QTextStream * m_textStream
QTextStream * getTextStream()
NetworkControlCloseEvent(NetworkControlClient *ncc)
NetworkControlClient * m_networkControlClient
NetworkControlClient * getClient()
static const Type kEventType
void processNetworkControlCommand(NetworkCommand *nc)
QList< NetworkCommand * > m_networkControlReplies
static QString processSet(NetworkCommand *nc)
static QString getWidgetType(MythUIType *type)
QRecursiveMutex m_clientLock
static QString processNotification(NetworkCommand *nc)
QString processJump(NetworkCommand *nc)
QString processLiveTV(NetworkCommand *nc)
void receiveCommand(QString &command)
QList< NetworkControlClient * > m_clients
QString processQuery(NetworkCommand *nc)
QMap< int, QString > m_keyTextMap
static QString processMessage(NetworkCommand *nc)
void customEvent(QEvent *e) override
QString processTheme(NetworkCommand *nc)
static QString listChannels(uint start, uint limit)
QMap< QString, int > m_keyMap
QString processPlay(NetworkCommand *nc, int clientID)
static QString listSchedule(const QString &chanID="")
void newControlConnection(QTcpSocket *client)
QList< NetworkCommand * > m_networkControlCommands
MThread * m_commandThread
QString processKey(NetworkCommand *nc)
void notifyDataAvailable(void)
static QString listRecordings(const QString &chanid="", const QString &starttime="")
QString processHelp(NetworkCommand *nc)
void sendReplyToClient(NetworkControlClient *ncc, const QString &reply)
QMap< QString, QString > m_jumpMap
~NetworkControl() override
static QString saveScreenshot(NetworkCommand *nc)
Manages a collection of sockets listening on different ports.