Solid
networkinterface.cpp
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 #include "networkinterface.h"
00021 #include "networkinterface_p.h"
00022
00023 #include "soliddefs_p.h"
00024 #include <solid/ifaces/networkinterface.h>
00025
00026 Solid::NetworkInterface::NetworkInterface(QObject *backendObject)
00027 : DeviceInterface(*new NetworkInterfacePrivate(), backendObject)
00028 {
00029 }
00030
00031 Solid::NetworkInterface::~NetworkInterface()
00032 {
00033
00034 }
00035
00036 QString Solid::NetworkInterface::ifaceName() const
00037 {
00038 Q_D(const NetworkInterface);
00039 return_SOLID_CALL(Ifaces::NetworkInterface *, d->backendObject(), QString(), ifaceName());
00040 }
00041
00042 bool Solid::NetworkInterface::isWireless() const
00043 {
00044 Q_D(const NetworkInterface);
00045 return_SOLID_CALL(Ifaces::NetworkInterface *, d->backendObject(), false, isWireless());
00046 }
00047
00048 QString Solid::NetworkInterface::hwAddress() const
00049 {
00050 Q_D(const NetworkInterface);
00051 return_SOLID_CALL(Ifaces::NetworkInterface *, d->backendObject(), QString(), hwAddress());
00052 }
00053
00054 qulonglong Solid::NetworkInterface::macAddress() const
00055 {
00056 Q_D(const NetworkInterface);
00057 return_SOLID_CALL(Ifaces::NetworkInterface *, d->backendObject(), 0, macAddress());
00058 }
00059
00060 #include "networkinterface.moc"