# class NetworkInterface

###

Module | solid
Namespace | Solid
Class | NetworkInterface
Inherits | Solid::DeviceInterface

This device interface is available on network interfaces.

### methods

- NetworkInterface (backendObject)

  returns ctor
  Not implemented
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  backendObject | QObject |

  Creates a new NetworkInterface object. You generally won't need this. It's created when necessary using Device.as().

  backendObject - the device interface object provided by the backend

  See also Solid.Device.as()

- NetworkInterface (a0)

  returns ctor
  Not implemented
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QObject |

- deviceInterfaceType ( )

  returns Solid::DeviceInterface.Type
  static

  Get the Solid.DeviceInterface.Type of the NetworkInterface device interface.

  Returns the NetworkInterface device interface type

  See also Solid.Ifaces.Enums.DeviceInterface.Type

- hwAddress ( )

  returns QString

  Retrieves the hardware address of the interface.

  Returns the hardware address as a string

- ifaceName ( )

  returns QString

  Retrieves the name of the interface in the system. This name is system dependent, it allows to identify the interface in the system. For example it can be of the form "eth0" under Linux.

  Returns the interface name

- isWireless ( )

  returns bool

  Indicates if this interface is wireless.

  Returns true if the interface is wireless, false otherwise

- macAddress ( )

  returns qulonglong

  Retrieves the MAC address of the interface.

  Returns the MAC address