File indexing completed on 2024-04-21 11:38:33

0001 /*
0002     SPDX-FileCopyrightText: 2013-2015 Jan Grulich <jgrulich@redhat.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #include "interface_p.h"
0008 
0009 ModemManager::InterfacePrivate::InterfacePrivate(const QString &path, Interface *q)
0010     : uni(path)
0011     , q_ptr(q)
0012 {
0013 }
0014 
0015 ModemManager::InterfacePrivate::~InterfacePrivate()
0016 {
0017 }
0018 
0019 ModemManager::Interface::Interface(const QString &path, QObject *parent)
0020     : QObject(parent)
0021     , d_ptr(new InterfacePrivate(path, this))
0022 {
0023 }
0024 
0025 ModemManager::Interface::Interface(InterfacePrivate &dd, QObject *parent)
0026     : QObject(parent)
0027     , d_ptr(&dd)
0028 {
0029 }
0030 
0031 ModemManager::Interface::~Interface()
0032 {
0033     delete d_ptr;
0034 }
0035 
0036 QString ModemManager::Interface::uni() const
0037 {
0038     Q_D(const Interface);
0039     return d->uni;
0040 }
0041 
0042 void ModemManager::InterfacePrivate::onPropertiesChanged(const QString &interface, const QVariantMap &properties, const QStringList &invalidatedProps)
0043 {
0044     Q_UNUSED(interface)
0045     Q_UNUSED(properties)
0046     Q_UNUSED(invalidatedProps)
0047 }
0048 
0049 #include "moc_interface.cpp"
0050 #include "moc_interface_p.cpp"