MythTV  master
websocket_mythevent.h
Go to the documentation of this file.
1 #ifndef WEBSOCKET_MYTHEVENT_H_
2 #define WEBSOCKET_MYTHEVENT_H_
3 
4 #include "websocket.h"
5 
6 #include <QStringList>
7 
15 {
16  Q_OBJECT
17 
18  public:
20  ~WebSocketMythEvent() override;
21 
22  bool HandleTextFrame(const WebSocketFrame &frame) override; // WebSocketExtension
23  void customEvent(QEvent* /*event*/) override; // QObject
24 
25  private:
26  QStringList m_filters;
27  bool m_sendEvents {false};
28 };
29 
30 #endif
WebSocketFrame
A representation of a single WebSocket frame.
Definition: websocket.h:75
WebSocketMythEvent::~WebSocketMythEvent
~WebSocketMythEvent() override
Definition: websocket_mythevent.cpp:13
websocket.h
WebSocketExtension
Base class for extensions.
Definition: websocket.h:136
WebSocketMythEvent::m_filters
QStringList m_filters
Definition: websocket_mythevent.h:26
WebSocketMythEvent::customEvent
void customEvent(QEvent *) override
Definition: websocket_mythevent.cpp:57
WebSocketMythEvent::WebSocketMythEvent
WebSocketMythEvent()
Definition: websocket_mythevent.cpp:7
WebSocketMythEvent::m_sendEvents
bool m_sendEvents
Definition: websocket_mythevent.h:27
WebSocketMythEvent::HandleTextFrame
bool HandleTextFrame(const WebSocketFrame &frame) override
Definition: websocket_mythevent.cpp:18
WebSocketMythEvent
Extension for sending MythEvents over WebSocketServer.
Definition: websocket_mythevent.h:14