libhildondesktop

libhildondesktop — macros to define Hildon Desktop plugins.

Synopsis

#define             HD_DEFINE_PLUGIN_EXTENDED           (TN, t_n, T_P, CODE_LOAD, CODE_UNLOAD)
#define             HD_DEFINE_PLUGIN                    (TN, t_n, T_P)
#define             HD_DEFINE_PLUGIN_WITH_CODE          (TN, t_n, T_P, CODE)
#define             HD_DEFINE_TYPE_MODULE_EXTENDED      (TypeName, type_name, TYPE_PARENT, flags, CODE)

Description

see_also: StatusbarItem, TaskNavigatorItem.

Details

HD_DEFINE_PLUGIN_EXTENDED()

#define             HD_DEFINE_PLUGIN_EXTENDED(TN, t_n, T_P, CODE_LOAD, CODE_UNLOAD)

Register an object supplied by a plugin in Hildon Desktop.

TN : The name of the object type, in Camel case. (ex: ObjectType)
t_n : The name of the object type, in lowercase, with words separated by '_'. (ex: object_type)
T_P : The GType of the parent (ex: STATUSBAR_TYPE_ITEM)
CODE_LOAD : code executed when the plugin is loaded.
CODE_UNLOAD : code executed when the plugin is unloaded.

HD_DEFINE_PLUGIN()

#define             HD_DEFINE_PLUGIN(TN, t_n, T_P)

Register an object supplied by a plugin in Hildon Desktop. FIXME: link to an example.

TN : The name of the object type, in Camel case. (ex: ObjectType)
t_n : The name of the object type, in lowercase, with words separated by '_'. (ex: object_type)
T_P : The GType of the parent (ex: STATUSBAR_TYPE_ITEM)

HD_DEFINE_PLUGIN_WITH_CODE()

#define             HD_DEFINE_PLUGIN_WITH_CODE(TN, t_n, T_P, CODE)

TN :
t_n :
T_P :
CODE :

HD_DEFINE_TYPE_MODULE_EXTENDED()

#define             HD_DEFINE_TYPE_MODULE_EXTENDED(TypeName, type_name, TYPE_PARENT, flags, CODE)

TypeName :
type_name :
TYPE_PARENT :
flags :
CODE :