diff options
author | fiaxh <git@mx.ax.lt> | 2017-08-30 00:03:37 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-08-31 18:54:38 +0200 |
commit | a257b163376174e4f5efcbc82c9fdd56463c3191 (patch) | |
tree | 5aedafe95426e732d4b4790edc4e23de25844e5d /libdino/src/plugin | |
parent | 9b5bd0ccf0cdeb49f900450df8eea41c6a0dea75 (diff) | |
download | dino-a257b163376174e4f5efcbc82c9fdd56463c3191.tar.gz dino-a257b163376174e4f5efcbc82c9fdd56463c3191.zip |
Download & inline display images
Diffstat (limited to 'libdino/src/plugin')
-rw-r--r-- | libdino/src/plugin/interfaces.vala | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libdino/src/plugin/interfaces.vala b/libdino/src/plugin/interfaces.vala index 5ffd491f..0e0ad27c 100644 --- a/libdino/src/plugin/interfaces.vala +++ b/libdino/src/plugin/interfaces.vala @@ -108,4 +108,23 @@ public interface MessageDisplayProvider : Object { public abstract MetaConversationItem? get_item(Entities.Message message, Entities.Conversation conversation); } +public interface FileProvider : Object { + public signal void file_incoming(FileTransfer file_transfer); +} + +public interface FileProcessor : Object { + public abstract bool can_process(FileTransfer file_transfer); + public abstract FileTransfer process(FileTransfer file_transfer); +} + +public interface FileWidget : Object { + public abstract Object get_widget(WidgetType type); +} + +public interface FileDisplayProvider : Object { + public abstract double priority { get; } + public abstract bool can_display(Entities.Message? message); + public abstract FileWidget? get_item(Entities.Message? message); +} + } |