# class ObjectDescriptionData

###

Module | phonon
Namespace | Phonon
Class | ObjectDescriptionData
Inherits |

Internal \class ObjectDescriptionData objectdescription.h Phonon/ObjectDescription Data class for objects describing devices or features of the backend.

Author Matthias Kretz <kretz@kde.org>

See also BackendCapabilities

### methods

- ObjectDescriptionData (a0)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  a0 | ObjectDescriptionPrivate | 0

- ObjectDescriptionData (index, properties)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  index | int |
  properties | QHash<QByteArray,QVariant> |

- description ( )

  returns QString

  Returns a description of the capture source. This text should make clear what sound source this is, which is sometimes hard to describe or understand from just the name.

  Returns A string describing the capture source.

- fromIndex (type, index)

  returns Phonon.ObjectDescriptionData
  static

  Argument | Type | Default
  --- | --- | ---
  type | Phonon.ObjectDescriptionType |
  index | int |

- index ( )

  returns int

  A unique identifier for this device/. Used internally to distinguish between the devices/.

  Returns An integer that uniquely identifies every device/

- isValid ( )

  returns bool

  Returns true if the Tuple is valid (index != -1); otherwise returns false.

- name ( )

  returns QString

  Returns the name of the capture source.

  Returns A string that should be presented to the user to choose the capture source.

- operator == (otherDescription)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  otherDescription | Phonon.ObjectDescriptionData |

  Returns true if this ObjectDescription describes the same as otherDescription; otherwise returns false.

- property (name)

  returns QVariant

  Argument | Type | Default
  --- | --- | ---
  name | char |

  Returns a named property.

  If the property is not set an invalid value is returned.

  See also propertyNames()

- propertyNames ( )

  returns QList<QByteArray>

  Returns all names that return valid data when property() is called.

  See also property()