Refactoring
This commit is contained in:
@@ -30,11 +30,12 @@
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
|
||||
#include "core/shared_ptr.h"
|
||||
#include "includes/shared_ptr.h"
|
||||
#include "core/song.h"
|
||||
#include "settings/playlistsettingspage.h"
|
||||
#include "constants/playlistsettings.h"
|
||||
|
||||
class QIODevice;
|
||||
class TagReaderClient;
|
||||
class CollectionBackendInterface;
|
||||
class ParserBase;
|
||||
|
||||
@@ -42,7 +43,7 @@ class PlaylistParser : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit PlaylistParser(SharedPtr<CollectionBackendInterface> collection_backend = nullptr, QObject *parent = nullptr);
|
||||
explicit PlaylistParser(const SharedPtr<TagReaderClient> tagreader_client, const SharedPtr<CollectionBackendInterface> collection_backend = nullptr, QObject *parent = nullptr);
|
||||
|
||||
enum class Type {
|
||||
Load,
|
||||
@@ -65,7 +66,7 @@ class PlaylistParser : public QObject {
|
||||
|
||||
SongList LoadFromFile(const QString &filename) const;
|
||||
SongList LoadFromDevice(QIODevice *device, const QString &path_hint = QString(), const QDir &dir_hint = QDir()) const;
|
||||
void Save(const SongList &songs, const QString &filename, const PlaylistSettingsPage::PathType) const;
|
||||
void Save(const SongList &songs, const QString &filename, const PlaylistSettings::PathType) const;
|
||||
|
||||
Q_SIGNALS:
|
||||
void Error(const QString &error) const;
|
||||
|
||||
Reference in New Issue
Block a user