hyperion.ng
Signals | Public Member Functions | List of all members
JsonCB Class Reference
Inheritance diagram for JsonCB:

Signals

void newCallback (QJsonObject)
 Emits whenever a new json mesage callback is ready to send. More...
 

Public Member Functions

 JsonCB (QObject *parent)
 
bool subscribeFor (const QString &cmd)
 Subscribe to future data updates given by cmd. More...
 
QStringList getCommands ()
 Get all possible commands to subscribe for. More...
 
QStringList getSubscribedCommands ()
 Get all subscribed commands. More...
 

Member Function Documentation

§ getCommands()

QStringList JsonCB::getCommands ( )
inline

Get all possible commands to subscribe for.

Returns
The list of commands

§ getSubscribedCommands()

QStringList JsonCB::getSubscribedCommands ( )
inline

Get all subscribed commands.

Returns
The list of commands

§ newCallback

void JsonCB::newCallback ( QJsonObject  )
signal

Emits whenever a new json mesage callback is ready to send.

Parameters
TheJsonObject message

§ subscribeFor()

bool JsonCB::subscribeFor ( const QString &  cmd)

Subscribe to future data updates given by cmd.

Parameters
cmdThe cmd which will be subscribed for
Returns
True on success, false if not found

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