In progress...
This commit is contained in:
parent
78e68d9f33
commit
3edcaf4136
@ -7,8 +7,6 @@ extern const string GETTEXT_PACKAGE;
|
|||||||
*/
|
*/
|
||||||
public class PluginObjectExample : PluginObject {
|
public class PluginObjectExample : PluginObject {
|
||||||
|
|
||||||
PluginDataExample data_obj_ex = null;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new ``PluginObjectExample``.
|
* Constructs a new ``PluginObjectExample``.
|
||||||
*/
|
*/
|
||||||
@ -38,7 +36,6 @@ public class PluginObjectExample : PluginObject {
|
|||||||
stdout.puts ("Call IHostCore.get_cache_dir () from PluginObjectExample:\n ");
|
stdout.puts ("Call IHostCore.get_cache_dir () from PluginObjectExample:\n ");
|
||||||
var cache_dir = (host as IHostCore).get_cache_dir ();
|
var cache_dir = (host as IHostCore).get_cache_dir ();
|
||||||
stdout.printf ("cache dir = %s\n", cache_dir);
|
stdout.printf ("cache dir = %s\n", cache_dir);
|
||||||
data_obj_ex = (host as IHostCore).get_data_object ("DataExample") as PluginDataExample;
|
|
||||||
return _("Protocol Object Example");
|
return _("Protocol Object Example");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,6 +43,7 @@ public class PluginObjectExample : PluginObject {
|
|||||||
* Compose the object.
|
* Compose the object.
|
||||||
*/
|
*/
|
||||||
public override bool compose (Gee.HashMap<string, AnswerValue> answers) throws Error {
|
public override bool compose (Gee.HashMap<string, AnswerValue> answers) throws Error {
|
||||||
|
PluginDataExample data_obj_ex = (host as IHostCore).get_data_object ("DataExample") as PluginDataExample;
|
||||||
stdout.puts ("Compose() called\n");
|
stdout.puts ("Compose() called\n");
|
||||||
foreach (var a in answers.entries) {
|
foreach (var a in answers.entries) {
|
||||||
stdout.printf ("%s ", a.key);
|
stdout.printf ("%s ", a.key);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user