File indexing completed on 2024-11-10 06:43:49

0001 /*
0002     SPDX-FileCopyrightText: 2008, 2011 Will Stephenson <wstephenson@kde.org>
0003     SPDX-FileCopyrightText: 2013 Jan Grulich <jgrulich@redhat.com>
0004 
0005     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0006 */
0007 #ifndef NETWORKMANAGERQT_MODEMDEVICE_P_H
0008 #define NETWORKMANAGERQT_MODEMDEVICE_P_H
0009 
0010 #include "dbus/modemdeviceinterface.h"
0011 #include "device_p.h"
0012 
0013 namespace NetworkManager
0014 {
0015 class ModemDevicePrivate : public DevicePrivate
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit ModemDevicePrivate(const QString &path, ModemDevice *q);
0020 
0021     void initModemProperties();
0022 
0023     OrgFreedesktopNetworkManagerDeviceModemInterface modemIface;
0024     NetworkManager::ModemDevice::Capabilities modemCapabilities;
0025     NetworkManager::ModemDevice::Capabilities currentCapabilities;
0026 
0027     Q_DECLARE_PUBLIC(ModemDevice)
0028 protected:
0029     /**
0030      * When subclassing make sure to call the parent class method
0031      * if the property was not useful to your new class
0032      */
0033     void propertyChanged(const QString &property, const QVariant &value) override;
0034 };
0035 
0036 } // namespace NetworkManager
0037 
0038 #endif