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  bool HandleInbound(SocketHandler *sock, QStringList &slist);
23  bool HandleOutbound(SocketHandler *sock, QStringList &slist);
24 };
25 
26 #endif
QString GetHandlerName(void) override
virtual bool HandleQuery(SocketHandler *, QStringList &, QStringList &)
#define PROTOSERVER_PUBLIC