46feeda0cb
Overriding and defaulting them in the header doesn't make sense For the dbus interfaces, we don't have any reasources to clean up or memory to be released. Meaning we can drop those lines too
36 lines
671 B
C++
36 lines
671 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 DEVICELINK_H
|
|
#define DEVICELINK_H
|
|
|
|
#include <QObject>
|
|
|
|
#include "deviceinfo.h"
|
|
#include "networkpacket.h"
|
|
|
|
class LinkProvider;
|
|
|
|
class DeviceLink : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
DeviceLink(const QString &deviceId, LinkProvider *parent);
|
|
|
|
QString deviceId() const
|
|
{
|
|
return deviceInfo().id;
|
|
}
|
|
|
|
virtual bool sendPacket(NetworkPacket &np) = 0;
|
|
|
|
virtual DeviceInfo deviceInfo() const = 0;
|
|
|
|
Q_SIGNALS:
|
|
void receivedPacket(const NetworkPacket &np);
|
|
};
|
|
|
|
#endif
|