kdeconnect-kde/core/backends/loopback/loopbackdevicelink.h

40 lines
797 B
C
Raw Normal View History

2013-06-06 04:57:06 +01:00
/**
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
2013-06-06 04:57:06 +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
*/
#ifndef LOOPBACKDEVICELINK_H
#define LOOPBACKDEVICELINK_H
#include "../devicelink.h"
#include <QSslCertificate>
2013-06-06 04:57:06 +01:00
class LoopbackLinkProvider;
class LoopbackDeviceLink : public DeviceLink
2013-06-06 04:57:06 +01:00
{
Q_OBJECT
2013-06-06 04:57:06 +01:00
public:
LoopbackDeviceLink(const QString &d, LoopbackLinkProvider *a);
2013-06-18 02:05:32 +01:00
QString name() override;
bool sendPacket(NetworkPacket &np) override;
void userRequestsPair() override
{
setPairStatus(Paired);
}
void userRequestsUnpair() override
{
setPairStatus(NotPaired);
}
QSslCertificate certificate() const override
{
return QSslCertificate();
}
2013-06-06 04:57:06 +01:00
};
#endif