# class AcAdapter

###

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

This device interface is available on AC adapters.

### methods

- AcAdapter (backendObject)

  returns ctor
  Not implemented
  KDE 4.1.0 and later only

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

  Creates a new AcAdapter 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()

- AcAdapter (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 AcAdapter device interface.

  Returns the AcAdapter device interface type

  See also Solid.Ifaces.Enums.DeviceInterface.Type

- isPlugged ( )

  returns bool

  Indicates if this AC adapter is plugged.

  Returns true if the adapter is plugged, false otherwise

- plugStateChanged (newState, udi)

  returns Nothing
  SIGNAL ("plugStateChanged (bool, const QString&)")

  Argument | Type | Default
  --- | --- | ---
  newState | bool |
  udi | QString |

  This signal is emitted when the AC adapter is plugged or unplugged.

  newState - true if the AC adapter is plugged, false otherwise

  udi - the UDI of the AC adapter