2016-11-11 14:55:16 +00:00
|
|
|
/*
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2016 Saikrishna Arcot <saiarcot895@gmail.com>
|
2015-03-01 20:17:46 +00:00
|
|
|
*
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
2015-03-01 20:17:46 +00:00
|
|
|
*/
|
|
|
|
|
2016-11-11 14:55:16 +00:00
|
|
|
#ifndef BLUETOOTHDOWNLOADJOB_H
|
|
|
|
#define BLUETOOTHDOWNLOADJOB_H
|
2015-03-01 20:17:46 +00:00
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
#include <QBluetoothAddress>
|
|
|
|
#include <QBluetoothSocket>
|
|
|
|
#include <QBluetoothUuid>
|
2016-11-11 14:55:16 +00:00
|
|
|
#include <QIODevice>
|
2022-09-10 22:23:52 +01:00
|
|
|
#include <QSharedPointer>
|
2016-11-11 14:55:16 +00:00
|
|
|
#include <QThread>
|
|
|
|
#include <QVariantMap>
|
2015-03-01 20:17:46 +00:00
|
|
|
|
2019-03-08 18:18:01 +00:00
|
|
|
class ConnectionMultiplexer;
|
|
|
|
class MultiplexChannel;
|
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
class BluetoothDownloadJob : public QObject
|
2015-03-01 20:17:46 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2022-09-10 22:23:52 +01:00
|
|
|
explicit BluetoothDownloadJob(ConnectionMultiplexer *connection, const QVariantMap &transferInfo, QObject *parent = 0);
|
2015-03-01 20:17:46 +00:00
|
|
|
|
2016-11-11 14:55:16 +00:00
|
|
|
QSharedPointer<QIODevice> payload() const;
|
|
|
|
void start();
|
2022-09-10 22:23:52 +01:00
|
|
|
|
2015-03-01 20:17:46 +00:00
|
|
|
private:
|
2019-03-08 18:18:01 +00:00
|
|
|
QSharedPointer<MultiplexChannel> mSocket;
|
2015-03-01 20:17:46 +00:00
|
|
|
};
|
|
|
|
|
2016-11-11 14:55:16 +00:00
|
|
|
#endif // BLUETOOTHDOWNLOADJOB_H
|