TreeFrogFramework  1.29
Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Static Protected Member Functions | List of all members
TPublisher Class Reference

#include <tpublisher.h>

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

Public Member Functions

void subscribe (const QString &topic, bool local, TAbstractWebSocket *socket)
 
void unsubscribe (const QString &topic, TAbstractWebSocket *socket)
 
void unsubscribeFromAll (TAbstractWebSocket *socket)
 
void publish (const QString &topic, const QString &text, TAbstractWebSocket *socket)
 
void publish (const QString &topic, const QByteArray &binary, TAbstractWebSocket *socket)
 

Static Public Member Functions

static TPublisherinstance ()
 

Protected Slots

void receiveSystemBus ()
 

Protected Member Functions

Pub * create (const QString &topic)
 
Pub * get (const QString &topic)
 
void release (const QString &topic)
 

Static Protected Member Functions

static QObject * castToObject (TAbstractWebSocket *socket)
 

Detailed Description

The TPublisher class provides a means of publish subscribe messaging for websocket.

Member Function Documentation

◆ castToObject()

QObject * TPublisher::castToObject ( TAbstractWebSocket *  socket)
staticprotected

◆ create()

Pub * TPublisher::create ( const QString &  topic)
protected

◆ get()

Pub * TPublisher::get ( const QString &  topic)
protected

◆ instance()

TPublisher * TPublisher::instance ( )
static

◆ publish() [1/2]

void TPublisher::publish ( const QString &  topic,
const QByteArray &  binary,
TAbstractWebSocket *  socket 
)

◆ publish() [2/2]

void TPublisher::publish ( const QString &  topic,
const QString &  text,
TAbstractWebSocket *  socket 
)

◆ receiveSystemBus

void TPublisher::receiveSystemBus ( )
protectedslot

◆ release()

void TPublisher::release ( const QString &  topic)
protected

◆ subscribe()

void TPublisher::subscribe ( const QString &  topic,
bool  local,
TAbstractWebSocket *  socket 
)

◆ unsubscribe()

void TPublisher::unsubscribe ( const QString &  topic,
TAbstractWebSocket *  socket 
)

◆ unsubscribeFromAll()

void TPublisher::unsubscribeFromAll ( TAbstractWebSocket *  socket)

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