mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00

添加蓝牙插件 bug:9128 (cherry picked from commit 7412d26cda31a617318842cb919242558e135a69) (cherry picked from commit 1f62819e0fc3a97723c386b6cdf2fc68d1318827)
44 lines
1002 B
C++
44 lines
1002 B
C++
#ifndef WIRELIST_H
|
|
#define WIRELIST_H
|
|
|
|
#include <QScrollArea>
|
|
#include <QPointer>
|
|
#include <QVBoxLayout>
|
|
#include <QLabel>
|
|
|
|
#include <WiredDevice>
|
|
#include <dpicturesequenceview.h>
|
|
#include <DSwitchButton>
|
|
|
|
DWIDGET_USE_NAMESPACE
|
|
|
|
class WireList : public QScrollArea
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
WireList(dde::network::WiredDevice *device, QWidget *parent = nullptr);
|
|
|
|
public slots:
|
|
void changeConnections(const QList<QJsonObject> &connections);
|
|
void changeActiveWiredConnectionInfo(const QJsonObject &connInfo);
|
|
void changeActiveConnections(const QList<QJsonObject> &activeConns);
|
|
void changeActiveConnectionsInfo(const QList<QJsonObject> &activeConnInfoList);
|
|
void deviceEnabled(bool enabled);
|
|
void updateConnectionList();
|
|
|
|
private slots:
|
|
void loadConnectionList();
|
|
|
|
private:
|
|
QPointer<dde::network::WiredDevice> m_device;
|
|
|
|
QTimer *m_updateAPTimer;
|
|
|
|
QLabel *m_deviceName;
|
|
DSwitchButton *m_switchBtn;
|
|
|
|
QVBoxLayout *m_centralLayout;
|
|
};
|
|
|
|
#endif // WIRELIST_H
|