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

This class creates a TCP server which accepts connections from boblight clients. More...

#include <BoblightServer.h>

Inheritance diagram for BoblightServer:

Public Slots

void start ()
 bind server to network
 
void stop ()
 close server
 
void componentStateChanged (const hyperion::Components component, bool enable)
 
void handleSettingsUpdate (const settings::type &type, const QJsonDocument &config)
 Handle settings update from Hyperion Settingsmanager emit or this constructor. More...
 

Public Member Functions

 BoblightServer (Hyperion *hyperion, const QJsonDocument &config)
 BoblightServer constructor. More...
 
uint16_t getPort () const
 
bool active ()
 

Detailed Description

This class creates a TCP server which accepts connections from boblight clients.

Constructor & Destructor Documentation

§ BoblightServer()

BoblightServer::BoblightServer ( Hyperion hyperion,
const QJsonDocument &  config 
)

BoblightServer constructor.

Parameters
hyperionHyperion instance
portport number on which to start listening for connections

Member Function Documentation

§ active()

bool BoblightServer::active ( )
Returns
true if server is active (bind to a port)

§ getPort()

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

§ handleSettingsUpdate

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

Handle settings update from Hyperion Settingsmanager emit or this constructor.

Parameters
typesettingyType from enum
configconfiguration object

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