treballant en ServiceMenu
This commit is contained in:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user