Babel  1
The voip software that only works on your local network
Loading...
Searching...
No Matches
BootScreen.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2024
3** epitech-ratrappage-babel (Workspace)
4** File description:
5** BootScreen.hpp
6*/
7
13#pragma once
14
15#include <vector>
16#include <string>
17#include <random>
18#include <iostream>
19
25 public:
29 BootScreen();
30
35
39 void display() const;
40
44 void displayAllScreens() const;
45
50 void displayScreen(const unsigned int screen) const;
51
56 int getAvailableScreens() const;
57
58 private:
63 void _addScreen(const std::vector<std::string> &screen);
64
71 int _getRandomNumber(int min = 0, int max = 1) const;
72
73 std::vector<std::vector<std::string>> _screens;
74 unsigned int _availableScreens = 0;
75};
Manages and displays boot screens.
int getAvailableScreens() const
Get the number of available boot screens.
~BootScreen()
Destroy the BootScreen object.
void display() const
Display a random boot screen.
BootScreen()
Construct a new BootScreen object.
void displayAllScreens() const
Display all available boot screens.
void displayScreen(const unsigned int screen) const
Display a specific boot screen.