File indexing completed on 2024-07-14 03:58:07

0001 /*
0002  * This file was generated by qdbusxml2cpp version 0.8
0003  * Command line was:
0004  *
0005  * qdbusxml2cpp is Copyright (C) 2016 The Qt Company Ltd.
0006  *
0007  * This is an auto-generated file.
0008  * Do not edit! All changes made to it will be lost.
0009  */
0010 
0011 #ifndef DEVICESTATISTICSINTERFACE_H
0012 #define DEVICESTATISTICSINTERFACE_H
0013 
0014 #include "generictypes.h"
0015 
0016 #include <QDBusAbstractInterface>
0017 #include <QObject>
0018 #include <QString>
0019 #include <QVariant>
0020 
0021 /*
0022  * Proxy class for interface org.freedesktop.NetworkManager.Device.Statistics
0023  */
0024 class OrgFreedesktopNetworkManagerDeviceStatisticsInterface : public QDBusAbstractInterface
0025 {
0026     Q_OBJECT
0027 public:
0028     static inline const char *staticInterfaceName()
0029 #ifdef NMQT_STATIC
0030     {
0031         return "org.kde.fakenetwork.Device.Statistics";
0032     }
0033 #else
0034     {
0035         return "org.freedesktop.NetworkManager.Device.Statistics";
0036     }
0037 #endif
0038 
0039 public:
0040     OrgFreedesktopNetworkManagerDeviceStatisticsInterface(const QString &service,
0041                                                           const QString &path,
0042                                                           const QDBusConnection &connection,
0043                                                           QObject *parent = nullptr);
0044 
0045     ~OrgFreedesktopNetworkManagerDeviceStatisticsInterface() override;
0046 
0047     Q_PROPERTY(uint RefreshRateMs READ refreshRateMs WRITE setRefreshRateMs)
0048     inline uint refreshRateMs() const
0049     {
0050         return qvariant_cast<uint>(property("RefreshRateMs"));
0051     }
0052     inline void setRefreshRateMs(uint value)
0053     {
0054         setProperty("RefreshRateMs", QVariant::fromValue(value));
0055     }
0056 
0057     Q_PROPERTY(qulonglong RxBytes READ rxBytes)
0058     inline qulonglong rxBytes() const
0059     {
0060         return qvariant_cast<qulonglong>(property("RxBytes"));
0061     }
0062 
0063     Q_PROPERTY(qulonglong TxBytes READ txBytes)
0064     inline qulonglong txBytes() const
0065     {
0066         return qvariant_cast<qulonglong>(property("TxBytes"));
0067     }
0068 
0069 public Q_SLOTS: // METHODS
0070 Q_SIGNALS: // SIGNALS
0071     void PropertiesChanged(const QVariantMap &properties);
0072 };
0073 
0074 #endif