| 1 | /* |
|---|---|
| 2 | SPDX-FileCopyrightText: 2017 Jan Grulich <jgrulich@redhat.com> |
| 3 | |
| 4 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
| 5 | */ |
| 6 | |
| 7 | #ifndef NETWORKMANAGERQT_DEVICE_STATISTICS_P_H |
| 8 | #define NETWORKMANAGERQT_DEVICE_STATISTICS_P_H |
| 9 | |
| 10 | #include "dbus/devicestatisticsinterface.h" |
| 11 | #include "devicestatistics.h" |
| 12 | |
| 13 | namespace NetworkManager |
| 14 | { |
| 15 | class DeviceStatisticsPrivate : public QObject |
| 16 | { |
| 17 | Q_OBJECT |
| 18 | public: |
| 19 | DeviceStatisticsPrivate(const QString &path, DeviceStatistics *q); |
| 20 | |
| 21 | OrgFreedesktopNetworkManagerDeviceStatisticsInterface iface; |
| 22 | QString uni; |
| 23 | uint refreshRateMs; |
| 24 | qulonglong rxBytes; |
| 25 | qulonglong txBytes; |
| 26 | |
| 27 | Q_DECLARE_PUBLIC(DeviceStatistics) |
| 28 | DeviceStatistics *q_ptr; |
| 29 | private Q_SLOTS: |
| 30 | void dbusPropertiesChanged(const QString &interfaceName, const QVariantMap &properties, const QStringList &invalidatedProperties); |
| 31 | void propertiesChanged(const QVariantMap &properties); |
| 32 | }; |
| 33 | |
| 34 | } // namespace NetworkManager |
| 35 | |
| 36 | #endif // NETWORKMANAGERQT_DEVICE_STATISTICS_P_H |
| 37 |
