#pragma once #include "app.h" #include "app_manager.h" #include "list_model.h" #include "setup_wizard.h" #include "ui/theme.h" namespace roro { // First-boot setup, run as a modal App until finished. class SetupApp : public App { public: SetupApp(Settings& settings, AppManager& apps); bool onKey(const KeyEvent& e) override; bool textEntryActive() const override { return wizard_.step() == SetupWizard::Step::LongName || wizard_.step() == SetupWizard::Step::ShortName; } void draw(Canvas& c) override; void help(std::vector& out) const override; const char* helpTitle() const override { return "Setup"; } private: AppManager& apps_; SetupWizard wizard_; ListModel choices_{4}; }; } // namespace roro