hyperion.ng
Public Slots | Public Member Functions | List of all members
JsonServer Class Reference

This class creates a TCP server which accepts connections wich can then send in JSON encoded commands. More...

#include <JsonServer.h>

Inheritance diagram for JsonServer:

Public Slots

void handleSettingsUpdate (const settings::type &type, const QJsonDocument &config)
 Handle settings update from Hyperion Settingsmanager emit or this constructor. More...
 

Public Member Functions

 JsonServer (const QJsonDocument &config)
 JsonServer constructor. More...
 
uint16_t getPort () const
 

Detailed Description

This class creates a TCP server which accepts connections wich can then send in JSON encoded commands.

This interface to Hyperion is used by hyperion-remote to control the leds

Constructor & Destructor Documentation

§ JsonServer()

JsonServer::JsonServer ( const QJsonDocument &  config)

JsonServer constructor.

Parameters
Theconfiguration

Member Function Documentation

§ getPort()

uint16_t JsonServer::getPort ( ) const
Returns
the port number on which this TCP listens for incoming connections

§ handleSettingsUpdate

void JsonServer::handleSettingsUpdate ( const settings::type &  type,
const QJsonDocument &  config 
)
slot

Handle settings update from Hyperion Settingsmanager emit or this constructor.

Parameters
typesettings type from enum
configconfiguration object

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