/** * SPDX-FileCopyrightText: 2016 Saikrishna Arcot * * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #ifndef BLUETOOTHDEVICELINK_H #define BLUETOOTHDEVICELINK_H #include #include #include #include #include "../devicelink.h" class ConnectionMultiplexer; class MultiplexChannel; class BluetoothLinkProvider; class KDECONNECTCORE_EXPORT BluetoothDeviceLink : public DeviceLink { Q_OBJECT public: BluetoothDeviceLink(const DeviceInfo &deviceInfo, BluetoothLinkProvider *parent, ConnectionMultiplexer *connection, QSharedPointer socket); bool sendPacket(NetworkPacket &np) override; DeviceInfo deviceInfo() const override { return mDeviceInfo; } private Q_SLOTS: void dataReceived(); private: ConnectionMultiplexer *mConnection; QSharedPointer mChannel; DeviceInfo mDeviceInfo; void sendMessage(const QString mMessage); }; #endif