aboutsummaryrefslogtreecommitdiff
path: root/interface
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-05-24 23:26:57 +0300
committerTulir Asokan <tulir@maunium.net>2018-05-24 23:27:12 +0300
commitb76c8d01478bcdeb8e0f0c00ca56f577a425674b (patch)
treea3e9761a05c556730846c5645f8d9afc7c6e052b /interface
parenta4d07e9a81f3bf0018b4f1368d8b4d06992cadba (diff)
Add UI preferences and simplify config save/load (ref #43)
Diffstat (limited to 'interface')
-rw-r--r--interface/matrix.go1
-rw-r--r--interface/ui.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/interface/matrix.go b/interface/matrix.go
index 111a2b0..08b3d61 100644
--- a/interface/matrix.go
+++ b/interface/matrix.go
@@ -32,6 +32,7 @@ type MatrixContainer interface {
Login(user, password string) error
Logout()
+ SendPreferencesToMatrix()
SendMessage(roomID, msgtype, message string) (string, error)
SendMarkdownMessage(roomID, msgtype, message string) (string, error)
SendTyping(roomID string, typing bool)
diff --git a/interface/ui.go b/interface/ui.go
index 7e181d8..b106229 100644
--- a/interface/ui.go
+++ b/interface/ui.go
@@ -29,6 +29,7 @@ type UIProvider func(gmx Gomuks) GomuksUI
type GomuksUI interface {
Render()
+ HandleNewPreferences()
OnLogin()
OnLogout()
MainView() MainView