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  · 

QMediaPlaylistProvider Class Reference

The QMediaPlaylistProvider class provides an abstract list of media. More...

 #include <QMediaPlaylistProvider>

Inherits: QObject.

This class was introduced in Qt Mobility 1.0.

Public Functions

QMediaPlaylistProvider ( QObject * parent = 0 )
virtual ~QMediaPlaylistProvider ()
virtual bool addMedia ( const QMediaContent & media )
virtual bool addMedia ( const QList<QMediaContent> & items )
virtual bool clear ()
virtual bool insertMedia ( int position, const QMediaContent & media )
virtual bool insertMedia ( int position, const QList<QMediaContent> & items )
virtual bool isReadOnly () const
virtual bool load ( const QUrl & location, const char * format = 0 )
virtual bool load ( QIODevice * device, const char * format = 0 )
virtual QMediaContent media ( int index ) const = 0
virtual int mediaCount () const = 0
virtual bool removeMedia ( int position )
virtual bool removeMedia ( int start, int end )
virtual bool save ( const QUrl & location, const char * format = 0 )
virtual bool save ( QIODevice * device, const char * format )
  • 29 public functions inherited from QObject

Public Slots

virtual void shuffle ()
  • 1 public slot inherited from QObject

Signals

void loadFailed ( QMediaPlaylist::Error error, const QString & errorMessage )
void loaded ()
void mediaAboutToBeInserted ( int start, int end )
void mediaAboutToBeRemoved ( int start, int end )
void mediaChanged ( int start, int end )
void mediaInserted ( int start, int end )
void mediaRemoved ( int start, int end )

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public variable inherited from QObject
  • 4 static public members inherited from QObject
  • 7 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QMediaPlaylistProvider class provides an abstract list of media.

See also QMediaPlaylist.

Member Function Documentation

QMediaPlaylistProvider::QMediaPlaylistProvider ( QObject * parent = 0 )

Constructs a playlist provider with the given parent.

QMediaPlaylistProvider::~QMediaPlaylistProvider () [virtual]

Destroys a playlist provider.

bool QMediaPlaylistProvider::addMedia ( const QMediaContent & media ) [virtual]

Append media to a playlist.

Returns true if the media was appended; and false otherwise.

This function was introduced in Qt Mobility 1.0.

bool QMediaPlaylistProvider::addMedia ( const QList<QMediaContent> & items ) [virtual]

Append multiple media items to a playlist.

Returns true if the media items were appended; and false otherwise.

This function was introduced in Qt Mobility 1.0.

bool QMediaPlaylistProvider::clear () [virtual]

Removes all media from a playlist.

Returns true if the media was removed; and false otherwise.

This function was introduced in Qt Mobility 1.0.

bool QMediaPlaylistProvider::insertMedia ( int position, const QMediaContent & media ) [virtual]

Inserts media into a playlist at position.

Returns true if the media was inserted; and false otherwise.

This function was introduced in Qt Mobility 1.0.

bool QMediaPlaylistProvider::insertMedia ( int position, const QList<QMediaContent> & items ) [virtual]

Inserts multiple media items into a playlist at position.

Returns true if the media items were inserted; and false otherwise.

This function was introduced in Qt Mobility 1.0.

bool QMediaPlaylistProvider::isReadOnly () const [virtual]

Returns true if a playlist is read-only; otherwise returns false.

This function was introduced in Qt Mobility 1.0.

bool QMediaPlaylistProvider::load ( const QUrl & location, const char * format = 0 ) [virtual]

Loads a playlist from from a URL location. If no playlist format is specified the loader will inspect the URL or probe the headers to guess the format.

New items are appended to playlist.

Returns true if the provider supports the format and loading from the locations URL protocol, otherwise this will return false.

This function was introduced in Qt Mobility 1.0.

bool QMediaPlaylistProvider::load ( QIODevice * device, const char * format = 0 ) [virtual]

Loads a playlist from from an I/O device. If no playlist format is specified the loader will probe the headers to guess the format.

New items are appended to playlist.

Returns true if the provider supports the format and loading from an I/O device, otherwise this will return false.

This function was introduced in Qt Mobility 1.0.

void QMediaPlaylistProvider::loadFailed ( QMediaPlaylist::Error error, const QString & errorMessage ) [signal]

Signals that a load failed() due to an error. The errorMessage provides more information.

This function was introduced in Qt Mobility 1.0.

void QMediaPlaylistProvider::loaded () [signal]

Signals that a load() finished successfully.

This function was introduced in Qt Mobility 1.0.

QMediaContent QMediaPlaylistProvider::media ( int index ) const [pure virtual]

Returns the media at index in the playlist.

If the index is invalid this will return a null media content.

This function was introduced in Qt Mobility 1.0.

void QMediaPlaylistProvider::mediaAboutToBeInserted ( int start, int end ) [signal]

Signals that new media is about to be inserted into a playlist between the start and end positions.

This function was introduced in Qt Mobility 1.0.

void QMediaPlaylistProvider::mediaAboutToBeRemoved ( int start, int end ) [signal]

Signals that media is about to be removed from a playlist between the start and end positions.

This function was introduced in Qt Mobility 1.0.

void QMediaPlaylistProvider::mediaChanged ( int start, int end ) [signal]

Signals that media in playlist between the start and end positions inclusive has changed.

This function was introduced in Qt Mobility 1.0.

int QMediaPlaylistProvider::mediaCount () const [pure virtual]

Returns the size of playlist.

This function was introduced in Qt Mobility 1.0.

void QMediaPlaylistProvider::mediaInserted ( int start, int end ) [signal]

Signals that new media has been inserted into a playlist between the start and end positions.

This function was introduced in Qt Mobility 1.0.

void QMediaPlaylistProvider::mediaRemoved ( int start, int end ) [signal]

Signals that media has been removed from a playlist between the start and end positions.

This function was introduced in Qt Mobility 1.0.

bool QMediaPlaylistProvider::removeMedia ( int position ) [virtual]

Removes the media at position from a playlist.

Returns true if the media was removed; and false otherwise.

This function was introduced in Qt Mobility 1.0.

bool QMediaPlaylistProvider::removeMedia ( int start, int end ) [virtual]

Removes the media between the given start and end positions from a playlist.

Returns true if the media was removed; and false otherwise.

This function was introduced in Qt Mobility 1.0.

bool QMediaPlaylistProvider::save ( const QUrl & location, const char * format = 0 ) [virtual]

Saves the contents of a playlist to a URL location. If no playlist format is specified the writer will inspect the URL to guess the format.

Returns true if the playlist was saved successfully; and false otherwise.

This function was introduced in Qt Mobility 1.0.

bool QMediaPlaylistProvider::save ( QIODevice * device, const char * format ) [virtual]

Saves the contents of a playlist to an I/O device in the specified format.

Returns true if the playlist was saved successfully; and false otherwise.

This function was introduced in Qt Mobility 1.0.

void QMediaPlaylistProvider::shuffle () [virtual slot]

Shuffles the contents of a playlist.

This function was introduced in Qt Mobility 1.0.

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 94
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 48
  4. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  5. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 13
  6. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  7. Qt Commercial : Digia organise un webinar gratuit le 27 mars sur la conception d'interfaces utilisateur et d'applications avec le framework 0
Page suivante

Le Qt Developer Network au hasard

Logo

Génération de bindings PySide avec Shiboken

Le Qt Developer Network est un réseau de développeurs Qt anglophone, où ils peuvent partager leur expérience sur le framework. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

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.2
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