File indexing completed on 2025-02-16 08:18:42
0001 /* 0002 SPDX-FileCopyrightText: 2013 Lukas Tinkl <ltinkl@redhat.com> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef PLASMA_NM_BT_WIDGET_H 0008 #define PLASMA_NM_BT_WIDGET_H 0009 0010 #include "plasmanm_editor_export.h" 0011 0012 #include <QWidget> 0013 0014 #include <NetworkManagerQt/BluetoothSetting> 0015 0016 #include "settingwidget.h" 0017 0018 namespace Ui 0019 { 0020 class BtWidget; 0021 } 0022 0023 class PLASMANM_EDITOR_EXPORT BtWidget : public SettingWidget 0024 { 0025 Q_OBJECT 0026 public: 0027 explicit BtWidget(const NetworkManager::Setting::Ptr &setting = NetworkManager::Setting::Ptr(), QWidget *parent = nullptr, Qt::WindowFlags f = {}); 0028 ~BtWidget() override; 0029 0030 void loadConfig(const NetworkManager::Setting::Ptr &setting) override; 0031 0032 QVariantMap setting() const override; 0033 0034 bool isValid() const override; 0035 0036 private: 0037 Ui::BtWidget *const m_ui; 0038 }; 0039 0040 #endif // PLASMA_NM_BT_WIDGET_H