CCIMXDesktop
 
Loading...
Searching...
No Matches
netcardgadget.h
1#ifndef NETCARDGADGET_H
2#define NETCARDGADGET_H
3#include "appcardwidget.h"
4#include "builtin/core/netability_scanner/NetAbilityScanEnum.h"
5
11public:
12 NetCardGadget() = delete;
24 explicit NetCardGadget(DesktopToast* toast, QWidget* parent);
30 void invoke_preLaunch_work() override;
35 void process_once_fresh(NetWorkState status);
39 void operate_comment_label() override;
40
41protected:
46 void postAppCardWidget() override;
47 void setupSelfTextLabelStyle(QLabel* selfTextLabel) override;
48private:
49 NetWorkState cache_reachability;
50};
51
52#endif // NETCARDGADGET_H
AppCardWidget is a lightweight widget used to post messages to a DesktopToast.
Definition appcardwidget.h:18
The DesktopToast class is the toast handle classes using less lock messages queue to display the mess...
Definition DesktopToast.h:15
The NetCardGadget class is a netcards to test if the machine is connecting to the internet.
Definition netcardgadget.h:10
void postAppCardWidget() override
postAppCardWidget, sometimes, we can use this to post the messages to the binding_toast
Definition netcardgadget.cpp:39
void operate_comment_label() override
operate_comment_label
Definition netcardgadget.cpp:94
void invoke_preLaunch_work() override
invoke_preLaunch_work is the main function to invoke the prelaunching issue
Definition netcardgadget.cpp:35
Q_DISABLE_COPY(NetCardGadget)
disable copy
void setupSelfTextLabelStyle(QLabel *selfTextLabel) override
textlabel style reset
Definition netcardgadget.cpp:61
void process_once_fresh(NetWorkState status)
process_once_fresh flush the status for once
Definition netcardgadget.cpp:72