TreeFrogFramework  1.18
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 ()
 
static void instantiate ()
 

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

QObject * TPublisher::castToObject ( TAbstractWebSocket *  socket)
staticprotected
Pub * TPublisher::create ( const QString &  topic)
protected
Pub * TPublisher::get ( const QString &  topic)
protected
TPublisher * TPublisher::instance ( )
static
void TPublisher::instantiate ( )
static
void TPublisher::publish ( const QString &  topic,
const QString &  text,
TAbstractWebSocket *  socket 
)
void TPublisher::publish ( const QString &  topic,
const QByteArray &  binary,
TAbstractWebSocket *  socket 
)
void TPublisher::receiveSystemBus ( )
protectedslot
void TPublisher::release ( const QString &  topic)
protected
void TPublisher::subscribe ( const QString &  topic,
bool  local,
TAbstractWebSocket *  socket 
)
void TPublisher::unsubscribe ( const QString &  topic,
TAbstractWebSocket *  socket 
)
void TPublisher::unsubscribeFromAll ( TAbstractWebSocket *  socket)

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