#ifndef LANITEM_H #define LANITEM_H #include #include #include #include #include #include #include #include #include #include #include "fixlabel.h" #include "infobutton.h" 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; public: void startLoading(); void stopLoading(); bool loading = false; bool isAcitve = false; QString uuid; QString dbusPath; protected: void paintEvent(QPaintEvent *); private: QTimer *waitTimer = nullptr; QGSettings *themeGsettings = nullptr; QList loadIcons; int currentIconIndex=0; private slots: void updateIcon(); }; #endif // LANITEM_H