kylin-nm/plugins/wlanconnect/wlanitem.h

44 lines
1001 B
C
Raw Normal View History

2021-10-27 12:28:16 +08:00
#ifndef WLANITEM_H
#define WLANITEM_H
#include <QWidget>
#include <QPushButton>
#include <QHBoxLayout>
#include <QLabel>
#include <QVariantMap>
#include <QTimer>
#include <QDebug>
#include <QGSettings>
#include <QImage>
#include "fixlabel.h"
2021-10-28 13:39:46 +08:00
#include "../component/InfoButton/infobutton.h"
2021-10-27 12:28:16 +08:00
class WlanItem : public QPushButton
{
public:
WlanItem(bool bAcitve, bool isLock, QWidget *parent = nullptr);
~WlanItem();
public:
QLabel * iconLabel = nullptr;
InfoButton * infoLabel = nullptr;
FixLabel * titileLabel = nullptr;
QLabel * statusLabel = nullptr;
int waitPage;
int countCurrentTime;
QString uuid = "";
public:
void startLoading();
void setWaitPage(int waitPage);
void setCountCurrentTime(int countCurrentTime);
void waitAnimStep();
void stopLoading();
bool isAcitve = false;
bool loading = false;
bool isLock = false;
private:
QTimer *waitTimer = nullptr;
QGSettings *themeGsettings = nullptr;
};
#endif // WLANITEM_H