Hyelicht 2.0
Controller application for the Hyelicht shelf. Paint on the shelf with colors, turn on the fireplace mode, and more.
Loading...
Searching...
No Matches
Signals | Public Member Functions | Properties | List of all members
RemoteShelfModel Class Reference

Client for the remoting server provided by ShelfModel. More...

#include <remoteshelfmodel.h>

Inheritance diagram for RemoteShelfModel:
Inheritance graph
[legend]
Collaboration diagram for RemoteShelfModel:
Collaboration graph
[legend]

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
 

Detailed Description

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.

See also
ShelfModel
QAbstractListModel
QQmlParserStatus

Constructor & Destructor Documentation

◆ RemoteShelfModel()

RemoteShelfModel::RemoteShelfModel ( QObject *  parent = nullptr)
explicit

Create a remote client to a ShelfModel.

Parameters
parentParent object

Member Function Documentation

◆ animateAverageColorTransitions()

bool RemoteShelfModel::animateAverageColorTransitions ( ) const

◆ animateAverageColorTransitionsChanged

void RemoteShelfModel::animateAverageColorTransitionsChanged ( ) const
signal

◆ animateBrightnessTransitions()

bool RemoteShelfModel::animateBrightnessTransitions ( ) const

◆ animateBrightnessTransitionsChanged

void RemoteShelfModel::animateBrightnessTransitionsChanged ( ) const
signal

◆ animating()

bool RemoteShelfModel::animating ( ) const

◆ animatingChanged

void RemoteShelfModel::animatingChanged ( ) const
signal

◆ averageColor()

QColor RemoteShelfModel::averageColor ( ) const

◆ averageColorChanged

void RemoteShelfModel::averageColorChanged ( ) const
signal

◆ brightness()

qreal RemoteShelfModel::brightness ( ) const

◆ brightnessChanged

void RemoteShelfModel::brightnessChanged ( ) const
signal

◆ columns()

int RemoteShelfModel::columns ( ) const

◆ columnsChanged

void RemoteShelfModel::columnsChanged ( ) const
signal

◆ density()

int RemoteShelfModel::density ( ) const

◆ densityChanged

void RemoteShelfModel::densityChanged ( ) const
signal

◆ enabled()

bool RemoteShelfModel::enabled ( ) const

◆ enabledChanged

void RemoteShelfModel::enabledChanged ( ) const
signal

◆ ready()

bool RemoteShelfModel::ready ( ) const

Whether the connection is healthy and remote data is available.

Returns
Ready or not.
See also
serverAddress

◆ readyChanged

void RemoteShelfModel::readyChanged ( ) const
signal

Whether the connection is healthy and remote data is available.

See also
ready

◆ rows()

int RemoteShelfModel::rows ( ) const

◆ rowsChanged

void RemoteShelfModel::rowsChanged ( ) const
signal

◆ serverAddress()

QUrl RemoteShelfModel::serverAddress ( ) const

The address used to connect to a ShelfModel instance.

Returns
Server address, e.g. tcp:// or local:.
See also
serverAddress (property)
setServerAddress
serverAddressChanged

◆ serverAddressChanged

void RemoteShelfModel::serverAddressChanged ( ) const
signal

The address used to connect to a ShelfModel instance has changed.

See also
serverAddress
setServerAddress

◆ setAnimateAverageColorTransitions()

void RemoteShelfModel::setAnimateAverageColorTransitions ( bool  animate)

◆ setAnimateBrightnessTransitions()

void RemoteShelfModel::setAnimateBrightnessTransitions ( bool  animate)

◆ setAnimating()

void RemoteShelfModel::setAnimating ( bool  animating)

◆ setAverageColor()

void RemoteShelfModel::setAverageColor ( const QColor &  color)

◆ setBrightness()

void RemoteShelfModel::setBrightness ( qreal  brightness)

◆ setColumns()

void RemoteShelfModel::setColumns ( int  columns)

◆ setDensity()

void RemoteShelfModel::setDensity ( int  density)

◆ setEnabled()

void RemoteShelfModel::setEnabled ( bool  enabled)

◆ setRows()

void RemoteShelfModel::setRows ( int  rows)

◆ setServerAddress()

void RemoteShelfModel::setServerAddress ( const QUrl &  url)

Set the address used to connect to a ShelfModel instance.

Parameters
urlServer address, e.g. tcp:// or local:.
See also
serverAddress
serverAddressChanged

◆ setTransitionDuration()

void RemoteShelfModel::setTransitionDuration ( int  duration)

◆ setWallThickness()

void RemoteShelfModel::setWallThickness ( int  thickness)

◆ shelfColumnsChanged

void RemoteShelfModel::shelfColumnsChanged ( ) const
signal
See also
ShelfModel::shelfColumnsChanged

◆ shelfRowsChanged

void RemoteShelfModel::shelfRowsChanged ( ) const
signal
See also
ShelfModel::shelfRowsChanged

◆ transitionDuration()

int RemoteShelfModel::transitionDuration ( ) const

◆ transitionDurationChanged

void RemoteShelfModel::transitionDurationChanged ( ) const
signal

◆ wallThickness()

int RemoteShelfModel::wallThickness ( ) const

◆ wallThicknessChanged

void RemoteShelfModel::wallThicknessChanged ( ) const
signal

Property Documentation

◆ animateAverageColorTransitions

bool RemoteShelfModel::animateAverageColorTransitions
readwrite

◆ animateBrightnessTransitions

bool RemoteShelfModel::animateBrightnessTransitions
readwrite

◆ animating

bool RemoteShelfModel::animating
readwrite

◆ averageColor

QColor RemoteShelfModel::averageColor
readwrite

◆ brightness

qreal RemoteShelfModel::brightness
readwrite

◆ columns

int RemoteShelfModel::columns
readwrite

◆ density

int RemoteShelfModel::density
readwrite

◆ enabled

bool RemoteShelfModel::enabled
readwrite

◆ ready

bool RemoteShelfModel::ready
read

Whether the connection is healthy and remote data is available.

See also
serverAddress

◆ rows

int RemoteShelfModel::rows
readwrite

◆ serverAddress

QUrl RemoteShelfModel::serverAddress
readwrite

Address used to connect to a ShelfModel instance.

Can be e.g. tcp:// or local:.

Defaults to tcp://192.168.178.129:8042.

See also
setServerAddress
serverAddressChanged

◆ transitionDuration

int RemoteShelfModel::transitionDuration
readwrite

◆ wallThickness

int RemoteShelfModel::wallThickness
readwrite

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