db546e7608
Equivalent to this Android MR (see description there): https://invent.kde.org/network/kdeconnect-android/-/merge_requests/374
37 lines
792 B
C++
37 lines
792 B
C++
/**
|
|
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
|
*/
|
|
|
|
#ifndef LOOPBACKLINKPROVIDER_H
|
|
#define LOOPBACKLINKPROVIDER_H
|
|
|
|
#include "../linkprovider.h"
|
|
#include "loopbackdevicelink.h"
|
|
#include <QPointer>
|
|
|
|
class LoopbackLinkProvider : public LinkProvider
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
LoopbackLinkProvider();
|
|
~LoopbackLinkProvider() override;
|
|
|
|
QString name() override
|
|
{
|
|
return QStringLiteral("LoopbackLinkProvider");
|
|
}
|
|
|
|
void onStart() override;
|
|
void onStop() override;
|
|
void onNetworkChange() override;
|
|
void onLinkDestroyed(const QString &, DeviceLink *) override
|
|
{
|
|
}
|
|
|
|
private:
|
|
QPointer<LoopbackDeviceLink> loopbackDeviceLink;
|
|
};
|
|
|
|
#endif
|