23 #ifndef PHONON_OBJECTDESCRIPTION_H
24 #define PHONON_OBJECTDESCRIPTION_H
28 #include <QtCore/QExplicitlySharedDataPointer>
29 #include <QtCore/QtDebug>
30 #include <QtCore/QList>
31 #include <QtCore/QSharedData>
32 #include <QtCore/QString>
33 #include <QtCore/QVariant>
40 class ObjectDescriptionPrivate;
129 QVariant property(
const char *name)
const;
142 bool isValid()
const;
160 ObjectDescriptionPrivate *
const d;
179 template<ObjectDescriptionType T>
196 return *
d == *otherDescription.
d;
244 inline bool isValid()
const {
return d->isValid(); }
252 inline int index()
const {
return d->index(); }
263 template<ObjectDescriptionType T>
264 inline QDebug operator<<(QDebug s, const ObjectDescription<T> &o)
266 return s << o.name();
276 #ifndef QT_NO_PHONON_AUDIOCAPTURE
278 #endif //QT_NO_PHONON_AUDIOCAPTURE
290 #ifndef QT_NO_PHONON_EFFECT
292 #endif //QT_NO_PHONON_EFFECT
310 #ifndef QT_NO_PHONON_MEDIACONTROLLER
313 #endif //QT_NO_PHONON_MEDIACONTROLLER
322 #ifndef QT_NO_PHONON_AUDIOCAPTURE
325 #endif //QT_NO_PHONON_AUDIOCAPTURE
327 #ifndef QT_NO_PHONON_EFFECT
330 #endif //QT_NO_PHONON_EFFECT
333 #ifndef QT_NO_PHONON_MEDIACONTROLLER
338 #endif //QT_NO_PHONON_MEDIACONTROLLER
342 #endif // PHONON_OBJECTDESCRIPTION_H
GLuint GLuint GLsizei GLenum type
bool operator!=(const ObjectDescription &otherDescription) const
Returns false if this ObjectDescription describes the same as otherDescription; otherwise returns tru...
ObjectDescription< AudioCaptureDeviceType > AudioCaptureDevice
The ObjectDescriptionModel class provides a model from a list of ObjectDescription objects...
ObjectDescription< EffectType > EffectDescription
Lists all processing effects the backend supports.
ObjectDescription(int index, const QHash< QByteArray, QVariant > &properties)
ObjectDescriptionType
Defines the type of information that is contained in a ObjectDescription object.
QVariant property(const char *name) const
Returns a named property.
QString description() const
Returns a description of the capture source.
ObjectDescription< AudioOutputDeviceType > AudioOutputDevice
ObjectDescription< AudioChannelType > AudioChannelDescription
bool operator==(const Attribute &cA, const AttributeInstance< type > &cB)
This operator compares the two attributes and NOT their values.
QString name() const
Returns the name of the capture source.
ObjectDescriptionPrivate *const d
#define QT_BEGIN_NAMESPACE
bool operator==(const ObjectDescription &otherDescription) const
Returns true if this ObjectDescription describes the same as otherDescription; otherwise returns fals...
ObjectDescription(const QExplicitlySharedDataPointer< ObjectDescriptionData > &dd)
bool isValid() const
Returns true if the Tuple is valid (index != -1); otherwise returns false.
Provides a tuple of enduser visible name and description.
static ObjectDescriptionData * fromIndex(ObjectDescriptionType type, int index)
QList< QByteArray > propertyNames() const
Returns all names that return valid data when property() is called.
Data class for objects describing devices or features of the backend.
GLuint const GLchar * name
QExplicitlySharedDataPointer< ObjectDescriptionData > d
The KDE Multimedia classes.
static ObjectDescription< T > fromIndex(int index)
Returns a new description object that describes the device/effect/codec/...
ObjectDescription< SubtitleType > SubtitleDescription
int index() const
A unique identifier for this device/.