Refactoring
This commit is contained in:
@@ -31,12 +31,13 @@
|
||||
#include <QStringList>
|
||||
#include <QDir>
|
||||
|
||||
#include "core/shared_ptr.h"
|
||||
#include "includes/shared_ptr.h"
|
||||
#include "constants/playlistsettings.h"
|
||||
#include "core/song.h"
|
||||
#include "settings/playlistsettingspage.h"
|
||||
#include "parserbase.h"
|
||||
|
||||
class QIODevice;
|
||||
class TagReaderClient;
|
||||
class CollectionBackendInterface;
|
||||
|
||||
// This parser will try to detect the real encoding of a .cue file
|
||||
@@ -45,7 +46,7 @@ class CueParser : public ParserBase {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CueParser(SharedPtr<CollectionBackendInterface> collection_backend, QObject *parent = nullptr);
|
||||
explicit CueParser(const SharedPtr<TagReaderClient> tagreader_client, const SharedPtr<CollectionBackendInterface> collection_backend, QObject *parent = nullptr);
|
||||
|
||||
QString name() const override { return QStringLiteral("CUE"); }
|
||||
QStringList file_extensions() const override { return QStringList() << QStringLiteral("cue"); }
|
||||
@@ -56,7 +57,7 @@ class CueParser : public ParserBase {
|
||||
bool TryMagic(const QByteArray &data) const override;
|
||||
|
||||
SongList Load(QIODevice *device, const QString &playlist_path = QLatin1String(""), const QDir &dir = QDir(), const bool collection_lookup = true) const override;
|
||||
void Save(const SongList &songs, QIODevice *device, const QDir &dir = QDir(), const PlaylistSettingsPage::PathType path_type = PlaylistSettingsPage::PathType::Automatic) const override;
|
||||
void Save(const SongList &songs, QIODevice *device, const QDir &dir = QDir(), const PlaylistSettings::PathType path_type = PlaylistSettings::PathType::Automatic) const override;
|
||||
|
||||
static QString FindCueFilename(const QString &filename);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user