fpc_diesel 1c6a463c15 feat(bluetooth):add bluetooth plugin
添加蓝牙插件 bug:9128

(cherry picked from commit 7412d26cda31a617318842cb919242558e135a69)

(cherry picked from commit 1f62819e0fc3a97723c386b6cdf2fc68d1318827)
2020-05-14 13:09:26 +08:00

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