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

42 lines
850 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 LOOPBACKLINKPROVIDER_H
#define LOOPBACKLINKPROVIDER_H
2013-06-06 04:57:06 +01:00
#include "../linkprovider.h"
#include "loopbackdevicelink.h"
#include <QPointer>
class LoopbackLinkProvider : public LinkProvider
2013-06-06 04:57:06 +01:00
{
Q_OBJECT
2013-06-06 04:57:06 +01:00
public:
LoopbackLinkProvider();
~LoopbackLinkProvider() override;
2013-06-17 11:23:08 +01:00
QString name() override
{
return QStringLiteral("LoopbackLinkProvider");
}
int priority() override
{
return 0;
}
void onStart() override;
void onStop() override;
void onNetworkChange() override;
void onLinkDestroyed(const QString &, DeviceLink *) override
{
}
2013-06-17 11:23:08 +01:00
private:
QPointer<LoopbackDeviceLink> loopbackDeviceLink;
2013-06-06 04:57:06 +01:00
};
#endif