34 lines
818 B
C++
34 lines
818 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2016 Saikrishna Arcot <saiarcot895@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
|
*/
|
|
|
|
#ifndef BLUETOOTHDOWNLOADJOB_H
|
|
#define BLUETOOTHDOWNLOADJOB_H
|
|
|
|
#include <QBluetoothAddress>
|
|
#include <QBluetoothSocket>
|
|
#include <QBluetoothUuid>
|
|
#include <QIODevice>
|
|
#include <QSharedPointer>
|
|
#include <QThread>
|
|
#include <QVariantMap>
|
|
|
|
class ConnectionMultiplexer;
|
|
class MultiplexChannel;
|
|
|
|
class BluetoothDownloadJob : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit BluetoothDownloadJob(ConnectionMultiplexer *connection, const QVariantMap &transferInfo, QObject *parent = nullptr);
|
|
|
|
QSharedPointer<QIODevice> payload() const;
|
|
void start();
|
|
|
|
private:
|
|
QSharedPointer<MultiplexChannel> mSocket;
|
|
};
|
|
|
|
#endif // BLUETOOTHDOWNLOADJOB_H
|