MythTV  master
messagehandler.h
Go to the documentation of this file.
1 #ifndef MESSAGEHANDLER_H
2 #define MESSAGEHANDLER_H
3 
4 #include <QEvent>
5 #include <QStringList>
6 
7 #include "socketrequesthandler.h"
8 #include "sockethandler.h"
9 
11 {
12  Q_OBJECT
13  public:
14  MessageHandler(void);
15  bool HandleQuery(SocketHandler *socket, QStringList &commands,
16  QStringList &slist) override; // SocketRequestHandler
17  QString GetHandlerName(void) override // SocketRequestHandler
18  { return "MESSAGE"; }
19  void customEvent(QEvent *e) override; // QObject
20 
21  private:
22  static bool HandleInbound(SocketHandler *sock, QStringList &slist);
23  static bool HandleOutbound(SocketHandler *sock, QStringList &slist);
24 };
25 
26 #endif // MESSAGEHANDLER_H
e
QDomElement e
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:1417
MessageHandler
Definition: messagehandler.h:11
socketrequesthandler.h
sockethandler.h
SocketRequestHandler::HandleQuery
virtual bool HandleQuery(SocketHandler *, QStringList &, QStringList &)
Definition: socketrequesthandler.h:22
PROTOSERVER_PUBLIC
#define PROTOSERVER_PUBLIC
Definition: mythprotoserverexp.h:9
MessageHandler::GetHandlerName
QString GetHandlerName(void) override
Definition: messagehandler.h:17
SocketHandler
Definition: sockethandler.h:17
SocketRequestHandler
Definition: socketrequesthandler.h:13