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 // OUTBOUNDREQUESTHANDLER_H
OutboundRequestHandler::GetHandlerName
QString GetHandlerName(void) override
Definition: outboundhandler.h:21
OutboundRequestHandler
Definition: outboundhandler.h:16
mythsocketmanager.h
MainServer
Definition: mainserver.h:113
SocketRequestHandler::connectionClosed
virtual void connectionClosed(MythSocket *)
Definition: socketrequesthandler.h:28
socketrequesthandler.h
MythSocket
Class for communcating between myth backends and frontends.
Definition: mythsocket.h:26
OutboundRequestHandler::m_timer
QTimer m_timer
Definition: outboundhandler.h:34
mythprotoserverexp.h
sockethandler.h
PROTOSERVER_PUBLIC
#define PROTOSERVER_PUBLIC
Definition: mythprotoserverexp.h:9
OutboundRequestHandler::AnnounceSocket
virtual bool AnnounceSocket(void)
Definition: outboundhandler.h:29
SocketRequestHandler
Definition: socketrequesthandler.h:12
mythsocket.h