API Documentation
Loading...
Searching...
No Matches
ConnectionWidget Class Reference

A small widget that can be shown that allows the user to attempt a connection, disconnect, or even define a connection. More...

#include <ConnectionWidget.h>

Inheritance diagram for ConnectionWidget:
[legend]
Collaboration diagram for ConnectionWidget:
[legend]

Signals

void connectionModifiedSignal ()
 
void connectionRequested ()
 

Public Member Functions

void clearConnection ()
 
ConnectionInfo connectionInfo () const
 
 ConnectionWidget (QWidget *parent=nullptr)
 
void setAllowClearButton (bool show)
 
void setAllowConnect (bool allow_connect)
 
void setAllowDisconnect (bool allow_disconnect)
 
void setButtonState (Button::ButtonState button_state)
 
void setConnection (const ConnectionInfo &sensor)
 
void setShowBluetoothSettingsButton (bool show)
 
void setShowWiFiSettingsButton (bool show)
 

Protected Slots

void updatedSlot ()
 

Protected Member Functions

void updateLayout ()
 

Protected Attributes

bool m_allow_clear_button = false
 
bool m_allow_connect = false
 
bool m_allow_disconnect = false
 
Buttonm_clear_button = nullptr
 
ConnectionInfo m_connection_info
 
Buttonm_connection_setup_button = nullptr
 
Buttonm_connection_state_button = nullptr
 
ConnectionSetupWidgetm_setup_widget = nullptr
 

Detailed Description

A small widget that can be shown that allows the user to attempt a connection, disconnect, or even define a connection.


Constructor & Destructor Documentation

◆ ConnectionWidget()

ConnectionWidget ( QWidget * parent = nullptr)
explicit

Member Function Documentation

◆ clearConnection()

void clearConnection ( )

◆ connectionInfo()

ConnectionInfo connectionInfo ( ) const
inline

◆ connectionModifiedSignal

void connectionModifiedSignal ( )
signal

◆ connectionRequested

void connectionRequested ( )
signal

◆ setAllowClearButton()

void setAllowClearButton ( bool show)

◆ setAllowConnect()

void setAllowConnect ( bool allow_connect)

◆ setAllowDisconnect()

void setAllowDisconnect ( bool allow_disconnect)

◆ setButtonState()

void setButtonState ( Button::ButtonState button_state)

◆ setConnection()

void setConnection ( const ConnectionInfo & sensor)

◆ setShowBluetoothSettingsButton()

void setShowBluetoothSettingsButton ( bool show)

◆ setShowWiFiSettingsButton()

void setShowWiFiSettingsButton ( bool show)

◆ updatedSlot

void updatedSlot ( )
protectedslot

◆ updateLayout()

void updateLayout ( )
protected

Member Data Documentation

◆ m_allow_clear_button

bool m_allow_clear_button = false
protected

◆ m_allow_connect

bool m_allow_connect = false
protected

◆ m_allow_disconnect

bool m_allow_disconnect = false
protected

◆ m_clear_button

Button* m_clear_button = nullptr
protected

◆ m_connection_info

ConnectionInfo m_connection_info
protected

◆ m_connection_setup_button

Button* m_connection_setup_button = nullptr
protected

◆ m_connection_state_button

Button* m_connection_state_button = nullptr
protected

◆ m_setup_widget

ConnectionSetupWidget* m_setup_widget = nullptr
protected

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