File indexing completed on 2024-12-01 12:41:08
0001 /* 0002 SPDX-FileCopyrightText: 2017 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 #ifndef NETWORKMANAGERQT_DEVICE_STATISTICS_P_H 0008 #define NETWORKMANAGERQT_DEVICE_STATISTICS_P_H 0009 0010 #include "dbus/devicestatisticsinterface.h" 0011 #include "devicestatistics.h" 0012 0013 namespace NetworkManager 0014 { 0015 class DeviceStatisticsPrivate : public QObject 0016 { 0017 Q_OBJECT 0018 public: 0019 DeviceStatisticsPrivate(const QString &path, DeviceStatistics *q); 0020 0021 OrgFreedesktopNetworkManagerDeviceStatisticsInterface iface; 0022 QString uni; 0023 uint refreshRateMs; 0024 qulonglong rxBytes; 0025 qulonglong txBytes; 0026 0027 Q_DECLARE_PUBLIC(DeviceStatistics) 0028 DeviceStatistics *q_ptr; 0029 private Q_SLOTS: 0030 void dbusPropertiesChanged(const QString &interfaceName, const QVariantMap &properties, const QStringList &invalidatedProperties); 0031 void propertiesChanged(const QVariantMap &properties); 0032 }; 0033 0034 } // namespace NetworkManager 0035 0036 #endif // NETWORKMANAGERQT_DEVICE_STATISTICS_P_H