1
0
Fork 0

In progress...

This commit is contained in:
Kolan Sh 2015-11-07 18:18:49 +03:00
parent 6852189789
commit 8d4a28f4eb
1 changed files with 32 additions and 4 deletions

View File

@ -1,10 +1,38 @@
using Gtk;
using LAview, GObject.Plugins;
extern const string GETTEXT_PACKAGE;
void main (string[] args) {
/**
* Plugin of type A1.
*/
public class PluginDataExample : PluginData {
stdout.printf ("hello, world\n");
/**
* Constructs a new ``PluginDataExample``.
*/
construct {
stdout.puts ("PluginDataExample init () called\n");
}
return;
/**
* Destroys the ``PluginDataExample``.
*/
~PluginDataExample () {
stdout.puts ("PluginDataExample deinit () called\n");
}
/**
* Any abstract method realization for PluginData.
*/
public override string get_readable_name () {
stdout.puts ("PluginDataExample.get_readable_name () called\n");
stdout.puts ("Call IHostCore.any_host_method () from PluginDataExample:\n ");
(host as IHostCore).any_host_method ();
return _("Data Example");
}
}
[ModuleInit]
Type plugin_init (GLib.TypeModule type_module) {
return typeof (PluginDataExample);
}