MythTV  master
basehandler.h
Go to the documentation of this file.
1 #ifndef _BASESOCKETREQUESTHANDLER_H_
2 #define _BASESOCKETREQUESTHANDLER_H_
3 
4 #include <QString>
5 #include <QStringList>
6 
7 #include "mythsocket.h"
8 #include "mythsocketmanager.h"
9 #include "socketrequesthandler.h"
10 #include "sockethandler.h"
11 #include "mythprotoserverexp.h"
12 
14 {
15  Q_OBJECT
16  public:
17  bool HandleAnnounce(MythSocket *socket, QStringList &commands,
18  QStringList &slist) override; // SocketRequestHandler
19  bool HandleQuery(SocketHandler *sock, QStringList &commands,
20  QStringList &slist) override; // SocketRequestHandler
21  QString GetHandlerName(void) override // SocketRequestHandler
22  { return "BASIC"; }
23 
24  private:
25  bool HandleQueryLoad(SocketHandler *sock);
26  bool HandleQueryUptime(SocketHandler *sock);
27  bool HandleQueryHostname(SocketHandler *sock);
28  bool HandleQueryMemStats(SocketHandler *sock);
29  bool HandleQueryTimeZone(SocketHandler *sock);
30 };
31 
32 #endif
QString GetHandlerName(void) override
Definition: basehandler.h:21
virtual bool HandleAnnounce(MythSocket *, QStringList &, QStringList &)
virtual bool HandleQuery(SocketHandler *, QStringList &, QStringList &)
#define PROTOSERVER_PUBLIC
Class for communcating between myth backends and frontends.
Definition: mythsocket.h:26