mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
24 lines
545 B
C++
24 lines
545 B
C++
#pragma once
|
|
|
|
namespace OpenIris{
|
|
enum State {
|
|
Starting = 1,
|
|
ConnectingToWifi = 2,
|
|
ConnectingToWifiError = 3,
|
|
ConnectingToWifiSuccess = 4,
|
|
ServerError = 5,
|
|
CameraError = 6,
|
|
MDNSSuccess = 7,
|
|
MDNSError = 8,
|
|
};
|
|
|
|
class StateManager{
|
|
public:
|
|
StateManager() : current_state(Starting) {}
|
|
void setState(State state);
|
|
State getCurrentState();
|
|
private:
|
|
State current_state;
|
|
};
|
|
|
|
} |