convertit Asset i Audio
This commit is contained in:
31
source/service_menu.h
Normal file
31
source/service_menu.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
class ServiceMenu
|
||||
{
|
||||
public:
|
||||
static ServiceMenu &get_instance()
|
||||
{
|
||||
static ServiceMenu instance;
|
||||
return instance;
|
||||
}
|
||||
|
||||
// Eliminar copia y asignación
|
||||
ServiceMenu(const ServiceMenu &) = delete;
|
||||
ServiceMenu &operator=(const ServiceMenu &) = delete;
|
||||
|
||||
void show();
|
||||
void render();
|
||||
void handle_input();
|
||||
void execute_option(size_t option);
|
||||
|
||||
private:
|
||||
ServiceMenu();
|
||||
~ServiceMenu() = default;
|
||||
|
||||
bool is_active;
|
||||
size_t selected_option;
|
||||
std::vector<std::string> options;
|
||||
};
|
||||
Reference in New Issue
Block a user