diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2012-12-22 09:22:05 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2012-12-22 09:22:05 +0000 |
| commit | ac1f3775990561224c69543f7fbcf31e62fd0109 (patch) | |
| tree | a7fd000f8536456f3fa1ecefff95b67b074ab49c /src/plugins/PlayListFormats/m3u/m3uplaylistformat.h | |
| parent | 979695c9e910cf1138ab6c3747c3f725995acf89 (diff) | |
| download | qmmp-ac1f3775990561224c69543f7fbcf31e62fd0109.tar.gz qmmp-ac1f3775990561224c69543f7fbcf31e62fd0109.tar.bz2 qmmp-ac1f3775990561224c69543f7fbcf31e62fd0109.zip | |
refactoring
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3085 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/PlayListFormats/m3u/m3uplaylistformat.h')
| -rw-r--r-- | src/plugins/PlayListFormats/m3u/m3uplaylistformat.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/plugins/PlayListFormats/m3u/m3uplaylistformat.h b/src/plugins/PlayListFormats/m3u/m3uplaylistformat.h new file mode 100644 index 000000000..4a5414894 --- /dev/null +++ b/src/plugins/PlayListFormats/m3u/m3uplaylistformat.h @@ -0,0 +1,48 @@ +/*************************************************************************** + * 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., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef M3UPLAYLISTFORMAT_H +#define M3UPLAYLISTFORMAT_H + +#include <QObject> +#include <QString> +#include <QStringList> +#include <qmmpui/playlistformat.h> +#include <qmmpui/playlistitem.h> + +/*! + * Class for M3U playlist format parsing + * @author Vladimir Kuznetsov <vovanec@gmail.com> + */ +class M3UPlaylistFormat : public QObject, public PlayListFormat +{ + Q_OBJECT + Q_INTERFACES(PlayListFormat) +public: + M3UPlaylistFormat(); + virtual QStringList getExtensions()const; + virtual bool hasFormat(const QString&); + virtual QStringList decode(const QString& contents); + virtual QString encode(const QList<PlayListItem*>& contents); + virtual QString name()const; +protected: + QStringList m_supported_formats; +}; + +#endif |
