CCIMXDesktop
 
Loading...
Searching...
No Matches
NetCardGadget Class Reference

The NetCardGadget class is a netcards to test if the machine is connecting to the internet. More...

#include <netcardgadget.h>

Inheritance diagram for NetCardGadget:
AppCardWidget

Public Member Functions

 Q_DISABLE_COPY (NetCardGadget)
 disable copy
 
 NetCardGadget (DesktopToast *toast, QWidget *parent)
 Construct a new Net Card Gadget object.
 
void invoke_preLaunch_work () override
 invoke_preLaunch_work is the main function to invoke the prelaunching issue
 
void process_once_fresh (NetWorkState status)
 process_once_fresh flush the status for once
 
void operate_comment_label () override
 operate_comment_label
 
- Public Member Functions inherited from AppCardWidget
 Q_DISABLE_COPY (AppCardWidget)
 Disable copy constructor and assignment operator.
 
 AppCardWidget ()=delete
 Default constructor deleted to force usage of parameterized constructor.
 
 AppCardWidget (DesktopToast *toast, QWidget *parent=nullptr)
 Constructs an AppCardWidget.
 
 ~AppCardWidget ()
 Virtual destructor.
 
virtual void setCurrentIcon (const QPixmap &icons)
 Set the current icon for the app card.
 
void invoke_textlabel_stylefresh ()
 invoke_textlabel_stylefresh
 
bool eventFilter (QObject *watched, QEvent *event) override
 Event filter to handle user interaction events.
 

Protected Member Functions

void postAppCardWidget () override
 postAppCardWidget, sometimes, we can use this to post the messages to the binding_toast
 
void setupSelfTextLabelStyle (QLabel *selfTextLabel) override
 textlabel style reset
 
- Protected Member Functions inherited from AppCardWidget
virtual void setHelperFunction (const QString &what)
 setHelperFunction: plainly set the text for shown
 

Additional Inherited Members

- Protected Attributes inherited from AppCardWidget
DesktopToastbinding_toast
 Pointer to the toast widget used for posting messages.
 
Ui::AppCardWidget * ui
 UI object generated from the Qt Designer form.
 

Detailed Description

The NetCardGadget class is a netcards to test if the machine is connecting to the internet.

Constructor & Destructor Documentation

◆ NetCardGadget()

NetCardGadget::NetCardGadget ( DesktopToast toast,
QWidget *  parent 
)
explicit

Construct a new Net Card Gadget object.

Parameters
toast
parent

Member Function Documentation

◆ invoke_preLaunch_work()

void NetCardGadget::invoke_preLaunch_work ( )
overridevirtual

invoke_preLaunch_work is the main function to invoke the prelaunching issue

Note
when system starts, app cards are supposed to do their actions and if not, then do nothing

Implements AppCardWidget.

◆ operate_comment_label()

void NetCardGadget::operate_comment_label ( )
overridevirtual

operate_comment_label

Implements AppCardWidget.

◆ postAppCardWidget()

void NetCardGadget::postAppCardWidget ( )
overrideprotectedvirtual

postAppCardWidget, sometimes, we can use this to post the messages to the binding_toast

Implements AppCardWidget.

◆ process_once_fresh()

void NetCardGadget::process_once_fresh ( NetWorkState  status)

process_once_fresh flush the status for once

Parameters
status

◆ setupSelfTextLabelStyle()

void NetCardGadget::setupSelfTextLabelStyle ( QLabel *  selfTextLabel)
overrideprotectedvirtual

textlabel style reset

Implements AppCardWidget.


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