libsolidcontrol
Solid::Control::WiredNetworkInterface Class Reference
This interface represents a wired Ethernet network interface. More...
#include <wirednetworkinterface.h>

Signals | |
void | bitRateChanged (int bitRate) |
void | carrierChanged (bool plugged) |
Public Member Functions | |
int | bitRate () const |
bool | carrier () const |
QString | hardwareAddress () const |
virtual NetworkInterface::Type | type () const |
WiredNetworkInterface (const WiredNetworkInterface &network) | |
WiredNetworkInterface (QObject *backendObject=0) | |
virtual | ~WiredNetworkInterface () |
Protected Member Functions | |
WiredNetworkInterface (WiredNetworkInterfacePrivate &dd, const WiredNetworkInterface &network) | |
WiredNetworkInterface (WiredNetworkInterfacePrivate &dd, QObject *backendObject) |
Detailed Description
This interface represents a wired Ethernet network interface.Definition at line 37 of file wirednetworkinterface.h.
Constructor & Destructor Documentation
Solid::Control::WiredNetworkInterface::WiredNetworkInterface | ( | QObject * | backendObject = 0 |
) |
Creates a new WiredNetworkInterface object.
- Parameters:
-
backendObject the network object provided by the backend
Definition at line 27 of file wirednetworkinterface.cpp.
Solid::Control::WiredNetworkInterface::WiredNetworkInterface | ( | const WiredNetworkInterface & | network | ) |
Constructs a copy of a network.
- Parameters:
-
network the network to copy
Definition at line 34 of file wirednetworkinterface.cpp.
Solid::Control::WiredNetworkInterface::~WiredNetworkInterface | ( | ) | [virtual] |
Solid::Control::WiredNetworkInterface::WiredNetworkInterface | ( | WiredNetworkInterfacePrivate & | dd, | |
QObject * | backendObject | |||
) | [protected] |
Solid::Control::WiredNetworkInterface::WiredNetworkInterface | ( | WiredNetworkInterfacePrivate & | dd, | |
const WiredNetworkInterface & | network | |||
) | [protected] |
Member Function Documentation
int Solid::Control::WiredNetworkInterface::bitRate | ( | ) | const |
Retrieves the effective bit rate currently attainable by this device.
- Returns:
- the bitrate in bit/s
Definition at line 67 of file wirednetworkinterface.cpp.
void Solid::Control::WiredNetworkInterface::bitRateChanged | ( | int | bitRate | ) | [signal] |
This signal is emitted when the bitrate of this network has changed.
- Parameters:
-
bitrate the new bitrate value for this network
bool Solid::Control::WiredNetworkInterface::carrier | ( | ) | const |
Indicates if the network interfaces sees a carrier.
- Returns:
- true if there's a carrier, false otherwise
Definition at line 73 of file wirednetworkinterface.cpp.
void Solid::Control::WiredNetworkInterface::carrierChanged | ( | bool | plugged | ) | [signal] |
This signal indicates if the physical carrier changed state (eg if the network cable was plugged or unplugged).
QString Solid::Control::WiredNetworkInterface::hardwareAddress | ( | ) | const |
The hardware address assigned to the network interface.
Definition at line 61 of file wirednetworkinterface.cpp.
Solid::Control::NetworkInterface::Type Solid::Control::WiredNetworkInterface::type | ( | ) | const [virtual] |
The NetworkInterface type.
- Returns:
- the NetworkInterface::Type. This always returns NetworkInterface::Ieee8023
Reimplemented from Solid::Control::NetworkInterface.
Definition at line 56 of file wirednetworkinterface.cpp.
The documentation for this class was generated from the following files: