From e9bb8b360f6d4a072f21e7911ecbfde10f26bac0 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Fri, 26 May 2023 15:51:42 +0200 Subject: Wrappers Python: Add back event handler Now all the states are back in V2 again, we should have the event handler back as well --- wrappers/python/eduvpn_common/state.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 wrappers/python/eduvpn_common/state.py (limited to 'wrappers/python/eduvpn_common/state.py') diff --git a/wrappers/python/eduvpn_common/state.py b/wrappers/python/eduvpn_common/state.py new file mode 100644 index 0000000..bb6642b --- /dev/null +++ b/wrappers/python/eduvpn_common/state.py @@ -0,0 +1,32 @@ +from enum import IntEnum + + +class StateType(IntEnum): + """ + The State Type enum. + """ + + ENTER = 1 + LEAVE = 2 + + +StateEnum = IntEnum + + +class State(StateEnum): + # Go states + INITIAL = 0 + MAIN = 1 + ASK_LOCATION = 2 + CHOSEN_LOCATION = 3 + LOADING_SERVER = 4 + CHOSEN_SERVER = 5 + OAUTH_STARTED = 6 + AUTHORIZED = 7 + REQUEST_CONFIG = 8 + ASK_PROFILE = 9 + CHOSEN_PROFILE = 10 + GOT_CONFIG = 11 + CONNECTING = 12 + DISCONNECTING = 13 + CONNECTED = 14 -- cgit v1.2.3