QtMobility Reference Documentation

QMediaPlaylistIOPlugin Class Reference

The QMediaPlaylistIOPlugin class provides an interface for media playlist I/O plug-ins. More...

 #include <QMediaPlaylistIOPlugin>

Inherits: QObject.

This class was introduced in Qt Mobility 1.0.

Public Functions

QMediaPlaylistIOPlugin ( QObject * parent = 0 )
virtual ~QMediaPlaylistIOPlugin ()
virtual QStringList keys () const = 0

Reimplemented Public Functions

virtual bool canRead ( QIODevice * device, const QByteArray & format = QByteArray() ) const = 0
virtual bool canRead ( const QUrl & location, const QByteArray & format = QByteArray() ) const = 0
virtual bool canWrite ( QIODevice * device, const QByteArray & format ) const = 0
virtual QMediaPlaylistReader * createReader ( QIODevice * device, const QByteArray & format = QByteArray() ) = 0
virtual QMediaPlaylistReader * createReader ( const QUrl & location, const QByteArray & format = QByteArray() ) = 0
virtual QMediaPlaylistWriter * createWriter ( QIODevice * device, const QByteArray & format ) = 0
  • 29 public functions inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 signal 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 QMediaPlaylistIOPlugin class provides an interface for media playlist I/O plug-ins.

Member Function Documentation

QMediaPlaylistIOPlugin::QMediaPlaylistIOPlugin ( QObject * parent = 0 )

Constructs a media playlist I/O plug-in with the given parent.

QMediaPlaylistIOPlugin::~QMediaPlaylistIOPlugin () [virtual]

Destroys a media playlist I/O plug-in.

bool QMediaPlaylistIOPlugin::canRead ( QIODevice * device, const QByteArray & format = QByteArray() ) const [pure virtual]

Identifies if plug-in can read format data from an I/O device.

Returns true if the data can be read; and false otherwise.

This function was introduced in Qt Mobility 1.0.

bool QMediaPlaylistIOPlugin::canRead ( const QUrl & location, const QByteArray & format = QByteArray() ) const [pure virtual]

Identifies if a plug-in can read format data from a URL location.

Returns true if the data can be read; and false otherwise.

This function was introduced in Qt Mobility 1.0.

bool QMediaPlaylistIOPlugin::canWrite ( QIODevice * device, const QByteArray & format ) const [pure virtual]

Identifies if a plug-in can write format data to an I/O device.

Returns true if the data can be written; and false otherwise.

This function was introduced in Qt Mobility 1.0.

QMediaPlaylistReader * QMediaPlaylistIOPlugin::createReader ( QIODevice * device, const QByteArray & format = QByteArray() ) [pure virtual]

Returns a new QMediaPlaylistReader which reads format data from an I/O device.

If the device is invalid or the format is unsupported this will return a null pointer.

This function was introduced in Qt Mobility 1.0.

QMediaPlaylistReader * QMediaPlaylistIOPlugin::createReader ( const QUrl & location, const QByteArray & format = QByteArray() ) [pure virtual]

Returns a new QMediaPlaylistReader which reads format data from a URL location.

If the location or the format is unsupported this will return a null pointer.

This function was introduced in Qt Mobility 1.0.

QMediaPlaylistWriter * QMediaPlaylistIOPlugin::createWriter ( QIODevice * device, const QByteArray & format ) [pure virtual]

Returns a new QMediaPlaylistWriter which writes format data to an I/O device.

If the device is invalid or the format is unsupported this will return a null pointer.

This function was introduced in Qt Mobility 1.0.

QStringList QMediaPlaylistIOPlugin::keys () const [pure virtual]

Returns a list of format keys supported by a plug-in.

This function was introduced in Qt Mobility 1.0.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.