liblightify
|
#include <liblightify++.hpp>
Public Member Functions | |
Lightify (const char *host, unsigned int port=4000) | |
virtual | ~Lightify () |
int | Open (void) |
int | Close (void) |
int | ScanNodes (void) |
int | ScanGroups (void) |
struct lightify_ctx * | GetCtx (void) |
int | TurnAllOnOff (bool onoff) |
Lightify_Node * | GetNode (long long mac) |
Lightify_Node * | GetNodeAtPosX (int x) const |
Lightify_Group * | GetGroupAtPosX (int pos) const |
const struct lightify_ctx * | GetLightifyContext (void) const |
int | IsOpen (void) const |
int | SetHostname (const char *host, unsigned int port=4000) |
int | GetNodesCount (void) |
int | GetGroupsCount (void) |
Lightify-Class to encapsulate the library context and offer access to the management functionality.
Definition at line 304 of file liblightify++.hpp.
|
inline |
Default Constructor Throws invalid_argument if port is >0xffff.
Definition at line 308 of file liblightify++.hpp.
|
inlinevirtual |
Definition at line 329 of file liblightify++.hpp.
|
inline |
Close the (previously) opened socket.
Definition at line 394 of file liblightify++.hpp.
|
inline |
Get direct access to the lighitfy context
Definition at line 483 of file liblightify++.hpp.
|
inline |
|
inline |
Definition at line 567 of file liblightify++.hpp.
|
inline |
Get the library context – for direct library access.
Definition at line 529 of file liblightify++.hpp.
|
inline |
Get the node object for a given MAC address
Definition at line 494 of file liblightify++.hpp.
|
inline |
|
inline |
Definition at line 563 of file liblightify++.hpp.
|
inline |
Have the connection been opened?
Definition at line 538 of file liblightify++.hpp.
|
inline |
Open socket / prepare communication returns 0 on success, negative on error.
Definition at line 339 of file liblightify++.hpp.
|
inline |
Scan for known groups and generate a Group object for every returned group.
Definition at line 448 of file liblightify++.hpp.
|
inline |
Scan for nodes
Definition at line 410 of file liblightify++.hpp.
|
inline |
Set a hostname / port combination
host | string used as host (hostname of IP) |
port | to be used, default 4000 |
Definition at line 552 of file liblightify++.hpp.
|
inline |
Actions that can be broadcasted.
Definition at line 488 of file liblightify++.hpp.