diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-05-01 19:17:57 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-05-01 19:17:57 +0300 |
commit | b49416ed808e9a9802506cb5e0543dbf3b0e3dcd (patch) | |
tree | 8d4a331f1e29af077a2236419d5cd67bb05b5daa /interface/ui.go | |
parent | 986c84b7689e29c4bbe6b124bee3e24707e6d51a (diff) |
Refactoring
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 ( |