Top | ![]() |
![]() |
![]() |
![]() |
This code is designed to make the property bag interface slightly easier to use, by allowing optional CORBA environments, sensible return values on exceptions, and accessors for specific types of CORBA_Any. eg. bonobo_property_bag_client_get_value_glong.
With the property bag interface, as in all current remote Bonobo method invocations, translation issues are very dodgy. Assuming that the server process was activated in the correct locale, all should be well, however there is no guarantee that ( in a rapidly changing locale environment ) the string will be correctly translated. It is difficult to know how to solve this problem.
gchar * bonobo_pbclient_get_string (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
Get a string from the PropertyBag
gchar * bonobo_pbclient_get_default_string (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
gchar * bonobo_pbclient_get_string_with_default (Bonobo_PropertyBag bag
,const char *key
,gchar *defval
,gboolean *def
);
gint16 bonobo_pbclient_get_short (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
Get a 16 bit integer from the PropertyBag
gint16 bonobo_pbclient_get_default_short (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
gint16 bonobo_pbclient_get_short_with_default (Bonobo_PropertyBag bag
,const char *key
,gint16 defval
,gboolean *def
);
guint16 bonobo_pbclient_get_ushort (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
Get a 16 bit unsigned integer from the PropertyBag
guint16 bonobo_pbclient_get_default_ushort (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
guint16 bonobo_pbclient_get_ushort_with_default (Bonobo_PropertyBag bag
,const char *key
,guint16 defval
,gboolean *def
);
gint32 bonobo_pbclient_get_long (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
Get a 32 bit integer from the PropertyBag
gint32 bonobo_pbclient_get_default_long (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
gint32 bonobo_pbclient_get_long_with_default (Bonobo_PropertyBag bag
,const char *key
,gint32 defval
,gboolean *def
);
guint32 bonobo_pbclient_get_ulong (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
Get a 32 bit unsigned integer from the PropertyBag
guint32 bonobo_pbclient_get_default_ulong (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
guint32 bonobo_pbclient_get_ulong_with_default (Bonobo_PropertyBag bag
,const char *key
,guint32 defval
,gboolean *def
);
gfloat bonobo_pbclient_get_float (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
Get a single precision floating point value from the PropertyBag
gfloat bonobo_pbclient_get_default_float (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
gfloat bonobo_pbclient_get_float_with_default (Bonobo_PropertyBag bag
,const char *key
,gfloat defval
,gboolean *def
);
gdouble bonobo_pbclient_get_double (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
Get a double precision floating point value from the PropertyBag
gdouble bonobo_pbclient_get_default_double (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
gdouble bonobo_pbclient_get_double_with_default (Bonobo_PropertyBag bag
,const char *key
,gdouble defval
,gboolean *def
);
gboolean bonobo_pbclient_get_boolean (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
Get a boolean value from the PropertyBag
gboolean bonobo_pbclient_get_default_boolean (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
gboolean bonobo_pbclient_get_boolean_with_default (Bonobo_PropertyBag bag
,const char *key
,gboolean defval
,gboolean *def
);
gchar bonobo_pbclient_get_char (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
Get a 8 bit character value from the PropertyBag
gchar bonobo_pbclient_get_default_char (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
gchar bonobo_pbclient_get_char_with_default (Bonobo_PropertyBag bag
,const char *key
,gchar defval
,gboolean *def
);
CORBA_any * bonobo_pbclient_get_value (Bonobo_PropertyBag bag
,const char *key
,CORBA_TypeCode opt_tc
,CORBA_Environment *opt_ev
);
Get a value from the PropertyBag
CORBA_any * bonobo_pbclient_get_default_value (Bonobo_PropertyBag bag
,const char *key
,CORBA_TypeCode opt_tc
,CORBA_Environment *opt_ev
);
Get the default value from the PropertyBag
void bonobo_pbclient_set_string (Bonobo_PropertyBag bag
,const char *key
,const char *value
,CORBA_Environment *opt_ev
);
Set a string value in the PropertyBag.
void bonobo_pbclient_set_short (Bonobo_PropertyBag bag
,const char *key
,gint16 value
,CORBA_Environment *opt_ev
);
Set a 16 bit integer value in the PropertyBag.
void bonobo_pbclient_set_ushort (Bonobo_PropertyBag bag
,const char *key
,guint16 value
,CORBA_Environment *opt_ev
);
Set a 16 bit unsigned integer value in the PropertyBag.
void bonobo_pbclient_set_long (Bonobo_PropertyBag bag
,const char *key
,gint32 value
,CORBA_Environment *opt_ev
);
Set a 32 bit integer value in the PropertyBag.
void bonobo_pbclient_set_ulong (Bonobo_PropertyBag bag
,const char *key
,guint32 value
,CORBA_Environment *opt_ev
);
Set a 32 bit unsigned integer value in the PropertyBag.
void bonobo_pbclient_set_float (Bonobo_PropertyBag bag
,const char *key
,gfloat value
,CORBA_Environment *opt_ev
);
Set a single precision floating point value in the PropertyBag.
void bonobo_pbclient_set_double (Bonobo_PropertyBag bag
,const char *key
,gdouble value
,CORBA_Environment *opt_ev
);
Set a double precision floating point value in the PropertyBag.
void bonobo_pbclient_set_boolean (Bonobo_PropertyBag bag
,const char *key
,gboolean value
,CORBA_Environment *opt_ev
);
Set a boolean value in the PropertyBag.
void bonobo_pbclient_set_char (Bonobo_PropertyBag bag
,const char *key
,gchar value
,CORBA_Environment *opt_ev
);
Set a 8 bit characte value in the PropertyBag.
void bonobo_pbclient_set_value (Bonobo_PropertyBag bag
,const char *key
,CORBA_any *value
,CORBA_Environment *opt_ev
);
Set a value in the PropertyBag.
void bonobo_pbclient_set_value_async (Bonobo_PropertyBag bag
,const char *key
,CORBA_any *value
,CORBA_Environment *opt_ev
);
Set a value on the PropertyBag asynchronously, discarding any possible roundtrip exceptions.
char * bonobo_pbclient_get_doc_title (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
char * bonobo_pbclient_get_doc (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
GList * bonobo_pbclient_get_keys (Bonobo_PropertyBag bag
,CORBA_Environment *opt_ev
);
Bonobo_PropertyFlags bonobo_pbclient_get_flags (Bonobo_PropertyBag bag
,const char *key
,CORBA_Environment *opt_ev
);
void bonobo_pbclient_set (Bonobo_PropertyBag bag
,CORBA_Environment *opt_ev
,const char *first_prop
,...
);
void bonobo_pbclient_get (Bonobo_PropertyBag bag
,CORBA_Environment *opt_ev
,const char *first_prop
,...
);
char * bonobo_pbclient_setv (Bonobo_PropertyBag bag
,CORBA_Environment *ev
,const char *first_arg
,va_list var_args
);
This function provides the grunt implementation for other var-arg functions like bonobo_widget_set_property
char * bonobo_pbclient_getv (Bonobo_PropertyBag bag
,CORBA_Environment *ev
,const char *first_arg
,va_list var_args
);
This function provides the grunt implementation for other var-arg functions like bonobo_widget_get_property.
#define bonobo_property_bag_client_get_value_any(pb, name, ev)
#define bonobo_property_bag_client_get_default_gboolean
#define bonobo_property_bag_client_get_default_gdouble