kylin-nm/plugins/netconnect/lanitem.h

46 lines
977 B
C
Raw Normal View History

2021-10-27 12:28:16 +08:00
#ifndef LANITEM_H
#define LANITEM_H
#include <QWidget>
#include <QPushButton>
#include <QHBoxLayout>
#include <QLabel>
#include <QVariantMap>
#include <QTimer>
#include <QGSettings>
#include <QDebug>
#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 LanItem : public QPushButton
{
public:
LanItem(bool isAcitve, QWidget *parent = nullptr);
~LanItem();
public:
QLabel * iconLabel = nullptr;
InfoButton * infoLabel = nullptr;
FixLabel * titileLabel = nullptr;
QLabel * statusLabel = nullptr;
int waitPage;
int countCurrentTime;
public:
void startLoading();
void setWaitPage(int waitPage);
void setCountCurrentTime(int countCurrentTime);
void waitAnimStep();
void stopLoading();
bool loading = false;
bool isAcitve = false;
QString uuid;
QString dbusPath;
private:
QTimer *waitTimer = nullptr;
QGSettings *themeGsettings = nullptr;
};
#endif // LANITEM_H