treballant en ServiceMenu

This commit is contained in:
2025-05-30 13:59:25 +02:00
parent f661da5215
commit 653bb7dc76
5 changed files with 49 additions and 129 deletions

View File

@@ -11,23 +11,21 @@ public:
static void destroy(); // Libera el objeto ServiceMenu
static ServiceMenu *get(); // Obtiene el puntero al objeto ServiceMenu
void show();
// -- Métodos ---
void toggle();
void render();
void handle_input();
void execute_option(size_t option);
void update();
private:
// -- Variables internas ---
bool enabled_ = false;
// --- Patrón Singleton ---
ServiceMenu(); // Constructor privado
ServiceMenu() = default; // Constructor privado
~ServiceMenu() = default; // Destructor privado
ServiceMenu(const ServiceMenu &) = delete; // Evitar copia
ServiceMenu &operator=(const ServiceMenu &) = delete; // Evitar asignación
// --- Singleton ---
static ServiceMenu *instance_;
// -- Variables internas ---
bool is_active;
size_t selected_option;
std::vector<std::string> options;
};