Hyelicht 2.0
Controller application for the Hyelicht shelf. Paint on the shelf with colors, turn on the fireplace mode, and more.
|
Client for the remoting server provided by ShelfModel. More...
#include <remoteshelfmodel.h>
Signals | |
void | readyChanged () const |
Whether the connection is healthy and remote data is available. | |
void | serverAddressChanged () const |
The address used to connect to a ShelfModel instance has changed. | |
void | enabledChanged () const |
void | rowsChanged () const |
void | columnsChanged () const |
void | densityChanged () const |
void | wallThicknessChanged () const |
void | shelfRowsChanged () const |
void | shelfColumnsChanged () const |
void | brightnessChanged () const |
void | animateBrightnessTransitionsChanged () const |
void | averageColorChanged () const |
void | animateAverageColorTransitionsChanged () const |
void | transitionDurationChanged () const |
void | animatingChanged () const |
Public Member Functions | |
RemoteShelfModel (QObject *parent=nullptr) | |
Create a remote client to a ShelfModel. | |
QUrl | serverAddress () const |
The address used to connect to a ShelfModel instance. | |
void | setServerAddress (const QUrl &url) |
Set the address used to connect to a ShelfModel instance. | |
bool | ready () const |
Whether the connection is healthy and remote data is available. | |
bool | enabled () const |
void | setEnabled (bool enabled) |
int | rows () const |
void | setRows (int rows) |
int | columns () const |
void | setColumns (int columns) |
int | density () const |
void | setDensity (int density) |
int | wallThickness () const |
void | setWallThickness (int thickness) |
qreal | brightness () const |
void | setBrightness (qreal brightness) |
bool | animateBrightnessTransitions () const |
void | setAnimateBrightnessTransitions (bool animate) |
QColor | averageColor () const |
void | setAverageColor (const QColor &color) |
bool | animateAverageColorTransitions () const |
void | setAnimateAverageColorTransitions (bool animate) |
int | transitionDuration () const |
void | setTransitionDuration (int duration) |
bool | animating () const |
void | setAnimating (bool animating) |
void | classBegin () override |
Implements the QQmlParserStatus interface. | |
void | componentComplete () override |
Implements the QQmlParserStatus interface. | |
Properties | |
QUrl | serverAddress |
Address used to connect to a ShelfModel instance. | |
bool | ready |
Whether the connection is healthy and remote data is available. | |
bool | enabled |
int | rows |
int | columns |
int | density |
int | wallThickness |
qreal | brightness |
bool | animateBrightnessTransitions |
QColor | averageColor |
bool | animateAverageColorTransitions |
int | transitionDuration |
bool | animating |
Client for the remoting server provided by ShelfModel.
Connects to the remoting server provided by a ShelfModel instance and makes most of the ShelfModel API available out of process or over the network. This allows running the onboard GUI out of process and also enables the PC/Android offboard instances of the application.
For detailed documentation of the mirrored API please see ShelfModel.
Communication between RemoteShelfModel and ShelfModel is implemented using Qt Remote Objects.
Implements QQmlParserStatus
for use from QML.
|
explicit |
Create a remote client to a ShelfModel.
parent | Parent object |
bool RemoteShelfModel::animateAverageColorTransitions | ( | ) | const |
|
signal |
bool RemoteShelfModel::animateBrightnessTransitions | ( | ) | const |
|
signal |
bool RemoteShelfModel::animating | ( | ) | const |
|
signal |
QColor RemoteShelfModel::averageColor | ( | ) | const |
|
signal |
qreal RemoteShelfModel::brightness | ( | ) | const |
|
signal |
int RemoteShelfModel::columns | ( | ) | const |
|
signal |
int RemoteShelfModel::density | ( | ) | const |
|
signal |
bool RemoteShelfModel::enabled | ( | ) | const |
|
signal |
bool RemoteShelfModel::ready | ( | ) | const |
Whether the connection is healthy and remote data is available.
|
signal |
Whether the connection is healthy and remote data is available.
int RemoteShelfModel::rows | ( | ) | const |
|
signal |
QUrl RemoteShelfModel::serverAddress | ( | ) | const |
The address used to connect to a ShelfModel instance.
tcp://
or local:
.
|
signal |
The address used to connect to a ShelfModel instance has changed.
void RemoteShelfModel::setAnimateAverageColorTransitions | ( | bool | animate | ) |
void RemoteShelfModel::setAnimateBrightnessTransitions | ( | bool | animate | ) |
void RemoteShelfModel::setAnimating | ( | bool | animating | ) |
void RemoteShelfModel::setAverageColor | ( | const QColor & | color | ) |
void RemoteShelfModel::setBrightness | ( | qreal | brightness | ) |
void RemoteShelfModel::setColumns | ( | int | columns | ) |
void RemoteShelfModel::setDensity | ( | int | density | ) |
void RemoteShelfModel::setEnabled | ( | bool | enabled | ) |
void RemoteShelfModel::setRows | ( | int | rows | ) |
void RemoteShelfModel::setServerAddress | ( | const QUrl & | url | ) |
Set the address used to connect to a ShelfModel instance.
url | Server address, e.g. tcp:// or local: . |
void RemoteShelfModel::setTransitionDuration | ( | int | duration | ) |
void RemoteShelfModel::setWallThickness | ( | int | thickness | ) |
|
signal |
|
signal |
int RemoteShelfModel::transitionDuration | ( | ) | const |
|
signal |
int RemoteShelfModel::wallThickness | ( | ) | const |
|
signal |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
read |
Whether the connection is healthy and remote data is available.
|
readwrite |
|
readwrite |
Address used to connect to a ShelfModel instance.
Can be e.g. tcp://
or local:
.
Defaults to tcp://192
.168.178.129:8042.
|
readwrite |
|
readwrite |