/** * SPDX-FileCopyrightText: 2020 Nicolas Fella * SPDX-FileCopyrightText: 2021 Nate Graham * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #pragma once #include #include class Bluetooth : public KQuickConfigModule { Q_OBJECT public: Bluetooth(QObject *parent, const KPluginMetaData &data); Q_INVOKABLE void runWizard(); Q_INVOKABLE void runSendFile(const QString &ubi); Q_INVOKABLE void checkNetworkConnection(const QStringList &uuids, const QString &address); Q_INVOKABLE void setupNetworkConnection(const QString &service, const QString &address, const QString &deviceName); Q_PROPERTY(QString bluetoothStatusAtLogin READ bluetoothStatusAtLogin WRITE setBluetoothStatusAtLogin NOTIFY bluetoothStatusAtLoginChanged) QString bluetoothStatusAtLogin() const; void setBluetoothStatusAtLogin(const QString &newStatus); Q_SIGNALS: void networkAvailable(const QString &service, bool available); QString bluetoothStatusAtLoginChanged(QString newStatus); void errorOccured(const QString &errorMessage); private: void checkNetworkInternal(const QString &service, const QString &address); };