diff options
author | fiaxh <git@mx.ax.lt> | 2017-08-02 17:29:55 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-08-03 15:59:04 +0200 |
commit | ea174ab632ced082eb0f1c51cea1bc9dc5c7c89e (patch) | |
tree | 8f83d1379a48e7aa49af5a5146d76a4c595f2363 /plugins/http-files/src/plugin.vala | |
parent | f83e1188c5dcf1981832f296203f94503b467e30 (diff) | |
download | dino-ea174ab632ced082eb0f1c51cea1bc9dc5c7c89e.tar.gz dino-ea174ab632ced082eb0f1c51cea1bc9dc5c7c89e.zip |
Http file upload
Diffstat (limited to 'plugins/http-files/src/plugin.vala')
-rw-r--r-- | plugins/http-files/src/plugin.vala | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/plugins/http-files/src/plugin.vala b/plugins/http-files/src/plugin.vala new file mode 100644 index 00000000..572efd93 --- /dev/null +++ b/plugins/http-files/src/plugin.vala @@ -0,0 +1,31 @@ +extern const string GETTEXT_PACKAGE; +extern const string LOCALE_INSTALL_DIR; + +namespace Dino.Plugins.HttpFiles { + +public class Plugin : RootInterface, Object { + + public Dino.Application app; + public ConversationsTitlebarEntry conversations_titlebar_entry; + + public void registered(Dino.Application app) { + try { + this.app = app; + this.conversations_titlebar_entry = new ConversationsTitlebarEntry(app.stream_interaction); + + this.app.plugin_registry.register_contact_titlebar_entry(conversations_titlebar_entry); + this.app.stream_interaction.module_manager.initialize_account_modules.connect((account, list) => { + list.add(new UploadStreamModule()); + }); + Manager.start(this.app.stream_interaction); + } catch (Error e) { + print(@"Error initializing http-files: $(e.message)\n"); + } + } + + public void shutdown() { + // Nothing to do + } +} + +} |