diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-11-28 21:19:59 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-11-28 21:19:59 +0000 |
| commit | 910c5067e8d7ae22b3fde6bd483391314de1ba16 (patch) | |
| tree | af57d00445efa54a4992ad1609cf71f59cdf9494 /src/qmmpui/abstractplaylistitem.h | |
| parent | 26724c66d4764a77ca653ce6c0a1573e9e97e97c (diff) | |
| download | qmmp-910c5067e8d7ae22b3fde6bd483391314de1ba16.tar.gz qmmp-910c5067e8d7ae22b3fde6bd483391314de1ba16.tar.bz2 qmmp-910c5067e8d7ae22b3fde6bd483391314de1ba16.zip | |
general api changes, removed unused code
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@647 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/abstractplaylistitem.h')
| -rw-r--r-- | src/qmmpui/abstractplaylistitem.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/qmmpui/abstractplaylistitem.h b/src/qmmpui/abstractplaylistitem.h new file mode 100644 index 000000000..cea50739c --- /dev/null +++ b/src/qmmpui/abstractplaylistitem.h @@ -0,0 +1,59 @@ +/*************************************************************************** + * Copyright (C) 2008 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#ifndef ABSTRACTPLAYLISTITEM_H +#define ABSTRACTPLAYLISTITEM_H + +#include <QMap> +#include <QString> +#include <qmmp/qmmp.h> + +/** + @author Ilya Kotov <forkotov02@hotmail.ru> +*/ +class AbstractPlaylistItem +{ +public: + AbstractPlaylistItem(); + + ~AbstractPlaylistItem(); + + const QString title () const; + const QString artist () const; + const QString album () const; + const QString comment () const; + const QString genre () const; + const QString track () const; + const QString year () const; + const QString url () const; + + qint64 length (); + bool isEmpty(); + void clear(); + + virtual void setMetaData(const QMap <Qmmp::MetaData, QString> &metaData); + virtual void setMetaData(Qmmp::MetaData key, const QString &value); + virtual void setLength(qint64 length); + +private: + QMap <Qmmp::MetaData, QString> m_metaData; + qint64 m_length; +}; + +#endif |
