aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/plugin/interfaces.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-03-11 01:25:45 +0100
committerMarvin W <git@larma.de>2017-03-11 02:04:38 +0100
commit4c48bdc07291f55d7320721a5b0a29c092f7daa0 (patch)
tree2b7debd52adbbf25ebceb2721014e5dc6c61679f /libdino/src/plugin/interfaces.vala
parent1ccad732b9a783d8f0140373602b7c1b84d04198 (diff)
downloaddino-4c48bdc07291f55d7320721a5b0a29c092f7daa0.tar.gz
dino-4c48bdc07291f55d7320721a5b0a29c092f7daa0.zip
Improve Plugin API (allow to move encryption into plugin)
Diffstat (limited to 'libdino/src/plugin/interfaces.vala')
-rw-r--r--libdino/src/plugin/interfaces.vala16
1 files changed, 16 insertions, 0 deletions
diff --git a/libdino/src/plugin/interfaces.vala b/libdino/src/plugin/interfaces.vala
new file mode 100644
index 00000000..19873003
--- /dev/null
+++ b/libdino/src/plugin/interfaces.vala
@@ -0,0 +1,16 @@
+namespace Dino.Plugins {
+
+public interface RootInterface : Object {
+ public abstract void registered(Dino.Application app);
+
+ public abstract void shutdown();
+}
+
+public interface EncryptionListEntry : Object {
+ public abstract Entities.Encryption encryption { get; }
+ public abstract string name { get; }
+
+ public abstract bool can_encrypt(Entities.Conversation conversation);
+}
+
+} \ No newline at end of file