aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/bookmarks_provider.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-09-28 21:40:43 +0200
committerfiaxh <git@lightrise.org>2019-09-29 01:53:59 +0200
commit74c29d4df19f97b9b67bbc3c1a963a8729be69fd (patch)
treeaf3624c4b34a21274758b830c3df404244113829 /xmpp-vala/src/module/bookmarks_provider.vala
parent1287135ebbe8420de44ab73ce6a553b17067dfdb (diff)
downloaddino-74c29d4df19f97b9b67bbc3c1a963a8729be69fd.tar.gz
dino-74c29d4df19f97b9b67bbc3c1a963a8729be69fd.zip
Add Bookmarks2 implementation, introduce bookmarks interfaces
Diffstat (limited to 'xmpp-vala/src/module/bookmarks_provider.vala')
-rw-r--r--xmpp-vala/src/module/bookmarks_provider.vala17
1 files changed, 17 insertions, 0 deletions
diff --git a/xmpp-vala/src/module/bookmarks_provider.vala b/xmpp-vala/src/module/bookmarks_provider.vala
new file mode 100644
index 00000000..69d2efa2
--- /dev/null
+++ b/xmpp-vala/src/module/bookmarks_provider.vala
@@ -0,0 +1,17 @@
+using Gee;
+
+namespace Xmpp {
+
+public interface BookmarksProvider : Object {
+ public signal void conference_added(XmppStream stream, Conference conferences);
+ public signal void conference_removed(XmppStream stream, Jid jid);
+ public signal void conference_changed(XmppStream stream, Conference conferences);
+ public signal void received_conferences(XmppStream stream, Set<Conference> conferences);
+
+ public async abstract async Set<Conference>? get_conferences(XmppStream stream);
+ public async abstract void add_conference(XmppStream stream, Conference conference);
+ public async abstract void remove_conference(XmppStream stream, Conference conference);
+ public async abstract void replace_conference(XmppStream stream, Conference orig_conference, Conference modified_conference);
+}
+
+}