Refactoring
This commit is contained in:
@@ -25,21 +25,35 @@
|
||||
|
||||
#include <QWizard>
|
||||
|
||||
#include "core/shared_ptr.h"
|
||||
#include "includes/shared_ptr.h"
|
||||
|
||||
#include "playlistgenerator_fwd.h"
|
||||
|
||||
class Application;
|
||||
class Player;
|
||||
class PlaylistManager;
|
||||
class CollectionBackend;
|
||||
class CurrentAlbumCoverLoader;
|
||||
class SmartPlaylistWizardPlugin;
|
||||
class SmartPlaylistWizardTypePage;
|
||||
class SmartPlaylistWizardFinishPage;
|
||||
|
||||
#ifdef HAVE_MOODBAR
|
||||
class MoodbarLoader;
|
||||
#endif
|
||||
|
||||
class SmartPlaylistWizard : public QWizard {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SmartPlaylistWizard(Application *app, SharedPtr<CollectionBackend> collection_backend, QWidget *parent);
|
||||
explicit SmartPlaylistWizard(const SharedPtr<Player> player,
|
||||
const SharedPtr<PlaylistManager> playlist_manager,
|
||||
const SharedPtr<CollectionBackend> collection_backend,
|
||||
#ifdef HAVE_MOODBAR
|
||||
const SharedPtr<MoodbarLoader> moodbar_loader,
|
||||
#endif
|
||||
const SharedPtr<CurrentAlbumCoverLoader> current_albumcover_loader,
|
||||
QWidget *parent);
|
||||
|
||||
~SmartPlaylistWizard() override;
|
||||
|
||||
void SetGenerator(PlaylistGeneratorPtr gen);
|
||||
@@ -55,8 +69,7 @@ class SmartPlaylistWizard : public QWizard {
|
||||
void TypeChanged(const int index);
|
||||
|
||||
private:
|
||||
Application *app_;
|
||||
SharedPtr<CollectionBackend> collection_backend_;
|
||||
const SharedPtr<CollectionBackend> collection_backend_;
|
||||
SmartPlaylistWizardTypePage *type_page_;
|
||||
SmartPlaylistWizardFinishPage *finish_page_;
|
||||
int finish_id_;
|
||||
|
||||
Reference in New Issue
Block a user