2
* Copyright (C) 1999, 2000 Red Hat Inc.
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Library General Public
6
* License as published by the Free Software Foundation; either
7
* version 2 of the License, or (at your option) any later version.
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Library General Public License for more details.
14
* You should have received a copy of the GNU Library General Public
15
* License along with this library; if not, write to the
16
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
* Boston, MA 02111-1307, USA.
20
#ifndef GCONF_GCONF_DATABASE_H
21
#define GCONF_GCONF_DATABASE_H
27
#endif /* __cplusplus */
29
#include "gconf-error.h"
31
#include "gconf-listeners.h"
32
#include "gconf-sources.h"
33
#include "gconf-internals.h"
34
#include "gconf-glib-private.h"
36
typedef struct _GConfDatabase GConfDatabase;
40
/* "inherit" from the servant,
41
must be first in struct */
42
POA_ConfigDatabase2 servant;
44
ConfigDatabase objref;
46
GConfListeners* listeners;
47
GConfSources* sources;
53
gchar *persistent_name;
56
GConfDatabase* gconf_database_new (GConfSources *sources);
57
void gconf_database_free (GConfDatabase *db);
59
void gconf_database_drop_dead_listeners (GConfDatabase *db);
61
CORBA_unsigned_long gconf_database_add_listener (GConfDatabase *db,
64
void gconf_database_remove_listener (GConfDatabase *db,
65
CORBA_unsigned_long cnxn);
67
CORBA_unsigned_long gconf_database_readd_listener (GConfDatabase *db,
71
void gconf_database_notify_listeners (GConfDatabase *db,
73
const ConfigValue *value,
75
gboolean is_writable);
78
GConfValue* gconf_database_query_value (GConfDatabase *db,
80
const gchar **locales,
81
gboolean use_schema_default,
83
gboolean *value_is_default,
84
gboolean *value_is_writable,
86
GConfValue* gconf_database_query_default_value (GConfDatabase *db,
88
const gchar **locales,
89
gboolean *is_writable,
94
void gconf_database_set (GConfDatabase *db,
97
const ConfigValue *cvalue,
99
void gconf_database_unset (GConfDatabase *db,
106
gboolean gconf_database_dir_exists (GConfDatabase *db,
109
void gconf_database_remove_dir (GConfDatabase *db,
112
GSList* gconf_database_all_entries (GConfDatabase *db,
114
const gchar **locales,
116
GSList* gconf_database_all_dirs (GConfDatabase *db,
119
void gconf_database_set_schema (GConfDatabase *db,
121
const gchar *schema_key,
125
void gconf_database_sync (GConfDatabase *db,
127
gboolean gconf_database_synchronous_sync (GConfDatabase *db,
129
void gconf_database_clear_cache (GConfDatabase *db,
133
void gconfd_locale_cache_expire (void);
134
void gconfd_locale_cache_drop (void);
136
const gchar* gconf_database_get_persistent_name (GConfDatabase *db);
138
void gconf_database_log_listeners_to_string (GConfDatabase *db,
144
#endif /* __cplusplus */