mirror of
https://github.com/lowobservable/oec.git
synced 2026-05-02 22:23:37 +00:00
Separate responsibilities of controller and session
This commit is contained in:
15
oec/session.py
Normal file
15
oec/session.py
Normal file
@@ -0,0 +1,15 @@
|
||||
class Session:
|
||||
def start(self):
|
||||
raise NotImplementedError
|
||||
|
||||
def terminate(self):
|
||||
raise NotImplementedError
|
||||
|
||||
def handle_host(self):
|
||||
raise NotImplementedError
|
||||
|
||||
def handle_key(self, key, keyboard_modifiers, scan_code):
|
||||
raise NotImplementedError
|
||||
|
||||
class SessionDisconnectedError(Exception):
|
||||
pass
|
||||
Reference in New Issue
Block a user