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
|
|
|
#include "bluetoothdownloadjob.h"
|
2019-03-08 18:18:01 +00:00
|
|
|
#include "connectionmultiplexer.h"
|
|
|
|
#include "multiplexchannel.h"
|
2015-03-01 20:17:46 +00:00
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
BluetoothDownloadJob::BluetoothDownloadJob(ConnectionMultiplexer *connection, const QVariantMap &transferInfo, QObject *parent)
|
2016-11-11 14:55:16 +00:00
|
|
|
: QObject(parent)
|
2015-03-01 20:17:46 +00:00
|
|
|
{
|
2019-03-08 18:18:01 +00:00
|
|
|
QBluetoothUuid id{transferInfo.value(QStringLiteral("uuid")).toString()};
|
|
|
|
mSocket = QSharedPointer<MultiplexChannel>{connection->getChannel(id).release()};
|
2016-11-11 14:55:16 +00:00
|
|
|
}
|
2015-03-01 20:17:46 +00:00
|
|
|
|
2016-11-11 14:55:16 +00:00
|
|
|
QSharedPointer<QIODevice> BluetoothDownloadJob::payload() const
|
|
|
|
{
|
|
|
|
return mSocket.staticCast<QIODevice>();
|
|
|
|
}
|
2015-03-01 20:17:46 +00:00
|
|
|
|
2016-11-11 14:55:16 +00:00
|
|
|
void BluetoothDownloadJob::start()
|
|
|
|
{
|
|
|
|
}
|