File indexing completed on 2024-05-12 04:58:50

0001 /*
0002  * SPDX-FileCopyrightText: 2016 Saikrishna Arcot <saiarcot895@gmail.com>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  */
0006 
0007 #include "bluetoothdownloadjob.h"
0008 #include "connectionmultiplexer.h"
0009 #include "multiplexchannel.h"
0010 
0011 BluetoothDownloadJob::BluetoothDownloadJob(ConnectionMultiplexer *connection, const QVariantMap &transferInfo, QObject *parent)
0012     : QObject(parent)
0013 {
0014     QBluetoothUuid id{transferInfo.value(QStringLiteral("uuid")).toString()};
0015     mSocket = QSharedPointer<MultiplexChannel>{connection->getChannel(id).release()};
0016 }
0017 
0018 QSharedPointer<QIODevice> BluetoothDownloadJob::payload() const
0019 {
0020     return mSocket.staticCast<QIODevice>();
0021 }
0022 
0023 void BluetoothDownloadJob::start()
0024 {
0025 }
0026 
0027 #include "moc_bluetoothdownloadjob.cpp"