Clementine-audio-player-Mac.../src/playlistparsers/parserbase.h

38 lines
1.1 KiB
C
Raw Normal View History

/* This file is part of Clementine.
Clementine 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 3 of the License, or
(at your option) any later version.
Clementine 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 Clementine. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PARSERBASE_H
#define PARSERBASE_H
2010-03-09 18:17:32 +01:00
#include <QObject>
#include <QDir>
2010-03-09 18:17:32 +01:00
#include "core/song.h"
2010-03-09 18:17:32 +01:00
class ParserBase : public QObject {
2010-03-09 18:17:32 +01:00
Q_OBJECT
public:
ParserBase(QObject *parent = 0);
2010-03-09 18:17:32 +01:00
virtual QStringList file_extensions() const = 0;
2010-03-09 18:17:32 +01:00
virtual SongList Load(QIODevice* device, const QDir& dir = QDir()) const = 0;
virtual void Save(const SongList& songs, QIODevice* device, const QDir& dir = QDir()) const = 0;
2010-03-09 18:17:32 +01:00
};
#endif // PARSERBASE_H