1
0
Fork 0

In progress...

This commit is contained in:
Kolan Sh 2016-02-14 14:21:24 +03:00
parent 74be658bab
commit 5113716084
1 changed files with 8 additions and 8 deletions

View File

@ -5,20 +5,20 @@ extern const string GETTEXT_PACKAGE;
/**
* Plugin of type A1.
*/
public class PluginProtocolObjectExample : PluginProtocolObject {
public class PluginObjectExample : PluginObject {
/**
* Constructs a new ``PluginProtocolObjectExample``.
* Constructs a new ``PluginObjectExample``.
*/
construct {
stdout.puts ("PluginProtocolObjectExample init () called\n");
stdout.puts ("PluginObjectExample init () called\n");
}
/**
* Destroys the ``PluginProtocolExample``.
*/
~PluginProtocolObjectExample () {
stdout.puts ("PluginProtocolObjectExample deinit () called\n");
~PluginObjectExample () {
stdout.puts ("PluginObjectExample deinit () called\n");
}
/**
@ -32,8 +32,8 @@ public class PluginProtocolObjectExample : PluginProtocolObject {
* Gets readable name of the plugin.
*/
public override string get_readable_name () {
stdout.puts ("PluginProtocolObjectExample.get_readable_name () called\n");
stdout.puts ("Call IHostCore.any_host_method () from PluginProtocolObjectExample:\n ");
stdout.puts ("PluginObjectExample.get_readable_name () called\n");
stdout.puts ("Call IHostCore.any_host_method () from PluginObjectExample:\n ");
(host as IHostCore).any_host_method ();
return _("Protocol Object Example");
}
@ -41,5 +41,5 @@ public class PluginProtocolObjectExample : PluginProtocolObject {
[ModuleInit]
Type plugin_init (GLib.TypeModule type_module) {
return typeof (PluginProtocolObjectExample);
return typeof (PluginObjectExample);
}