aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/plugin/interfaces.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-05-30 22:47:16 +0200
committerfiaxh <git@mx.ax.lt>2017-05-30 22:51:58 +0200
commit5ba95ef6b7be3bc7f3a8333f9db78577e1c259bc (patch)
treea7b7a606f82af06fee5c4ccef57d26822d6096d5 /libdino/src/plugin/interfaces.vala
parent387433ebb9bab442502f812e0364111f37270bcb (diff)
downloaddino-5ba95ef6b7be3bc7f3a8333f9db78577e1c259bc.tar.gz
dino-5ba95ef6b7be3bc7f3a8333f9db78577e1c259bc.zip
Conversation details dialog
Diffstat (limited to 'libdino/src/plugin/interfaces.vala')
-rw-r--r--libdino/src/plugin/interfaces.vala17
1 files changed, 15 insertions, 2 deletions
diff --git a/libdino/src/plugin/interfaces.vala b/libdino/src/plugin/interfaces.vala
index 35c93786..705cdfe1 100644
--- a/libdino/src/plugin/interfaces.vala
+++ b/libdino/src/plugin/interfaces.vala
@@ -1,5 +1,7 @@
using Gtk;
+using Dino.Entities;
+
namespace Dino.Plugins {
public enum Priority {
@@ -20,7 +22,7 @@ public interface EncryptionListEntry : Object {
public abstract Entities.Encryption encryption { get; }
public abstract string name { get; }
- public abstract bool can_encrypt(Entities.Conversation conversation);
+ public abstract bool can_encrypt(Conversation conversation);
}
public abstract class AccountSettingsEntry : Object {
@@ -33,11 +35,22 @@ public abstract class AccountSettingsEntry : Object {
}
public interface AccountSettingsWidget : Gtk.Widget {
- public abstract void set_account(Entities.Account account);
+ public abstract void set_account(Account account);
public abstract signal void activated();
public abstract void deactivate();
}
+public abstract class ContactDetailsProvider : Object {
+ public abstract string id { get; }
+
+ public abstract void populate(Conversation conversation, ContactDetails contact_details);
+}
+
+public class ContactDetails : Object {
+ public signal void save();
+ public signal void add(string category, string label, string desc, Widget widget);
+}
+
} \ No newline at end of file