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

Public Slots

void streamLedcolorsUpdate (const std::vector< ColorRgb > &ledColors)
 is called whenever the current Hyperion instance pushes new led raw values (if enabled) More...
 
void setImage (const Image< ColorRgb > &image)
 push images whenever hyperion emits (if enabled)
 
void incommingLogMessage (const Logger::T_LOG_MESSAGE &)
 process and push new log messages from logger (if enabled)
 

Signals

void callbackMessage (QJsonObject)
 Signal emits with the reply message provided with handleMessage()
 
void forwardJsonMessage (QJsonObject)
 Signal emits whenever a jsonmessage should be forwarded.
 

Public Member Functions

 JsonAPI (QString peerAddress, Logger *log, QObject *parent, bool noListener=false)
 Constructor. More...
 
void handleMessage (const QString &message)
 Handle an incoming JSON message. More...
 

Constructor & Destructor Documentation

§ JsonAPI()

JsonAPI::JsonAPI ( QString  peerAddress,
Logger log,
QObject *  parent,
bool  noListener = false 
)

Constructor.

Parameters
peerAddressprovide the Address of the peer
logThe Logger class of the creator
parentParent QObject
noListenerif true, this instance won't listen for hyperion push events

Member Function Documentation

§ handleMessage()

void JsonAPI::handleMessage ( const QString &  message)

Handle an incoming JSON message.

Parameters
messagethe incoming message as string

§ streamLedcolorsUpdate

void JsonAPI::streamLedcolorsUpdate ( const std::vector< ColorRgb > &  ledColors)
slot

is called whenever the current Hyperion instance pushes new led raw values (if enabled)

Parameters
ledColorsThe current ledColors

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