MythTV  master
Signals | Public Member Functions | List of all members
WebSocketExtension Class Reference

Base class for extensions. More...

#include <websocket.h>

Inheritance diagram for WebSocketExtension:
Inheritance graph
[legend]
Collaboration diagram for WebSocketExtension:
Collaboration graph
[legend]

Signals

void SendTextMessage (const QString &)
 
void SendBinaryMessage (const QByteArray &)
 

Public Member Functions

 WebSocketExtension ()=default
 
 ~WebSocketExtension () override=default
 
virtual bool HandleTextFrame (const WebSocketFrame &)
 
virtual bool HandleBinaryFrame (const WebSocketFrame &)
 

Detailed Description

Base class for extensions.

Extensions enable different features to be operate via a websocket connection without cluttering the general connection/parsing classes.

Extensions can be registered and deregistered, so features can be enabled or disabled easily. A frontend might offer different services to a backend for example.

Definition at line 136 of file websocket.h.

Constructor & Destructor Documentation

◆ WebSocketExtension()

WebSocketExtension::WebSocketExtension ( )
default

◆ ~WebSocketExtension()

WebSocketExtension::~WebSocketExtension ( )
overridedefault

Member Function Documentation

◆ HandleTextFrame()

virtual bool WebSocketExtension::HandleTextFrame ( const WebSocketFrame )
inlinevirtual

Reimplemented in WebSocketMythEvent.

Definition at line 144 of file websocket.h.

◆ HandleBinaryFrame()

virtual bool WebSocketExtension::HandleBinaryFrame ( const WebSocketFrame )
inlinevirtual

Definition at line 145 of file websocket.h.

◆ SendTextMessage

void WebSocketExtension::SendTextMessage ( const QString &  )
signal

◆ SendBinaryMessage

void WebSocketExtension::SendBinaryMessage ( const QByteArray &  )
signal

The documentation for this class was generated from the following file: