trikRuntime
trikScriptRunner::TrikVariablesServer Class Reference

Class for script variables observing, based on HTTP server. More...

#include <trikVariablesServer.h>

Inheritance diagram for trikScriptRunner::TrikVariablesServer:
Collaboration diagram for trikScriptRunner::TrikVariablesServer:

Public Slots

void sendHTTPResponse (const QJsonObject &json)
 Sends HTTP response with JSON data about variables. More...
 

Signals

void getVariables (const QString &propertyName)
 Emitted when there is a new connection with a HTTP-request of variables values. More...
 

Public Member Functions

 TrikVariablesServer ()
 Constructor. More...
 

Detailed Description

Class for script variables observing, based on HTTP server.

Constructor & Destructor Documentation

TrikVariablesServer::TrikVariablesServer ( )

Constructor.

Member Function Documentation

void trikScriptRunner::TrikVariablesServer::getVariables ( const QString &  propertyName)
signal

Emitted when there is a new connection with a HTTP-request of variables values.

Parameters
propertyName- name of variables prefix, i.e prefix "web" for variable "web.light"
void TrikVariablesServer::sendHTTPResponse ( const QJsonObject &  json)
slot

Sends HTTP response with JSON data about variables.

Parameters
json- JSON container for variables values

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