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