#pragma once // Spec: FR-SET-01, PG-09, INV-shell 14. Settings form. #include #include "ui/Navigation.hpp" namespace dp { class SettingsScreen : public ui::Screen { public: ~SettingsScreen() override { *alive_ = false; } ui::ViewPtr body() override; std::string title() const override; ui::ViewPtr toolbarTrailing() override; bool busy() const override { return isWorking_; } void logOut(); void deleteAccount(const std::string& password); private: void askSignOut(); void askDeleteAccount(); void askPassword(); std::shared_ptr alive_ = std::make_shared(true); bool isWorking_ = false; }; } // namespace dp