The QMediaContent class provides access to the resources relating to a media content. More...
#include <QMediaContent>
This class was introduced in Qt Mobility 1.0.
QMediaContent () | |
QMediaContent ( const QUrl & url ) | |
QMediaContent ( const QNetworkRequest & request ) | |
QMediaContent ( const QMediaResource & resource ) | |
QMediaContent ( const QMediaResourceList & resources ) | |
QMediaContent ( const QMediaContent & other ) | |
~QMediaContent () | |
QNetworkRequest | canonicalRequest () const |
QMediaResource | canonicalResource () const |
QUrl | canonicalUrl () const |
bool | isNull () const |
QMediaResourceList | resources () const |
bool | operator!= ( const QMediaContent & other ) const |
QMediaContent & | operator= ( const QMediaContent & other ) |
bool | operator== ( const QMediaContent & other ) const |
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. A QMediaContent object is composed of one or more QMediaResources where each resource provides the URL and format information of a different encoding of the content.
A non-null QMediaContent will always have a primary or canonical reference to the content available through the canonicalUrl() or canonicalResource() methods, any additional resources are optional.
Constructs a null QMediaContent.
Constructs a media content with url providing a reference to the content.
This function was introduced in Qt Mobility 1.0.
Constructs a media content with request providing a reference to the content.
This constructor can be used to reference media content via network protocols such as HTTP. This may include additional information required to obtain the resource, such as Cookies or HTTP headers.
This function was introduced in Qt Mobility 1.0.
Constructs a media content with resource providing a reference to the content.
This function was introduced in Qt Mobility 1.0.
Constructs a media content with resources providing a reference to the content.
This function was introduced in Qt Mobility 1.0.
Constructs a copy of the media content other.
This function was introduced in Qt Mobility 1.0.
Destroys the media content object.
Returns a QNetworkRequest that represents that canonical resource for this media content.
This function was introduced in Qt Mobility 1.0.
Returns a QMediaResource that represents that canonical resource for this media content.
This function was introduced in Qt Mobility 1.0.
Returns a QUrl that represents that canonical resource for this media content.
This function was introduced in Qt Mobility 1.0.
Returns true if this media content is null (uninitialized); false otherwise.
This function was introduced in Qt Mobility 1.0.
Returns a list of alternative resources for this media content. The first item in this list is always the canonical resource.
This function was introduced in Qt Mobility 1.0.
Returns true if other is not equivalent to this media content; false otherwise.
This function was introduced in Qt Mobility 1.0.
Assigns the value of other to this media content.
This function was introduced in Qt Mobility 1.0.
Returns true if other is equivalent to this media content; false otherwise.
This function was introduced in Qt Mobility 1.0.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.