[OpenDocString] kdeconnect-kde (cpp)
pairinghandler.cpp
PairingHandler::PairingHandler(DeviceLink *parent)
    : QObject(parent)
    , m_deviceLink(parent)
{
}
Constructs a pairing handler object and its drv_link pointer.
void PairingHandler::setDeviceLink(DeviceLink *dl)
{
    setParent(dl);
    m_deviceLink = dl;
}
Sets the device link object of the current node. The parent of the object is set to the first node in the list, and the device link object is set to the second node in the list.
DeviceLink *PairingHandler::deviceLink() const
{
    return m_deviceLink;
}
Returns a pointer to the device link object.