File indexing completed on 2024-04-28 04:57:01

0001 /**
0002  * SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  */
0006 
0007 #include "devicelink.h"
0008 
0009 #include "linkprovider.h"
0010 
0011 DeviceLink::DeviceLink(const QString &deviceId, LinkProvider *parent)
0012     : QObject(parent)
0013 {
0014     connect(this, &QObject::destroyed, [this, deviceId, parent]() {
0015         parent->onLinkDestroyed(deviceId, this);
0016     });
0017     this->priorityFromProvider = parent->priority();
0018 }
0019 
0020 #include "moc_devicelink.cpp"