File indexing completed on 2024-05-12 04:58:50
0001 /* 0002 * SPDX-FileCopyrightText: 2016 Saikrishna Arcot <saiarcot895@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #ifndef BLUETOOTHDOWNLOADJOB_H 0008 #define BLUETOOTHDOWNLOADJOB_H 0009 0010 #include <QBluetoothAddress> 0011 #include <QBluetoothSocket> 0012 #include <QBluetoothUuid> 0013 #include <QIODevice> 0014 #include <QSharedPointer> 0015 #include <QThread> 0016 #include <QVariantMap> 0017 0018 class ConnectionMultiplexer; 0019 class MultiplexChannel; 0020 0021 class BluetoothDownloadJob : public QObject 0022 { 0023 Q_OBJECT 0024 public: 0025 explicit BluetoothDownloadJob(ConnectionMultiplexer *connection, const QVariantMap &transferInfo, QObject *parent = 0); 0026 0027 QSharedPointer<QIODevice> payload() const; 0028 void start(); 0029 0030 private: 0031 QSharedPointer<MultiplexChannel> mSocket; 0032 }; 0033 0034 #endif // BLUETOOTHDOWNLOADJOB_H