File indexing completed on 2024-04-28 15:32:56

0001 /*
0002     SPDX-FileCopyrightText: 2013 Lukas Tinkl <ltinkl@redhat.com>
0003     SPDX-FileCopyrightText: 2013-2015 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 
0008 #ifndef MODEMMANAGERQT_BEARER_P_H
0009 #define MODEMMANAGERQT_BEARER_P_H
0010 
0011 #include "bearer.h"
0012 #include "dbus/bearerinterface.h"
0013 
0014 namespace ModemManager
0015 {
0016 class BearerPrivate : public QObject
0017 {
0018     Q_OBJECT
0019 public:
0020     explicit BearerPrivate(const QString &path, Bearer *q);
0021 
0022     OrgFreedesktopModemManager1BearerInterface bearerIface;
0023     QString uni;
0024     QString bearerInterface;
0025     bool isConnected;
0026     bool isSuspended;
0027     mutable ModemManager::IpConfig ipv4Config;
0028     mutable ModemManager::IpConfig ipv6Config;
0029     uint ipTimeout;
0030     QVariantMap bearerProperties;
0031 
0032     ModemManager::IpConfig ipConfigFromMap(const QVariantMap &map);
0033 
0034     Q_DECLARE_PUBLIC(Bearer)
0035     Bearer *q_ptr;
0036 private Q_SLOTS:
0037     void onPropertiesChanged(const QString &interface, const QVariantMap &properties, const QStringList &invalidatedProps);
0038 };
0039 
0040 } // namespace ModemManager
0041 
0042 #endif // MODEMMANAGERQT_BEARER_P_H