1
0
Fork 0

In progress...

This commit is contained in:
Kolan Sh 2016-02-14 14:41:36 +03:00
parent 1c6ac9a6d3
commit c13853fb4a
1 changed files with 10 additions and 2 deletions

View File

@ -21,13 +21,21 @@ public class PluginDataExample : PluginData {
stdout.puts ("PluginDataExample deinit () called\n");
}
/**
* Get plugin name.
*/
public override string get_name () {
return "DataExample";
}
/**
* 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 ();
stdout.puts ("Call IHostCore.get_cache_dir () from PluginDataExample:\n ");
var cache_dir = (host as IHostCore).get_cache_dir ();
stdout.printf ("cache_dir = %s\n", cache_dir);
return _("Data Example");
}
}