|
MythTV master
|
#include <mythfrontend/networkcontrol.h>
Public Member Functions | |
| NetworkControl () | |
| ~NetworkControl () override | |
Public Member Functions inherited from ServerPool | |
| 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 | |
Signals inherited from ServerPool | |
| void | newConnection (QTcpSocket *) |
| void | newDatagram (QByteArray, QHostAddress, quint16) |
Static Public Member Functions inherited from ServerPool | |
| 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... | |
Protected Slots inherited from ServerPool | |
| virtual void | newUdpDatagram (void) |
| virtual void | newTcpConnection (qintptr socket) |
Definition at line 95 of file networkcontrol.h.
| NetworkControl::NetworkControl | ( | ) |
Definition at line 86 of file networkcontrol.cpp.
|
override |
Definition at line 253 of file networkcontrol.cpp.
|
overrideprivate |
Definition at line 1621 of file networkcontrol.cpp.
|
private |
Definition at line 366 of file networkcontrol.cpp.
|
privateslot |
Definition at line 349 of file networkcontrol.cpp.
Referenced by customEvent(), deleteClient(), and newControlConnection().
|
staticprivate |
Definition at line 1169 of file networkcontrol.cpp.
Referenced by processTheme().
Definition at line 1819 of file networkcontrol.cpp.
Referenced by processQuery().
|
staticprivate |
Definition at line 1762 of file networkcontrol.cpp.
Referenced by processQuery().
|
staticprivate |
Definition at line 1708 of file networkcontrol.cpp.
Referenced by processQuery().
|
privateslot |
Definition at line 382 of file networkcontrol.cpp.
Referenced by NetworkControl().
|
private |
Definition at line 1586 of file networkcontrol.cpp.
Referenced by newControlConnection(), processNetworkControlCommand(), and ~NetworkControl().
|
private |
Definition at line 1376 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand().
|
private |
Definition at line 469 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand().
|
private |
Definition at line 490 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand().
|
private |
|
staticprivate |
Definition at line 1561 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand().
|
private |
Definition at line 304 of file networkcontrol.cpp.
Referenced by run().
|
staticprivate |
Definition at line 1574 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand().
|
private |
Definition at line 595 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand().
|
private |
Definition at line 964 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand().
|
staticprivate |
Definition at line 1128 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand().
|
private |
Definition at line 1213 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand().
|
privateslot |
Definition at line 455 of file networkcontrol.cpp.
Referenced by newControlConnection().
|
overrideprotected |
Definition at line 284 of file networkcontrol.cpp.
|
staticprivate |
Definition at line 1870 of file networkcontrol.cpp.
Referenced by processNetworkControlCommand(), and processPlay().
|
private |
Definition at line 1592 of file networkcontrol.cpp.
Referenced by customEvent().
|
private |
Definition at line 140 of file networkcontrol.h.
Referenced by customEvent(), processPlay(), and processQuery().
|
mutableprivate |
Definition at line 145 of file networkcontrol.h.
Referenced by customEvent(), deleteClient(), newControlConnection(), processNetworkControlCommand(), and ~NetworkControl().
|
private |
Definition at line 146 of file networkcontrol.h.
Referenced by customEvent(), deleteClient(), newControlConnection(), processNetworkControlCommand(), sendReplyToClient(), and ~NetworkControl().
|
private |
Definition at line 155 of file networkcontrol.h.
Referenced by NetworkControl(), and ~NetworkControl().
Definition at line 139 of file networkcontrol.h.
Referenced by customEvent(), processPlay(), and processQuery().
|
private |
Definition at line 141 of file networkcontrol.h.
Referenced by NetworkControl(), processHelp(), processJump(), processPlay(), and processTheme().
|
private |
Definition at line 142 of file networkcontrol.h.
Referenced by NetworkControl(), processHelp(), and processKey().
|
private |
Definition at line 143 of file networkcontrol.h.
Referenced by NetworkControl(), and processKey().
|
private |
Definition at line 150 of file networkcontrol.h.
Referenced by receiveCommand(), run(), and ~NetworkControl().
|
private |
Definition at line 149 of file networkcontrol.h.
Referenced by receiveCommand(), run(), and ~NetworkControl().
|
private |
Definition at line 148 of file networkcontrol.h.
Referenced by receiveCommand(), and run().
|
private |
Definition at line 152 of file networkcontrol.h.
Referenced by customEvent(), newControlConnection(), processNetworkControlCommand(), and ~NetworkControl().
|
private |
Definition at line 153 of file networkcontrol.h.
Referenced by customEvent(), newControlConnection(), processNetworkControlCommand(), and ~NetworkControl().
|
private |
Definition at line 138 of file networkcontrol.h.
Referenced by sendReplyToClient().
Definition at line 156 of file networkcontrol.h.
Referenced by run(), and ~NetworkControl().