MythTV  master
socketrequesthandler.h
Go to the documentation of this file.
1 #ifndef _SOCKETREQUESTHANDLER_H_
2 #define _SOCKETREQUESTHANDLER_H_
3 
4 #include <QString>
5 
6 #include "mythsocket.h"
7 #include "mythprotoserverexp.h"
8 #include "sockethandler.h"
9 
10 class MythSocketManager;
11 
13 {
14  Q_OBJECT
15  public:
16  SocketRequestHandler() : m_parent(nullptr) {};
17  ~SocketRequestHandler() = default;
18 
19  virtual bool HandleAnnounce(MythSocket */*socket*/, QStringList &/*commands*/,
20  QStringList &/*slist*/)
21  { return false; }
22  virtual bool HandleQuery(SocketHandler */*socket*/, QStringList &/*commands*/,
23  QStringList &/*slist*/)
24  { return false; }
25  virtual QString GetHandlerName(void) { return "BASE"; }
26  virtual void connectionAnnounced(MythSocket */*socket*/, QStringList &/*commands*/,
27  QStringList &/*slist*/) { }
28  virtual void connectionClosed(MythSocket */*socket*/) { }
29  virtual void SetParent(MythSocketManager *parent) { m_parent = parent; }
30  MythSocketManager *GetParent(void) { return m_parent; }
31 
32  protected:
34 };
35 
36 #endif
virtual void connectionAnnounced(MythSocket *, QStringList &, QStringList &)
MythSocketManager * GetParent(void)
virtual void SetParent(MythSocketManager *parent)
virtual bool HandleAnnounce(MythSocket *, QStringList &, QStringList &)
virtual bool HandleQuery(SocketHandler *, QStringList &, QStringList &)
#define PROTOSERVER_PUBLIC
MythSocketManager * m_parent
virtual void connectionClosed(MythSocket *)
Class for communcating between myth backends and frontends.
Definition: mythsocket.h:26
virtual QString GetHandlerName(void)