SolidModules
wirednetworkinterface.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef NM07_WIREDNETWORKINTERFACE_H
00022 #define NM07_WIREDNETWORKINTERFACE_H
00023
00024 #include "networkinterface.h"
00025 #include "solid/control/ifaces/wirednetworkinterface.h"
00026
00027 #include <KDebug>
00028 #include "dbus/generic-types.h"
00029
00030 class NMNetworkManager;
00031 class NMWiredNetworkInterfacePrivate;
00032
00033 class KDE_EXPORT NMWiredNetworkInterface : public NMNetworkInterface, virtual public Solid::Control::Ifaces::WiredNetworkInterface
00034 {
00035 Q_OBJECT
00036 Q_DECLARE_PRIVATE(NMWiredNetworkInterface)
00037 Q_INTERFACES(Solid::Control::Ifaces::WiredNetworkInterface)
00038 Q_PROPERTY(bool carrier READ carrier WRITE setCarrier NOTIFY carrierChanged)
00039 Q_PROPERTY(int bitRate READ bitRate WRITE setBitRate NOTIFY bitRateChanged)
00040
00041 public:
00042 NMWiredNetworkInterface(const QString & path, NMNetworkManager * manager, QObject * parent);
00043 ~NMWiredNetworkInterface();
00044 QString hardwareAddress() const;
00045 int bitRate() const;
00046 void setBitRate(const QVariant&);
00047 bool carrier() const;
00048 void setCarrier(const QVariant&);
00049 protected Q_SLOTS:
00050 void wiredPropertiesChanged(const QVariantMap &);
00051 Q_SIGNALS:
00052 void bitRateChanged(int bitRate);
00053 void carrierChanged(bool plugged);
00054 };
00055
00056 #endif // NM07_WIREDNETWORKINTERFACE_H
00057