Provides a tuple of enduser visible name and description. More...
#include <phonon/ObjectDescription>
Public Member Functions | |
bool | operator== (const ObjectDescription &otherDescription) const |
bool | operator!= (const ObjectDescription &otherDescription) const |
QString | name () const |
QString | description () const |
QVariant | property (const char *name) const |
QList< QByteArray > | propertyNames () const |
bool | isValid () const |
int | index () const |
ObjectDescription (int index, const QHash< QByteArray, QVariant > &properties) | |
Static Public Member Functions | |
static ObjectDescription< T > | fromIndex (int index) |
Protected Member Functions | |
ObjectDescription (const QExplicitlySharedDataPointer< ObjectDescriptionData > &dd) | |
Protected Attributes | |
QExplicitlySharedDataPointer < ObjectDescriptionData > | d |
Friends | |
class | ObjectDescriptionModel< T > |
Provides a tuple of enduser visible name and description.
Some parts give the enduser choices, e.g. what source to capture audio from. These choices are described by the name and description methods of this class and identified with the id method. Subclasses then define additional information like which audio and video choices belong together.
|
inline |
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.
|
inlinestatic |
Returns a new description object that describes the device/effect/codec/... with the given index
.
|
inline |
A unique identifier for this device/. Used internally to distinguish between the devices/.
|
inline |
Returns true
if the Tuple is valid (index != -1); otherwise returns false
.
|
inline |
Returns the name of the capture source.
|
inline |
Returns false
if this ObjectDescription describes the same as otherDescription
; otherwise returns true
.
|
inline |
Returns true
if this ObjectDescription describes the same as otherDescription
; otherwise returns false
.
|
inline |
Returns a named property.
If the property is not set an invalid value is returned.
|
inline |
Returns all names that return valid data when property() is called.