diff --git a/src/main.vala b/src/main.vala index 358f578..d8a520f 100644 --- a/src/main.vala +++ b/src/main.vala @@ -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); }