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

#include <ConnectionStatusWidget.h>

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

Public Member Functions

 ConnectionStatusWidget (QWidget *parent=nullptr)
 
void setSensor (Connection *sensor)
 
void cancelConnection ()
 
void endCancelConnection ()
 
void setConnectionState (ConnectionState state)
 
void clearConnectionStatus ()
 
void setCustomTitle (const TranslatedString &custom_title)
 
void setHorizontal (bool horizontal)
 
void setActAsLog (bool act_like_log)
 
void setColor (RGBColor color)
 
virtual void setProgress (fltp04 progress) override
 
- Public Member Functions inherited from LogStream
virtual ~LogStream ()
 
virtual void attach (ProgressInfo *stream)
 
virtual void detach (ProgressInfo *stream)
 
virtual void allowCancel (bool)
 
virtual void addMessages (const Buffer< LogMessage > &messages)
 
void clearLinks ()
 
void setIgnoreMessages (bool ignore)
 
bool ignoringMessages () const
 

Protected Slots

void connectionStateUpdatedSlot (ConnectionState state)
 
void deletedSlot ()
 

Protected Member Functions

void updateTitle ()
 
void init ()
 
virtual void addMessage (const LogMessage &message) override
 

Protected Attributes

QPointer< Connectionm_sensor
 
QCustomLabelm_title_label
 
QCustomLabelm_status_label
 
ProgressWidgetm_progress_widget
 
Logm_log
 
TranslatedString m_custom_title
 
ConnectionState m_connection_state = ConnectionState::e_no_connection
 
fltp04 m_pending_progress = Constant<fltp04>::NaN
 
bool m_is_horizontal
 
bool m_owns_log = false
 
bool m_has_connection_object = false
 
bool m_act_like_log = false
 
- Protected Attributes inherited from LogStream
Buffer< ProgressInfo * > m_linked_logs
 
bool m_ignore_message = false
 

Constructor & Destructor Documentation

◆ ConnectionStatusWidget()

ConnectionStatusWidget ( QWidget * parent = nullptr)
explicit

Member Function Documentation

◆ addMessage()

void addMessage ( const LogMessage & message)
overrideprotectedvirtual

Implements LogStream.

◆ cancelConnection()

void cancelConnection ( )

◆ clearConnectionStatus()

void clearConnectionStatus ( )

◆ connectionStateUpdatedSlot

void connectionStateUpdatedSlot ( ConnectionState state)
protectedslot

◆ deletedSlot

void deletedSlot ( )
protectedslot

◆ endCancelConnection()

void endCancelConnection ( )

◆ init()

void init ( )
protected

◆ setActAsLog()

void setActAsLog ( bool act_like_log)

◆ setColor()

void setColor ( RGBColor color)

◆ setConnectionState()

void setConnectionState ( ConnectionState state)

◆ setCustomTitle()

void setCustomTitle ( const TranslatedString & custom_title)

◆ setHorizontal()

void setHorizontal ( bool horizontal)

◆ setProgress()

void setProgress ( fltp04 progress)
overridevirtual

Implements LogStream.

◆ setSensor()

void setSensor ( Connection * sensor)

◆ updateTitle()

void updateTitle ( )
protected

Member Data Documentation

◆ m_act_like_log

bool m_act_like_log = false
protected

◆ m_connection_state

ConnectionState m_connection_state = ConnectionState::e_no_connection
protected

◆ m_custom_title

TranslatedString m_custom_title
protected

◆ m_has_connection_object

bool m_has_connection_object = false
protected

◆ m_is_horizontal

bool m_is_horizontal
protected

◆ m_log

Log* m_log
protected

◆ m_owns_log

bool m_owns_log = false
protected

◆ m_pending_progress

fltp04 m_pending_progress = Constant<fltp04>::NaN
protected

◆ m_progress_widget

ProgressWidget* m_progress_widget
protected

◆ m_sensor

QPointer<Connection> m_sensor
protected

◆ m_status_label

QCustomLabel* m_status_label
protected

◆ m_title_label

QCustomLabel* m_title_label
protected

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