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

A dial and information text that shows the current status of a connection. Typically shown when a connection is being attempted to keep the user informed on the status of the connection attempt. More...

#include <ConnectionStatusWidget.h>

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

Public Member Functions

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

Protected Slots

void connectionStateUpdatedSlot (ConnectionState state)
 
void deletedSlot ()
 

Protected Member Functions

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

Protected Attributes

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

Detailed Description

A dial and information text that shows the current status of a connection. Typically shown when a connection is being attempted to keep the user informed on the status of the connection attempt.


Constructor & Destructor Documentation

◆ ConnectionStatusWidget()

ConnectionStatusWidget ( QWidget * parent = nullptr)
explicit

Member Function Documentation

◆ addMessage()

virtual 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()

virtual 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>::Invalid
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 file: