diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-09-26 09:34:42 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-09-26 09:34:42 +0000 |
| commit | a3f5bd5887248dc7c549632957b26ecfa9ea1f40 (patch) | |
| tree | 0d568da87da89ab494ea7ec6a94048cf2a30939c /src/qmmpui/playlistitem.h | |
| parent | 4da0809944474ccd059d0ab89d17f500c8d8d8ea (diff) | |
| download | qmmp-a3f5bd5887248dc7c549632957b26ecfa9ea1f40.tar.gz qmmp-a3f5bd5887248dc7c549632957b26ecfa9ea1f40.tar.bz2 qmmp-a3f5bd5887248dc7c549632957b26ecfa9ea1f40.zip | |
api changes: removed AbstractPlaylistItem class
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1915 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistitem.h')
| -rw-r--r-- | src/qmmpui/playlistitem.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/qmmpui/playlistitem.h b/src/qmmpui/playlistitem.h index 9ad51ee67..f2ba69ffa 100644 --- a/src/qmmpui/playlistitem.h +++ b/src/qmmpui/playlistitem.h @@ -20,8 +20,8 @@ #ifndef PLAYLISTITEM_H #define PLAYLISTITEM_H +#include <QMap> #include <qmmp/qmmp.h> -#include <qmmpui/abstractplaylistitem.h> class FileInfo; class QSettings; @@ -29,7 +29,7 @@ class QSettings; /** @brief The PlayListItem class provides an item for use with the PlayListModel class. * @author Ilya Kotov <forkotov02@hotmail.ru> */ -class PlayListItem : public AbstractPlaylistItem +class PlayListItem : public QMap <Qmmp::MetaData, QString> { public: /*! @@ -97,6 +97,18 @@ public: */ void setText(const QString &title); /*! + * Returns song length in seconds. + */ + qint64 length() const; + /*! + * Sets length in seconds. + */ + void setLength(qint64 length); + /*! + * Same as url() + */ + const QString url() const; + /*! * Updates current metadata. * @param metaData Map with metadata values. */ @@ -113,6 +125,7 @@ private: bool m_selected; bool m_current; FLAGS m_flag; + qint64 m_length; }; #endif |
