kdeconnect-kde/core/backends/devicelink.cpp
Albert Vaca Cintora db546e7608 Add DeviceInfo class
Equivalent to this Android MR (see description there): https://invent.kde.org/network/kdeconnect-android/-/merge_requests/374
2023-06-27 11:10:59 +00:00

18 lines
441 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
*/
#include "devicelink.h"
#include "linkprovider.h"
DeviceLink::DeviceLink(const QString &deviceId, LinkProvider *parent)
: QObject(parent)
{
connect(this, &QObject::destroyed, [this, deviceId, parent]() {
parent->onLinkDestroyed(deviceId, this);
});
}