2 * Copyright © 2009, 2010 Codethink Limited
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the licence, 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 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
17 * Author: Ryan Lortie <desrt@desrt.ca>
20 #ifndef __G_DELAYED_SETTINGS_BACKEND_H__
21 #define __G_DELAYED_SETTINGS_BACKEND_H__
23 #include <glib-object.h>
25 #include <gio/gsettingsbackend.h>
27 #define G_TYPE_DELAYED_SETTINGS_BACKEND (g_delayed_settings_backend_get_type ())
28 #define G_DELAYED_SETTINGS_BACKEND(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
29 G_TYPE_DELAYED_SETTINGS_BACKEND, \
30 GDelayedSettingsBackend))
31 #define G_DELAYED_SETTINGS_BACKEND_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
32 G_TYPE_DELAYED_SETTINGS_BACKEND, \
33 GDelayedSettingsBackendClass))
34 #define G_IS_DELAYED_SETTINGS_BACKEND(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
35 G_TYPE_DELAYED_SETTINGS_BACKEND))
36 #define G_IS_DELAYED_SETTINGS_BACKEND_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
37 G_TYPE_DELAYED_SETTINGS_BACKEND))
38 #define G_DELAYED_SETTINGS_BACKEND_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), \
39 G_TYPE_DELAYED_SETTINGS_BACKEND, \
40 GDelayedSettingsBackendClass))
42 typedef struct _GDelayedSettingsBackendPrivate GDelayedSettingsBackendPrivate
;
43 typedef struct _GDelayedSettingsBackendClass GDelayedSettingsBackendClass
;
44 typedef struct _GDelayedSettingsBackend GDelayedSettingsBackend
;
46 struct _GDelayedSettingsBackendClass
48 GSettingsBackendClass parent_class
;
51 struct _GDelayedSettingsBackend
53 GSettingsBackend parent_instance
;
54 GDelayedSettingsBackendPrivate
*priv
;
57 GType
g_delayed_settings_backend_get_type (void);
58 GDelayedSettingsBackend
* g_delayed_settings_backend_new (GSettingsBackend
*backend
,
60 GMainContext
*owner_context
);
61 void g_delayed_settings_backend_revert (GDelayedSettingsBackend
*delayed
);
62 void g_delayed_settings_backend_apply (GDelayedSettingsBackend
*delayed
);
63 gboolean
g_delayed_settings_backend_get_has_unapplied (GDelayedSettingsBackend
*delayed
);
65 #endif /* __G_DELAYED_SETTINGS_BACKEND_H__ */