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  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QMediaContent Class Reference

The QMediaContent class provides access to the resources relating to a media content. More...

    #include <QMediaContent>

This class is under development and is subject to change.


Public Functions

QMediaContent ()
QMediaContent ( const QUrl & uri )
QMediaContent ( const QMediaResource & resource )
QMediaContent ( const QMediaResourceList & resources )
QMediaContent ( const QMediaContent & other )
~QMediaContent ()
QMediaResource canonicalResource () const
QUrl canonicalUri () const
QUrl coverArtUriLarge () const
QUrl coverArtUriSmall () const
bool isNull () const
QUrl posterUri () const
QMediaResourceList resources () const
void setCoverArtUriLarge ( const QUrl & uri )
void setCoverArtUriSmall ( const QUrl & uri )
void setPosterUri ( const QUrl & uri )
void setThumbnailUriLarge ( const QUrl & uri )
void setThumbnailUriSmall ( const QUrl & uri )
QUrl thumbnailUriLarge () const
QUrl thumbnailUriSmall () const
bool operator!= ( const QMediaContent & other ) const
QMediaContent & operator= ( const QMediaContent & other )
bool operator== ( const QMediaContent & other ) const

Detailed Description

The QMediaContent class provides access to the resources relating to a media content.

QMediaContent is used within the multimedia framework as the logical handle to media content. Media content can have multiple forms or other meta-data like items attached, some examples would be different quality variants of the primary stream, or extended meta-data such as a Poster for a movie.

A non-null QMediaContent will always have a primary or canonical reference to the content available through the canonicalUri() or canonicalResource() methods, any additional resources are optional.


Member Function Documentation

QMediaContent::QMediaContent ()

Constructs a null QMediaContent.

QMediaContent::QMediaContent ( const QUrl & uri )

Constructs a media source with uri providing a reference to the content.

QMediaContent::QMediaContent ( const QMediaResource & resource )

Constructs a media source with resource providing a reference to the content.

QMediaContent::QMediaContent ( const QMediaResourceList & resources )

Constructs a media source with resources providing a reference to the content.

QMediaContent::QMediaContent ( const QMediaContent & other )

Constructs a copy of media source other.

QMediaContent::~QMediaContent ()

Destroys the media content object.

QMediaResource QMediaContent::canonicalResource () const

Returns a QMediaResource that represents that canonical resource for this media content.

QUrl QMediaContent::canonicalUri () const

Returns a QUrl that represents that canonical resource for this media content.

QUrl QMediaContent::coverArtUriLarge () const

Returns the URI of a large cover art image for this media content.

See also setCoverArtUriLarge().

QUrl QMediaContent::coverArtUriSmall () const

Returns the URI of a small cover art image for this media content.

See also setCoverArtUriSmall().

bool QMediaContent::isNull () const

Returns true if this media content is null (uninitialized); false otherwise.

QUrl QMediaContent::posterUri () const

Returns the URI of a poster image for this media content.

See also setPosterUri().

QMediaResourceList QMediaContent::resources () const

Returns a list of alternative resources for this media content. The first item in this list is always the canonical resource.

void QMediaContent::setCoverArtUriLarge ( const QUrl & uri )

Sets the uri of a large cover art image for this media content.

See also coverArtUriLarge().

void QMediaContent::setCoverArtUriSmall ( const QUrl & uri )

Sets the uri of a small cover art image for this media content.

See also coverArtUriSmall().

void QMediaContent::setPosterUri ( const QUrl & uri )

Sets the uri of a poster image for this media content.

See also posterUri().

void QMediaContent::setThumbnailUriLarge ( const QUrl & uri )

Sets the uri of a large thumbnail image for this media content.

See also thumbnailUriLarge().

void QMediaContent::setThumbnailUriSmall ( const QUrl & uri )

Sets the uri of a small thumbanil image for this media content.

See also thumbnailUriSmall().

QUrl QMediaContent::thumbnailUriLarge () const

Returns the URI of a large thumbnail image for this media content.

See also setThumbnailUriLarge().

QUrl QMediaContent::thumbnailUriSmall () const

Returns the URI of a small thumbnail image for this media content.

See also setThumbnailUriSmall().

bool QMediaContent::operator!= ( const QMediaContent & other ) const

Returns true if other is not equivalent to this media content; false otherwise.

QMediaContent & QMediaContent::operator= ( const QMediaContent & other )

Assigns the value of other to this media content.

bool QMediaContent::operator== ( const QMediaContent & other ) const

Returns true if other is equivalent to this media content; false otherwise.

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 qtmobility-1.0-tp
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