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

26 lines
743 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
#include "bluetoothdownloadjob.h"
#include "connectionmultiplexer.h"
#include "multiplexchannel.h"
BluetoothDownloadJob::BluetoothDownloadJob(ConnectionMultiplexer *connection, const QVariantMap& transferInfo, QObject* parent)
2016-11-11 14:55:16 +00:00
: QObject(parent)
{
QBluetoothUuid id{transferInfo.value(QStringLiteral("uuid")).toString()};
mSocket = QSharedPointer<MultiplexChannel>{connection->getChannel(id).release()};
2016-11-11 14:55:16 +00:00
}
2016-11-11 14:55:16 +00:00
QSharedPointer<QIODevice> BluetoothDownloadJob::payload() const
{
return mSocket.staticCast<QIODevice>();
}
2016-11-11 14:55:16 +00:00
void BluetoothDownloadJob::start()
{
}