Qmmp
Public Member Functions | List of all members
PlayListFormat Class Referenceabstract

#include <playlistformat.h>

Public Member Functions

virtual ~PlayListFormat ()
 
virtual const PlayListFormatProperties properties () const =0
 
virtual QList< PlayListTrack * > decode (const QByteArray &contents)=0
 
virtual QByteArray encode (const QList< PlayListTrack *> &contents, const QString &path)=0
 

Detailed Description

Abstract interface for playlist formats.

Author
Vladimir Kuznetsov vovan.nosp@m.ec@g.nosp@m.mail..nosp@m.com

Constructor & Destructor Documentation

◆ ~PlayListFormat()

virtual ~PlayListFormat ( )
inlinevirtual

Object destructor

Member Function Documentation

◆ decode()

virtual QList<PlayListTrack*> decode ( const QByteArray &  contents)
pure virtual

Takes raw contents of playlist file, should return string list of ready file pathes to fill the playlist.

◆ encode()

virtual QByteArray encode ( const QList< PlayListTrack *> &  contents,
const QString &  path 
)
pure virtual

Takes the list of PlayListTrack objects, should return content of encoded playlist file.

Parameters
pathPlaylist file path (May be used to adjust playlist content).
contentsA list of PlayListTrack pointers.

◆ properties()

virtual const PlayListFormatProperties properties ( ) const
pure virtual

Returns playlist format properties.


The documentation for this class was generated from the following file: