libsolidcontrol
networkinterface.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 #ifndef SOLID_CONTROL_IFACES_NETWORKINTERFACE_H
00021 #define SOLID_CONTROL_IFACES_NETWORKINTERFACE_H
00022
00023 #include "../solid_control_export.h"
00024 #include "../networkinterface.h"
00025 #include <QtCore/QObject>
00026 #include <QtCore/QList>
00027
00028 namespace Solid
00029 {
00030 namespace Control
00031 {
00032 namespace Ifaces
00033 {
00040 class SOLIDCONTROLIFACES_EXPORT NetworkInterface
00041 {
00042 public:
00046 virtual ~NetworkInterface();
00047
00054 virtual QString uni() const = 0;
00058 virtual QString interfaceName() const = 0;
00059
00063 virtual QString driver() const = 0;
00064
00068 virtual Solid::Control::IPv4Config ipV4Config() const = 0;
00069
00075 virtual bool isActive() const = 0;
00084 virtual Solid::Control::NetworkInterface::ConnectionState connectionState() const = 0;
00091 virtual int designSpeed() const = 0;
00092
00099 virtual Solid::Control::NetworkInterface::Capabilities capabilities() const = 0;
00100
00101 protected:
00102
00106 virtual void ipDetailsChanged() = 0;
00107
00115 virtual void connectionStateChanged(int state) = 0;
00116 };
00117 }
00118 }
00119 }
00120
00121 Q_DECLARE_INTERFACE(Solid::Control::Ifaces::NetworkInterface, "org.kde.Solid.Control.Ifaces.NetworkInterface/0.1")
00122
00123 #endif