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
Collaboration diagram for WebSocketExtension:
Collaboration graph


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 137 of file websocket.h.

Constructor & Destructor Documentation

◆ WebSocketExtension()

WebSocketExtension::WebSocketExtension ( )

◆ ~WebSocketExtension()

WebSocketExtension::~WebSocketExtension ( )

Member Function Documentation

◆ HandleTextFrame()

virtual bool WebSocketExtension::HandleTextFrame ( const WebSocketFrame )

Reimplemented in WebSocketMythEvent.

Definition at line 145 of file websocket.h.

◆ HandleBinaryFrame()

virtual bool WebSocketExtension::HandleBinaryFrame ( const WebSocketFrame )

Definition at line 146 of file websocket.h.

◆ SendTextMessage

void WebSocketExtension::SendTextMessage ( const QString &  )

◆ SendBinaryMessage

void WebSocketExtension::SendBinaryMessage ( const QByteArray &  )

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