Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QMetaDataWriterControl Class

The QMetaDataWriterControl class provides write access to the meta-data of a QMediaService's media. More...

 #include <QMetaDataWriterControl>

Inherits: QMediaControl.

Public Functions

~QMetaDataWriterControl()
virtual QStringList availableMetaData() const = 0
virtual bool isMetaDataAvailable() const = 0
virtual bool isWritable() const = 0
virtual QVariant metaData(const QString & key) const = 0
virtual void setMetaData(const QString & key, const QVariant & value) = 0
  • 31 public functions inherited from QObject

Signals

void metaDataAvailableChanged(bool available)
void metaDataChanged()
void metaDataChanged(const QString & key, const QVariant & value)
void writableChanged(bool writable)

Protected Functions

QMetaDataWriterControl(QObject * parent = 0)
  • 9 protected functions inherited from QObject

Macros

QMetaDataWriterControl_iid

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 11 static public members inherited from QObject

Detailed Description

The QMetaDataWriterControl class provides write access to the meta-data of a QMediaService's media.

If a QMediaService can provide write access to the meta-data of its current media it will implement QMetaDataWriterControl. This control provides functions for both retrieving and setting meta-data values. Meta-data may be addressed by the keys defined in the QtMultimedia::MetaData namespace.

The functionality provided by this control is exposed to application code by the meta-data members of QMediaObject, and so meta-data access is potentially available in any of the media object classes. Any media service may implement QMetaDataControl.

The interface name of QMetaDataWriterControl is org.qt-project.qt.metadatawritercontrol/5.0 as defined in QMetaDataWriterControl_iid.

See also QMediaService::requestControl() and QMediaObject.

Member Function Documentation

QMetaDataWriterControl::QMetaDataWriterControl(QObject * parent = 0) [protected]

Construct a QMetaDataWriterControl with parent. This class is meant as a base class for service specific meta data providers so this constructor is protected.

QMetaDataWriterControl::~QMetaDataWriterControl()

Destroy the meta-data writer control.

QStringList QMetaDataWriterControl::availableMetaData() const [pure virtual]

Returns a list of keys there is meta-data available for.

bool QMetaDataWriterControl::isMetaDataAvailable() const [pure virtual]

Identifies if meta-data is available from a media service.

Returns true if the meta-data is available and false otherwise.

bool QMetaDataWriterControl::isWritable() const [pure virtual]

Identifies if a media service's meta-data can be edited.

Returns true if the meta-data is writable and false otherwise.

QVariant QMetaDataWriterControl::metaData(const QString & key) const [pure virtual]

Returns the meta-data for the given key.

See also setMetaData().

void QMetaDataWriterControl::metaDataAvailableChanged(bool available) [signal]

Signal the availability of meta-data has changed, available will be true if the multimedia object has meta-data.

void QMetaDataWriterControl::metaDataChanged() [signal]

Signal the changes of meta-data.

If multiple meta-data elements are changed, metaDataChanged(const QString &key, const QVariant &value) signal is emitted for each of them with metaDataChanged() changed emitted once.

void QMetaDataWriterControl::metaDataChanged(const QString & key, const QVariant & value) [signal]

Signal the changes of one meta-data element value with the given key.

void QMetaDataWriterControl::setMetaData(const QString & key, const QVariant & value) [pure virtual]

Sets the value of the meta-data element with the given key.

See also metaData().

void QMetaDataWriterControl::writableChanged(bool writable) [signal]

Signal a change in the writable status of meta-data, writable will be true if meta-data elements can be added or adjusted.

Macro Documentation

QMetaDataWriterControl_iid

org.qt-project.qt.metadatawritercontrol/5.0

Defines the interface name of the QMetaDataWriterControl class.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web