The NetCardGadget class is a netcards to test if the machine is connecting to the internet.
More...
#include <netcardgadget.h>
|
| 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
|
|
| 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.
|
|
|
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
|
|
virtual void | setHelperFunction (const QString &what) |
| setHelperFunction: plainly set the text for shown
|
|
|
DesktopToast * | binding_toast |
| Pointer to the toast widget used for posting messages.
|
|
Ui::AppCardWidget * | ui |
| UI object generated from the Qt Designer form.
|
|
The NetCardGadget class is a netcards to test if the machine is connecting to the internet.
◆ NetCardGadget()
NetCardGadget::NetCardGadget |
( |
DesktopToast * |
toast, |
|
|
QWidget * |
parent |
|
) |
| |
|
explicit |
Construct a new Net Card Gadget object.
- Parameters
-
◆ 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 |
◆ 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
-
◆ setupSelfTextLabelStyle()
void NetCardGadget::setupSelfTextLabelStyle |
( |
QLabel * |
selfTextLabel | ) |
|
|
overrideprotectedvirtual |
The documentation for this class was generated from the following files: