aboutsummaryrefslogtreecommitdiff
path: root/interface/ui.go
diff options
context:
space:
mode:
Diffstat (limited to 'interface/ui.go')
-rw-r--r--interface/ui.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/interface/ui.go b/interface/ui.go
index 67cc35c..8699c79 100644
--- a/interface/ui.go
+++ b/interface/ui.go
@@ -40,6 +40,14 @@ type GomuksUI interface {
Finish()
}
+type SyncingModal interface {
+ SetIndeterminate()
+ SetMessage(string)
+ SetSteps(int)
+ Step()
+ Close()
+}
+
type MainView interface {
GetRoom(roomID id.RoomID) RoomView
AddRoom(room *rooms.Room)
@@ -50,6 +58,7 @@ type MainView interface {
UpdateTags(room *rooms.Room)
SetTyping(roomID id.RoomID, users []id.UserID)
+ OpenSyncingModal() SyncingModal
NotifyMessage(room *rooms.Room, message Message, should pushrules.PushActionArrayShould)
}