1 | /* |
---|
2 | * bonobo-property-bag-client.c: C sugar for property bags. |
---|
3 | * |
---|
4 | * Author: |
---|
5 | * Nat Friedman (nat@nat.org) |
---|
6 | * |
---|
7 | * Copyright 1999, Helix Code, Inc. |
---|
8 | */ |
---|
9 | #ifndef __BONOBO_PROPERTY_BAG_CLIENT_H__ |
---|
10 | #define __BONOBO_PROPERTY_BAG_CLIENT_H__ |
---|
11 | |
---|
12 | #include <stdarg.h> |
---|
13 | #include <libgnome/gnome-defs.h> |
---|
14 | #include <bonobo/bonobo-object.h> |
---|
15 | #include <bonobo/bonobo-stream.h> |
---|
16 | #include <bonobo/bonobo-property-bag.h> |
---|
17 | #include <bonobo/bonobo-object-client.h> |
---|
18 | |
---|
19 | BEGIN_GNOME_DECLS |
---|
20 | |
---|
21 | GList *bonobo_property_bag_client_get_properties (Bonobo_PropertyBag pb, |
---|
22 | CORBA_Environment *ev); |
---|
23 | void bonobo_property_bag_client_free_properties (GList *list); |
---|
24 | GList *bonobo_property_bag_client_get_property_names (Bonobo_PropertyBag pb, |
---|
25 | CORBA_Environment *ev); |
---|
26 | Bonobo_Property bonobo_property_bag_client_get_property (Bonobo_PropertyBag pb, |
---|
27 | const char *property_name, |
---|
28 | CORBA_Environment *ev); |
---|
29 | void bonobo_property_bag_client_persist (Bonobo_PropertyBag pb, |
---|
30 | Bonobo_Stream stream, |
---|
31 | CORBA_Environment *ev); |
---|
32 | void bonobo_property_bag_client_depersist (Bonobo_PropertyBag pb, |
---|
33 | Bonobo_Stream stream, |
---|
34 | CORBA_Environment *ev); |
---|
35 | |
---|
36 | GtkType bonobo_property_bag_client_get_type (void); |
---|
37 | |
---|
38 | char *bonobo_property_bag_client_setv (Bonobo_PropertyBag pb, |
---|
39 | CORBA_Environment *ev, |
---|
40 | const char *first_arg, |
---|
41 | va_list var_args); |
---|
42 | char *bonobo_property_bag_client_getv (Bonobo_PropertyBag pb, |
---|
43 | CORBA_Environment *ev, |
---|
44 | const char *first_arg, |
---|
45 | va_list var_args); |
---|
46 | |
---|
47 | /* |
---|
48 | * |
---|
49 | * Property querying/manipulation routines. |
---|
50 | * |
---|
51 | * These are just provided as a convenience; you can also manipulate |
---|
52 | * the properties directly. |
---|
53 | * |
---|
54 | */ |
---|
55 | |
---|
56 | /* Querying the property type. */ |
---|
57 | CORBA_TypeCode bonobo_property_bag_client_get_property_type (Bonobo_PropertyBag pb, |
---|
58 | const char *propname, |
---|
59 | CORBA_Environment *ev); |
---|
60 | |
---|
61 | /* Querying property values. */ |
---|
62 | gboolean bonobo_property_bag_client_get_value_gboolean (Bonobo_PropertyBag pb, |
---|
63 | const char *propname, |
---|
64 | CORBA_Environment *ev); |
---|
65 | gint bonobo_property_bag_client_get_value_gint (Bonobo_PropertyBag pb, |
---|
66 | const char *propname, |
---|
67 | CORBA_Environment *ev); |
---|
68 | glong bonobo_property_bag_client_get_value_glong (Bonobo_PropertyBag pb, |
---|
69 | const char *propname, |
---|
70 | CORBA_Environment *ev); |
---|
71 | gfloat bonobo_property_bag_client_get_value_gfloat (Bonobo_PropertyBag pb, |
---|
72 | const char *propname, |
---|
73 | CORBA_Environment *ev); |
---|
74 | gdouble bonobo_property_bag_client_get_value_gdouble (Bonobo_PropertyBag pb, |
---|
75 | const char *propname, |
---|
76 | CORBA_Environment *ev); |
---|
77 | char *bonobo_property_bag_client_get_value_string (Bonobo_PropertyBag pb, |
---|
78 | const char *propname, |
---|
79 | CORBA_Environment *ev); |
---|
80 | BonoboArg *bonobo_property_bag_client_get_value_any (Bonobo_PropertyBag pb, |
---|
81 | const char *propname, |
---|
82 | CORBA_Environment *ev); |
---|
83 | |
---|
84 | /* Querying property default values. */ |
---|
85 | gboolean bonobo_property_bag_client_get_default_gboolean (Bonobo_PropertyBag pb, |
---|
86 | const char *propname, |
---|
87 | CORBA_Environment *ev); |
---|
88 | gint bonobo_property_bag_client_get_default_gint (Bonobo_PropertyBag pb, |
---|
89 | const char *propname, |
---|
90 | CORBA_Environment *ev); |
---|
91 | glong bonobo_property_bag_client_get_default_glong (Bonobo_PropertyBag pb, |
---|
92 | const char *propname, |
---|
93 | CORBA_Environment *ev); |
---|
94 | gfloat bonobo_property_bag_client_get_default_gfloat (Bonobo_PropertyBag pb, |
---|
95 | const char *propname, |
---|
96 | CORBA_Environment *ev); |
---|
97 | gdouble bonobo_property_bag_client_get_default_gdouble (Bonobo_PropertyBag pb, |
---|
98 | const char *propname, |
---|
99 | CORBA_Environment *ev); |
---|
100 | char *bonobo_property_bag_client_get_default_string (Bonobo_PropertyBag pb, |
---|
101 | const char *propname, |
---|
102 | CORBA_Environment *ev); |
---|
103 | BonoboArg *bonobo_property_bag_client_get_default_any (Bonobo_PropertyBag pb, |
---|
104 | const char *propname, |
---|
105 | CORBA_Environment *ev); |
---|
106 | |
---|
107 | /* Setting property values. */ |
---|
108 | void bonobo_property_bag_client_set_value_gboolean (Bonobo_PropertyBag pb, |
---|
109 | const char *propname, |
---|
110 | gboolean value, |
---|
111 | CORBA_Environment *ev); |
---|
112 | void bonobo_property_bag_client_set_value_gint (Bonobo_PropertyBag pb, |
---|
113 | const char *propname, |
---|
114 | gint value, |
---|
115 | CORBA_Environment *ev); |
---|
116 | void bonobo_property_bag_client_set_value_glong (Bonobo_PropertyBag pb, |
---|
117 | const char *propname, |
---|
118 | glong value, |
---|
119 | CORBA_Environment *ev); |
---|
120 | void bonobo_property_bag_client_set_value_gfloat (Bonobo_PropertyBag pb, |
---|
121 | const char *propname, |
---|
122 | gfloat value, |
---|
123 | CORBA_Environment *ev); |
---|
124 | void bonobo_property_bag_client_set_value_gdouble (Bonobo_PropertyBag pb, |
---|
125 | const char *propname, |
---|
126 | gdouble value, |
---|
127 | CORBA_Environment *ev); |
---|
128 | void bonobo_property_bag_client_set_value_string (Bonobo_PropertyBag pb, |
---|
129 | const char *propname, |
---|
130 | const char *value, |
---|
131 | CORBA_Environment *ev); |
---|
132 | void bonobo_property_bag_client_set_value_any (Bonobo_PropertyBag pb, |
---|
133 | const char *propname, |
---|
134 | BonoboArg *value, |
---|
135 | CORBA_Environment *ev); |
---|
136 | |
---|
137 | /* Querying other fields and flags. */ |
---|
138 | char *bonobo_property_bag_client_get_docstring (Bonobo_PropertyBag pb, |
---|
139 | const char *propname, |
---|
140 | CORBA_Environment *ev); |
---|
141 | BonoboPropertyFlags bonobo_property_bag_client_get_flags (Bonobo_PropertyBag pb, |
---|
142 | const char *propname, |
---|
143 | CORBA_Environment *ev); |
---|
144 | |
---|
145 | END_GNOME_DECLS |
---|
146 | |
---|
147 | #endif /* ! ___BONOBO_PROPERTY_BAG_CLIENT_H__ */ |
---|