MythTV
master
|
#include <networkcontrol.h>
Public Member Functions | |
NetworkControl () | |
~NetworkControl () override | |
![]() | |
ServerPool (QObject *parent=nullptr) | |
~ServerPool (void) override | |
bool | listen (QList< QHostAddress > addrs, quint16 port, bool requireall=true, PoolServerType type=kTCPServer) |
bool | listen (QStringList addrs, quint16 port, bool requireall=true, PoolServerType type=kTCPServer) |
bool | listen (quint16 port, bool requireall=true, PoolServerType type=kTCPServer) |
bool | bind (QList< QHostAddress > addrs, quint16 port, bool requireall=true) |
bool | bind (QStringList addrs, quint16 port, bool requireall=true) |
bool | bind (quint16 port, bool requireall=true) |
qint64 | writeDatagram (const char *data, qint64 size, const QHostAddress &addr, quint16 port) |
qint64 | writeDatagram (const QByteArray &datagram, const QHostAddress &addr, quint16 port) |
bool | isListening (void) const |
int | maxPendingConnections (void) const |
void | setMaxPendingConnections (int n) |
quint16 | serverPort (void) const |
QNetworkProxy | proxy (void) |
void | setProxy (const QNetworkProxy &proxy) |
void | close (void) |
int | tryListeningPort (int baseport, int range=1) |
tryListeningPort More... | |
int | tryBindingPort (int baseport, int range=1) |
tryBindingPort More... | |
Protected Member Functions | |
void | run (void) override |
Private Slots | |
void | newControlConnection (QTcpSocket *client) |
void | receiveCommand (QString &command) |
void | deleteClient (void) |
Private Member Functions | |
QString | processJump (NetworkCommand *nc) |
QString | processKey (NetworkCommand *nc) |
QString | processLiveTV (NetworkCommand *nc) |
QString | processPlay (NetworkCommand *nc, int clientID) |
QString | processQuery (NetworkCommand *nc) |
QString | processTheme (NetworkCommand *nc) |
QString | processHelp (NetworkCommand *nc) |
void | notifyDataAvailable (void) |
void | sendReplyToClient (NetworkControlClient *ncc, const QString &reply) |
void | customEvent (QEvent *e) override |
void | processNetworkControlCommand (NetworkCommand *nc) |
void | deleteClient (NetworkControlClient *ncc) |
Static Private Member Functions | |
static QString | processSet (NetworkCommand *nc) |
static QString | processMessage (NetworkCommand *nc) |
static QString | processNotification (NetworkCommand *nc) |
static QString | listRecordings (const QString &chanid="", const QString &starttime="") |
static QString | listSchedule (const QString &chanID="") |
static QString | listChannels (uint start, uint limit) |
static QString | saveScreenshot (NetworkCommand *nc) |
static QString | getWidgetType (MythUIType *type) |
Private Attributes | |
QString | m_prompt {"# "} |
bool | m_gotAnswer {false} |
QString | m_answer {""} |
QMap< QString, QString > | m_jumpMap |
QMap< QString, int > | m_keyMap |
QMap< int, QString > | m_keyTextMap |
QRecursiveMutex | m_clientLock |
QList< NetworkControlClient * > | m_clients |
QList< NetworkCommand * > | m_networkControlCommands |
QMutex | m_ncLock |
QWaitCondition | m_ncCond |
QList< NetworkCommand * > | m_networkControlReplies |
QMutex | m_nrLock |
MThread * | m_commandThread {nullptr} |
bool | m_stopCommandThread {false} |
Additional Inherited Members | |
![]() | |
void | newConnection (QTcpSocket *) |
void | newDatagram (QByteArray, QHostAddress, quint16) |
![]() | |
static void | RefreshDefaultListen (void) |
static QList< QHostAddress > | DefaultListen (void) |
static QList< QHostAddress > | DefaultListenIPv4 (void) |
static QList< QHostAddress > | DefaultListenIPv6 (void) |
static QList< QHostAddress > | DefaultBroadcast (void) |
static QList< QHostAddress > | DefaultBroadcastIPv4 (void) |
static QList< QHostAddress > | DefaultBroadcastIPv6 (void) |
static int | tryListeningPort (QTcpServer *server, int baseport, int range=1, bool *isipv6=nullptr) |
tryListeningPort More... | |
static int | tryBindingPort (QUdpSocket *socket, int baseport, int range=1, bool *isipv6=nullptr) |
tryBindingPort More... | |
![]() | |
virtual void | newUdpDatagram (void) |
virtual void | newTcpConnection (qintptr socket) |
Definition at line 97 of file networkcontrol.h.
NetworkControl::NetworkControl | ( | ) |
Definition at line 83 of file networkcontrol.cpp.
|
override |
Definition at line 250 of file networkcontrol.cpp.
|
privateslot |
Definition at line 377 of file networkcontrol.cpp.
Referenced by NetworkControl().
|
privateslot |
Definition at line 450 of file networkcontrol.cpp.
Referenced by newControlConnection().
|
privateslot |
Definition at line 346 of file networkcontrol.cpp.
Referenced by customEvent(), and newControlConnection().
|
overrideprotected |
Definition at line 281 of file networkcontrol.cpp.
|
private |
Definition at line 464 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand().
|
private |
Definition at line 485 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand().
|
private |
|
private |
Definition at line 590 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand().
|
private |
Definition at line 947 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand().
|
staticprivate |
Definition at line 1103 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand().
|
staticprivate |
Definition at line 1536 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand().
|
staticprivate |
Definition at line 1549 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand().
|
private |
Definition at line 1188 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand().
|
private |
Definition at line 1351 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand().
|
private |
Definition at line 1561 of file networkcontrol.cpp.
Referenced by newControlConnection(), processNetworkControlCommand(), and ~NetworkControl().
|
private |
Definition at line 1567 of file networkcontrol.cpp.
Referenced by customEvent().
|
overrideprivate |
Definition at line 1596 of file networkcontrol.cpp.
|
staticprivate |
Definition at line 1737 of file networkcontrol.cpp.
Referenced by processQuery().
|
staticprivate |
Definition at line 1683 of file networkcontrol.cpp.
Referenced by processQuery().
Definition at line 1792 of file networkcontrol.cpp.
Referenced by processQuery().
|
staticprivate |
Definition at line 1843 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand(), and processPlay().
|
private |
Definition at line 301 of file networkcontrol.cpp.
Referenced by run().
|
private |
Definition at line 363 of file networkcontrol.cpp.
|
staticprivate |
Definition at line 1144 of file networkcontrol.cpp.
Referenced by processTheme().
|
private |
Definition at line 140 of file networkcontrol.h.
Referenced by sendReplyToClient().
Definition at line 141 of file networkcontrol.h.
Referenced by customEvent(), processPlay(), and processQuery().
|
private |
Definition at line 142 of file networkcontrol.h.
Referenced by customEvent(), processPlay(), and processQuery().
|
private |
Definition at line 143 of file networkcontrol.h.
Referenced by NetworkControl(), processHelp(), processJump(), processPlay(), and processTheme().
|
private |
Definition at line 144 of file networkcontrol.h.
Referenced by NetworkControl(), processHelp(), and processKey().
|
private |
Definition at line 145 of file networkcontrol.h.
Referenced by NetworkControl(), and processKey().
|
mutableprivate |
Definition at line 150 of file networkcontrol.h.
Referenced by customEvent(), deleteClient(), newControlConnection(), processNetworkControlCommand(), and ~NetworkControl().
|
private |
Definition at line 152 of file networkcontrol.h.
Referenced by customEvent(), deleteClient(), newControlConnection(), processNetworkControlCommand(), sendReplyToClient(), and ~NetworkControl().
|
private |
Definition at line 154 of file networkcontrol.h.
Referenced by receiveCommand(), and run().
|
private |
Definition at line 155 of file networkcontrol.h.
Referenced by receiveCommand(), run(), and ~NetworkControl().
|
private |
Definition at line 156 of file networkcontrol.h.
Referenced by receiveCommand(), run(), and ~NetworkControl().
|
private |
Definition at line 158 of file networkcontrol.h.
Referenced by customEvent(), newControlConnection(), processNetworkControlCommand(), and ~NetworkControl().
|
private |
Definition at line 159 of file networkcontrol.h.
Referenced by customEvent(), newControlConnection(), processNetworkControlCommand(), and ~NetworkControl().
|
private |
Definition at line 161 of file networkcontrol.h.
Referenced by NetworkControl(), and ~NetworkControl().
Definition at line 162 of file networkcontrol.h.
Referenced by run(), and ~NetworkControl().