1 | /** |
---|
2 | * bonobo-config-bag.h: config bag object implementation. |
---|
3 | * |
---|
4 | * Author: |
---|
5 | * Dietmar Maurer (dietmar@ximian.com) |
---|
6 | * Rodrigo Moya (rodrigo@ximian.com) |
---|
7 | * |
---|
8 | * Copyright 2000, 2001 Ximian, Inc. |
---|
9 | */ |
---|
10 | #ifndef __BONOBO_CONFIG_BAG_H__ |
---|
11 | #define __BONOBO_CONFIG_BAG_H__ |
---|
12 | |
---|
13 | #include <gconf/gconf-client.h> |
---|
14 | #include <bonobo/bonobo-object.h> |
---|
15 | #include <bonobo/bonobo-event-source.h> |
---|
16 | |
---|
17 | G_BEGIN_DECLS |
---|
18 | |
---|
19 | #define BONOBO_TYPE_CONFIG_BAG (bonobo_config_bag_get_type ()) |
---|
20 | #define BONOBO_CONFIG_BAG_TYPE BONOBO_TYPE_CONFIG_BAG // deprecated, you should use BONOBO_TYPE_CONFIG_BAG |
---|
21 | #define BONOBO_CONFIG_BAG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), BONOBO_TYPE_CONFIG_BAG, BonoboConfigBag)) |
---|
22 | #define BONOBO_CONFIG_BAG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), BONOBO_TYPE_CONFIG_BAG, BonoboConfigBagClass)) |
---|
23 | #define BONOBO_IS_CONFIG_BAG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), BONOBO_TYPE_CONFIG_BAG)) |
---|
24 | #define BONOBO_IS_CONFIG_BAG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), BONOBO_TYPE_CONFIG_BAG)) |
---|
25 | |
---|
26 | typedef struct _BonoboConfigBag BonoboConfigBag; |
---|
27 | |
---|
28 | struct _BonoboConfigBag { |
---|
29 | BonoboObject base; |
---|
30 | |
---|
31 | gchar *path; |
---|
32 | BonoboEventSource *es; |
---|
33 | GConfClient *conf_client; |
---|
34 | }; |
---|
35 | |
---|
36 | typedef struct { |
---|
37 | BonoboObjectClass parent_class; |
---|
38 | |
---|
39 | POA_Bonobo_PropertyBag__epv epv; |
---|
40 | |
---|
41 | } BonoboConfigBagClass; |
---|
42 | |
---|
43 | |
---|
44 | GType bonobo_config_bag_get_type (void); |
---|
45 | BonoboConfigBag *bonobo_config_bag_new (const gchar *path); |
---|
46 | |
---|
47 | G_END_DECLS |
---|
48 | |
---|
49 | #endif /* ! __BONOBO_CONFIG_BAG_H__ */ |
---|