BonoboItemHandler

Name

BonoboItemHandler -- 

Synopsis



#define     BONOBO_ITEM_HANDLER_TYPE
struct      BonoboItemHandlerPrivate;
struct      BonoboItemHandler;
typedef     BonoboItemHandlerClass;
BonoboItemHandler* bonobo_item_handler_new  (BonoboItemHandlerEnumObjectsFn enum_objects,
                                             BonoboItemHandlerGetObjectFn get_object,
                                             gpointer user_data);
BonoboItemHandler* bonobo_item_handler_new_closure
                                            (GClosure *enum_objects,
                                             GClosure *get_object);
BonoboItemHandler* bonobo_item_handler_construct
                                            (BonoboItemHandler *handler,
                                             GClosure *enum_objects,
                                             GClosure *get_object);
typedef     BonoboItemOption;
GSList*     bonobo_item_option_parse        (const char *option_string);
void        bonobo_item_options_free        (GSList *options);

Description

Details

BONOBO_ITEM_HANDLER_TYPE

#define BONOBO_ITEM_HANDLER_TYPE        BONOBO_TYPE_ITEM_HANDLER /* deprecated, you should use BONOBO_TYPE_ITEM_HANDLER */


struct BonoboItemHandlerPrivate

struct BonoboItemHandlerPrivate;


struct BonoboItemHandler

struct BonoboItemHandler {
	BonoboObject base;

	POA_Bonobo_ItemContainer__epv epv;

	BonoboItemHandlerPrivate      *priv;
};


BonoboItemHandlerClass

typedef struct {
	BonoboObjectClass parent_class;

	POA_Bonobo_ItemContainer__epv epv;
} BonoboItemHandlerClass;


bonobo_item_handler_new ()

BonoboItemHandler* bonobo_item_handler_new  (BonoboItemHandlerEnumObjectsFn enum_objects,
                                             BonoboItemHandlerGetObjectFn get_object,
                                             gpointer user_data);

Creates a new BonoboItemHandler object. These are used to hold client sites.

enum_objects : 
get_object : 
user_data : 
Returns : The newly created BonoboItemHandler object


bonobo_item_handler_new_closure ()

BonoboItemHandler* bonobo_item_handler_new_closure
                                            (GClosure *enum_objects,
                                             GClosure *get_object);

Creates a new BonoboItemHandler object. These are used to hold client sites.

enum_objects : 
get_object : 
Returns : The newly created BonoboItemHandler object


bonobo_item_handler_construct ()

BonoboItemHandler* bonobo_item_handler_construct
                                            (BonoboItemHandler *handler,
                                             GClosure *enum_objects,
                                             GClosure *get_object);

Constructs the container BonoboObject using the provided closures for the actual implementation.

handler : 
enum_objects : The closure implementing enumObjects
get_object : The closure implementing getObject
Returns : The constructed BonoboItemContainer object.


BonoboItemOption

typedef struct {
	char *key;
	char *value;
} BonoboItemOption;


bonobo_item_option_parse ()

GSList*     bonobo_item_option_parse        (const char *option_string);

option_string : 
Returns : 


bonobo_item_options_free ()

void        bonobo_item_options_free        (GSList *options);

Use this to release a list returned by bonobo_item_option_parse()

options : a GSList of BonoboItemOption structures that was returned by bonobo_item_option_parse()

See Also

A simplistic implementation exists in BonoboItemContainer.