kdeconnect-kde/core/backends/bluetooth/bluetoothdownloadjob.h

35 lines
815 B
C
Raw Normal View History

2016-11-11 14:55:16 +00:00
/*
* 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
*/
2016-11-11 14:55:16 +00:00
#ifndef BLUETOOTHDOWNLOADJOB_H
#define BLUETOOTHDOWNLOADJOB_H
2016-11-11 14:55:16 +00:00
#include <QIODevice>
#include <QThread>
#include <QVariantMap>
#include <QSharedPointer>
#include <QBluetoothAddress>
#include <QBluetoothUuid>
#include <QBluetoothSocket>
class ConnectionMultiplexer;
class MultiplexChannel;
2016-11-11 14:55:16 +00:00
class BluetoothDownloadJob
: public QObject
{
Q_OBJECT
public:
explicit BluetoothDownloadJob(ConnectionMultiplexer *connection, const QVariantMap& transferInfo, QObject* parent = 0);
2016-11-11 14:55:16 +00:00
QSharedPointer<QIODevice> payload() const;
void start();
private:
QSharedPointer<MultiplexChannel> mSocket;
};
2016-11-11 14:55:16 +00:00
#endif // BLUETOOTHDOWNLOADJOB_H