mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
* Refactor everything under one namespace, turn most things into classes, add support for selecting ROI in cameraHandler, add state management * Remove unsued main.py file - other projects are working on that implementation
22 lines
488 B
C++
22 lines
488 B
C++
#pragma once
|
|
|
|
namespace OpenIris{
|
|
enum State {
|
|
Starting = 1,
|
|
ConnectingToWifi = 2,
|
|
ConnectingToWifiError = 3,
|
|
ConnectingToWifiSuccess = 4,
|
|
ServerError = 5,
|
|
CameraError = 6
|
|
};
|
|
|
|
class StateManager{
|
|
public:
|
|
StateManager() : current_state(Starting) {}
|
|
void setState(State state);
|
|
State getCurrentState();
|
|
private:
|
|
State current_state;
|
|
};
|
|
|
|
} |