diff options
author | Marvin W <git@larma.de> | 2017-03-11 01:25:45 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2017-03-11 02:04:38 +0100 |
commit | 4c48bdc07291f55d7320721a5b0a29c092f7daa0 (patch) | |
tree | 2b7debd52adbbf25ebceb2721014e5dc6c61679f /libdino/src/plugin/interfaces.vala | |
parent | 1ccad732b9a783d8f0140373602b7c1b84d04198 (diff) | |
download | dino-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.vala | 16 |
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 |