kdeconnect-kde/core/backends/devicelink.cpp

21 lines
524 B
C++
Raw Permalink 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
*/
#include "devicelink.h"
#include "linkprovider.h"
2013-06-06 04:57:06 +01:00
DeviceLink::DeviceLink(const QString &deviceId, LinkProvider *parent)
: QObject(parent)
2013-06-18 02:05:32 +01:00
{
connect(this, &QObject::destroyed, [this, deviceId, parent]() {
parent->onLinkDestroyed(deviceId, this);
});
this->priorityFromProvider = parent->priority();
}
#include "moc_devicelink.cpp"