diff options
author | fiaxh <git@mx.ax.lt> | 2017-05-30 22:47:16 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-05-30 22:51:58 +0200 |
commit | 5ba95ef6b7be3bc7f3a8333f9db78577e1c259bc (patch) | |
tree | a7b7a606f82af06fee5c4ccef57d26822d6096d5 /libdino/src/plugin/registry.vala | |
parent | 387433ebb9bab442502f812e0364111f37270bcb (diff) | |
download | dino-5ba95ef6b7be3bc7f3a8333f9db78577e1c259bc.tar.gz dino-5ba95ef6b7be3bc7f3a8333f9db78577e1c259bc.zip |
Conversation details dialog
Diffstat (limited to 'libdino/src/plugin/registry.vala')
-rw-r--r-- | libdino/src/plugin/registry.vala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libdino/src/plugin/registry.vala b/libdino/src/plugin/registry.vala index 27cac6f3..e1ba605d 100644 --- a/libdino/src/plugin/registry.vala +++ b/libdino/src/plugin/registry.vala @@ -5,6 +5,7 @@ namespace Dino.Plugins { public class Registry { internal ArrayList<EncryptionListEntry> encryption_list_entries = new ArrayList<EncryptionListEntry>(); internal ArrayList<AccountSettingsEntry> account_settings_entries = new ArrayList<AccountSettingsEntry>(); + internal ArrayList<ContactDetailsProvider> contact_details_entries = new ArrayList<ContactDetailsProvider>(); public bool register_encryption_list_entry(EncryptionListEntry entry) { lock(encryption_list_entries) { @@ -28,6 +29,16 @@ public class Registry { return true; } } + + public bool register_contact_details_entry(ContactDetailsProvider entry) { + lock(contact_details_entries) { + foreach(ContactDetailsProvider e in contact_details_entries) { + if (e.id == entry.id) return false; + } + contact_details_entries.add(entry); + return true; + } + } } }
\ No newline at end of file |