MythTV  master
outboundhandler.h
Go to the documentation of this file.
1 #ifndef _OUTBOUNDREQUESTHANDLER_H_
2 #define _OUTBOUNDREQUESTHANDLER_H_
3 
4 #include <QTimer>
5 #include <QString>
6 #include <QStringList>
7 
8 #include "mythsocket.h"
9 #include "mythsocketmanager.h"
10 #include "socketrequesthandler.h"
11 #include "sockethandler.h"
12 #include "mythprotoserverexp.h"
13 
14 class MainServer;
15 
17 {
18  Q_OBJECT
19  public:
21  QString GetHandlerName(void) override // SocketRequestHandler
22  { return "OUTBOUND"; }
23  void connectionClosed(MythSocket *socket) override; // SocketRequestHandler
24 
25  public slots:
26  void ConnectToMaster(void);
27 
28  protected:
29  virtual bool AnnounceSocket(void) { return false; }
30  MythSocket *m_socket { nullptr };
31 
32  private:
33  bool DoConnectToMaster(void);
34  QTimer m_timer;
35 };
36 
37 #endif
unsigned int slots[4]
Definition: element.c:38
virtual bool AnnounceSocket(void)
#define PROTOSERVER_PUBLIC
virtual void connectionClosed(MythSocket *)
QString GetHandlerName(void) override
Class for communcating between myth backends and frontends.
Definition: mythsocket.h:26