MythTV  master
sockethandler.h
Go to the documentation of this file.
1 // -*- Mode: c++ -*-
2 
3 #ifndef _SOCKETHANDLER_H_
4 #define _SOCKETHANDLER_H_
5 
6 #include <QString>
7 #include <QMutex>
8 #include <QStringList>
9 
10 #include "mythsocket.h"
11 #include "referencecounter.h"
12 #include "mythprotoserverexp.h"
13 
14 class MythSocketManager;
15 
17 {
18  public:
20  QString hostname);
21  ~SocketHandler();
22 
23  bool DoesBlockShutdown(void) { return m_blockShutdown; }
24  bool GetsStandardEvents(void) { return m_standardEvents; }
25  bool GetsSystemEvents(void) { return m_systemEvents; }
26 
27  QString GetHostname(void) { return m_hostname; }
28 
29  MythSocket *GetSocket(void) { return m_socket; }
30  MythSocketManager *GetParent(void) { return m_parent; }
31 
32  bool WriteStringList(const QStringList &strlist);
33  bool SendReceiveStringList(QStringList &strlist, uint min_reply_length=0);
34 
35  void BlockShutdown(bool block) { m_blockShutdown = block; }
36  void AllowStandardEvents(bool allow){ m_standardEvents = allow; }
37  void AllowSystemEvents(bool allow) { m_systemEvents = allow; }
38 
39  private:
43 
46 
47  QString m_hostname;
48 };
49 
50 #endif
MythSocketManager * m_parent
Definition: sockethandler.h:45
QString GetHostname(void)
Definition: sockethandler.h:27
General purpose reference counter.
void AllowStandardEvents(bool allow)
Definition: sockethandler.h:36
unsigned int uint
Definition: compat.h:140
void BlockShutdown(bool block)
Definition: sockethandler.h:35
bool GetsSystemEvents(void)
Definition: sockethandler.h:25
bool m_standardEvents
Definition: sockethandler.h:41
string hostname
Definition: caa.py:17
bool m_blockShutdown
Definition: sockethandler.h:40
MythSocket * GetSocket(void)
Definition: sockethandler.h:29
#define PROTOSERVER_PUBLIC
QString m_hostname
Definition: sockethandler.h:47
MythSocket * m_socket
Definition: sockethandler.h:44
Class for communcating between myth backends and frontends.
Definition: mythsocket.h:26
bool GetsStandardEvents(void)
Definition: sockethandler.h:24
void AllowSystemEvents(bool allow)
Definition: sockethandler.h:37
MythSocketManager * GetParent(void)
Definition: sockethandler.h:30
bool DoesBlockShutdown(void)
Definition: sockethandler.h:23