#pragma once #include "GUI.hpp" #include "WidgetApplication.hpp" #include namespace tp { class LibraryViewerApplication : public ui::WidgetApplication { public: explicit LibraryViewerApplication(const std::string& libraryPath); ~LibraryViewerApplication() override; [[nodiscard]] Library& library() { return mLibrary; } [[nodiscard]] LibraryWidget& gui() { return mGui; } [[nodiscard]] AppStorage persistentAppStorage() const override { return AppStorage::inHome("library-viewer"); } private: Player mPlayer; PlayerDevice mDevice{ mPlayer }; Library mLibrary; LibraryWidget mGui; }; }