diff options
Diffstat (limited to 'interface/ui.go')
-rw-r--r-- | interface/ui.go | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/interface/ui.go b/interface/ui.go index add3ee7..e487d3e 100644 --- a/interface/ui.go +++ b/interface/ui.go @@ -25,21 +25,13 @@ import ( "maunium.net/go/tcell" ) -type View string - -// Allowed views in GomuksUI -const ( - ViewLogin View = "login" - ViewMain View = "main" -) - type UIProvider func(gmx Gomuks) GomuksUI type GomuksUI interface { Render() - SetView(name View) + OnLogin() + OnLogout() MainView() MainView - LoginView() LoginView Init() Start() error @@ -62,9 +54,6 @@ type MainView interface { NotifyMessage(room *rooms.Room, message Message, should pushrules.PushActionArrayShould) } -type LoginView interface { -} - type MessageDirection int const ( |