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
|
|
|
|
2016-11-11 14:55:16 +00:00
|
|
|
#include <QIODevice>
|
|
|
|
#include <QThread>
|
|
|
|
#include <QVariantMap>
|
|
|
|
#include <QSharedPointer>
|
|
|
|
#include <QBluetoothAddress>
|
|
|
|
#include <QBluetoothUuid>
|
|
|
|
#include <QBluetoothSocket>
|
2015-03-01 20:17:46 +00:00
|
|
|
|
2019-03-08 18:18:01 +00:00
|
|
|
class ConnectionMultiplexer;
|
|
|
|
class MultiplexChannel;
|
|
|
|
|
2016-11-11 14:55:16 +00:00
|
|
|
class BluetoothDownloadJob
|
|
|
|
: public QObject
|
2015-03-01 20:17:46 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2019-03-08 18:18:01 +00: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();
|
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
|