ConnectionStatusIndicator

Visual indicator for associate connection state.

Declared in src/libs/libpair/pair/channel/ConnectionStatusIndicator.hpp
Inherits QWidget
Group pair

Detailed description

ConnectionStatusIndicator shows connection state through color with pulse animations and automatic fade from recently discovered to inactive states.

ConnectionStatusIndicator

See also AssociateListItemWidget.

Property documentation

state property

state : ConnectionState

This property holds the connection state that the indicator shows.

NotRecent paints gray, RecentlyDiscovered paints blue and Connected paints green. The default is NotRecent.

A change to RecentlyDiscovered starts a fade from blue to gray that lasts ten minutes. When the fade completes, the state changes to NotRecent and stateChanged() is emitted. The setter does nothing until configure() has run.

Access functions:

  • ConnectionStatusIndicator::ConnectionState state() const
  • void setState(ConnectionStatusIndicator::ConnectionState state)

Notifier signal:

  • void stateChanged(ConnectionStatusIndicator::ConnectionState state)