Class for Hue REST connections; returns HueRestClient objects.
More...
#include <HueRestClient.qm.dox.h>
|
const | ConnectionScheme |
| Connection entry info.
|
|
|
hash< ConnectionSchemeInfo > | getConnectionSchemeInfoImpl () |
| Returns the ConnectionSchemeInfo hash for this object.
|
|
HueRestClient | getImpl (bool connect=True, *hash< auto > rtopts) |
| returns a HueRestClient object More...
|
|
| setChildCapabilities () |
| Sets child data provider capabilities.
|
|
Class for Hue REST connections; returns HueRestClient objects.
This class implements all options of RestClientConnection; in addition, this class provides the following default values for the following options:
- See also
- HueRestClient::HueRestClient::constructor() for more information on the above options
◆ constructor()
HueRestClient::HueRestConnection::constructor |
( |
string |
name, |
|
|
string |
description, |
|
|
string |
url = HueRestClient::DefaultUrl , |
|
|
hash< auto > |
attributes = {} , |
|
|
hash< auto > |
options = {} |
|
) |
| |
creates the HueRestConnection object
- Parameters
-
name | the name of the connection |
description | connection description |
url | connection URL (potentially with password info) |
attributes | various attributes. See below |
options | connection options |
See ConnectionProvider::AbstractConnection::constructor() for attributes
and options
reference.
- Exceptions
-
CONNECTION-OPTION-ERROR | missing or invalid connection option |
◆ getDataProvider()
DataProvider::AbstractDataProvider HueRestClient::HueRestConnection::getDataProvider |
( |
| ) |
|
returns a data provider object for this connection
- Returns
- a data provider object for this connection
◆ getImpl()
HueRestClient HueRestClient::HueRestConnection::getImpl |
( |
bool |
connect = True , |
|
|
*hash< auto > |
rtopts |
|
) |
| |
|
privatevirtual |
◆ hasDataProvider()
bool HueRestClient::HueRestConnection::hasDataProvider |
( |
| ) |
|