2013-06-06 04:57:06 +01:00
|
|
|
/**
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
|
2013-06-06 04:57:06 +01: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
|
2013-06-06 04:57:06 +01:00
|
|
|
*/
|
|
|
|
|
2013-09-01 21:13:03 +01:00
|
|
|
#ifndef LOOPBACKDEVICELINK_H
|
|
|
|
#define LOOPBACKDEVICELINK_H
|
|
|
|
|
2013-09-09 17:35:56 +01:00
|
|
|
#include "../devicelink.h"
|
2020-11-26 10:28:32 +00:00
|
|
|
#include <QSslCertificate>
|
2013-06-06 04:57:06 +01:00
|
|
|
|
2013-07-24 17:42:33 +01:00
|
|
|
class LoopbackLinkProvider;
|
2013-07-03 02:52:44 +01:00
|
|
|
|
2013-08-28 22:47:39 +01:00
|
|
|
class LoopbackDeviceLink
|
2013-07-24 17:42:33 +01:00
|
|
|
: public DeviceLink
|
2013-06-06 04:57:06 +01:00
|
|
|
{
|
2013-07-03 02:52:44 +01:00
|
|
|
Q_OBJECT
|
2013-06-06 04:57:06 +01:00
|
|
|
public:
|
2013-08-28 22:47:39 +01:00
|
|
|
LoopbackDeviceLink(const QString& d, LoopbackLinkProvider* a);
|
2013-06-18 02:05:32 +01:00
|
|
|
|
2016-06-20 08:05:02 +01:00
|
|
|
QString name() override;
|
2018-03-04 19:48:51 +00:00
|
|
|
bool sendPacket(NetworkPacket& np) override;
|
2013-06-06 04:57:06 +01:00
|
|
|
|
2016-06-20 08:05:02 +01:00
|
|
|
void userRequestsPair() override { setPairStatus(Paired); }
|
|
|
|
void userRequestsUnpair() override { setPairStatus(NotPaired); }
|
2020-11-26 10:28:32 +00:00
|
|
|
|
|
|
|
QSslCertificate certificate() const override { return QSslCertificate(); }
|
2013-06-06 04:57:06 +01:00
|
|
|
};
|
|
|
|
|
2013-09-01 21:13:03 +01:00
|
|
|
#endif
|