Refactoring

This commit is contained in:
Jonas Kvinge
2024-10-22 18:12:33 +02:00
parent dfcf715291
commit 8da2b9cd94
623 changed files with 9071 additions and 5126 deletions

View File

@@ -29,19 +29,20 @@
#include <QString>
#include <QImage>
#include "core/scoped_ptr.h"
#include "includes/scoped_ptr.h"
#include "includes/shared_ptr.h"
#include "core/temporaryfile.h"
#include "core/song.h"
#include "albumcoverloaderoptions.h"
#include "albumcoverloaderresult.h"
class Application;
class AlbumCoverLoader;
class CurrentAlbumCoverLoader : public QObject {
Q_OBJECT
public:
explicit CurrentAlbumCoverLoader(Application *app, QObject *parent = nullptr);
explicit CurrentAlbumCoverLoader(const SharedPtr<AlbumCoverLoader> albumcover_loader, QObject *parent = nullptr);
~CurrentAlbumCoverLoader() override;
const AlbumCoverLoaderOptions &options() const { return options_; }
@@ -61,10 +62,10 @@ class CurrentAlbumCoverLoader : public QObject {
void AlbumCoverReady(const quint64 id, AlbumCoverLoaderResult result);
private:
Application *app_;
const SharedPtr<AlbumCoverLoader> albumcover_loader_;
AlbumCoverLoaderOptions options_;
QString temp_file_pattern_;
const QString temp_file_pattern_;
ScopedPtr<TemporaryFile> temp_cover_;
ScopedPtr<TemporaryFile> temp_cover_thumbnail_;