/* * SPDX-FileCopyrightText: 2016 Saikrishna Arcot * SPDX-FileCopyrightText: 2018 Matthijs TIjink * * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #ifndef BLUETOOTHUPLOADJOB_H #define BLUETOOTHUPLOADJOB_H #include #include #include #include #include #include #include class ConnectionMultiplexer; class MultiplexChannel; class BluetoothUploadJob : public QObject { Q_OBJECT public: explicit BluetoothUploadJob(const QSharedPointer &data, ConnectionMultiplexer *connection, QObject *parent = 0); QVariantMap transferInfo() const; void start(); private: QSharedPointer mData; QBluetoothUuid mTransferUuid; QSharedPointer mSocket; void closeConnection(); private Q_SLOTS: void writeSome(); }; #endif // BLUETOOTHUPLOADJOB_H