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-07-24 17:42:33 +01:00
|
|
|
#ifndef LOOPBACKLINKPROVIDER_H
|
|
|
|
#define LOOPBACKLINKPROVIDER_H
|
2013-06-06 04:57:06 +01:00
|
|
|
|
2013-09-09 17:35:56 +01:00
|
|
|
#include "../linkprovider.h"
|
|
|
|
#include "loopbackdevicelink.h"
|
2015-09-08 08:30:55 +01:00
|
|
|
#include <QPointer>
|
2013-06-18 19:04:53 +01:00
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
class LoopbackLinkProvider : public LinkProvider
|
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-07-24 17:42:33 +01:00
|
|
|
LoopbackLinkProvider();
|
2016-06-20 08:05:02 +01:00
|
|
|
~LoopbackLinkProvider() override;
|
2013-06-17 11:23:08 +01:00
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
QString name() override
|
|
|
|
{
|
|
|
|
return QStringLiteral("LoopbackLinkProvider");
|
|
|
|
}
|
2023-10-01 11:39:59 +01:00
|
|
|
int priority() override
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2013-06-18 19:04:53 +01:00
|
|
|
|
2016-06-20 08:05:02 +01:00
|
|
|
void onStart() override;
|
|
|
|
void onStop() override;
|
|
|
|
void onNetworkChange() override;
|
2023-06-27 12:10:59 +01:00
|
|
|
void onLinkDestroyed(const QString &, DeviceLink *) override
|
|
|
|
{
|
|
|
|
}
|
2013-06-17 11:23:08 +01:00
|
|
|
|
|
|
|
private:
|
2015-09-08 08:30:55 +01:00
|
|
|
QPointer<LoopbackDeviceLink> loopbackDeviceLink;
|
2013-06-06 04:57:06 +01:00
|
|
|
};
|
|
|
|
|
2013-06-18 19:04:53 +01:00
|
|
|
#endif
|