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, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
19 * Author: Ryan Lortie <desrt@desrt.ca>
22 #ifndef __G_DELAYED_SETTINGS_BACKEND_H__
23 #define __G_DELAYED_SETTINGS_BACKEND_H__
25 #include <glib-object.h>
27 #include <gio/gsettingsbackend.h>
29 #define G_TYPE_DELAYED_SETTINGS_BACKEND (g_delayed_settings_backend_get_type ())
30 #define G_DELAYED_SETTINGS_BACKEND(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
31 G_TYPE_DELAYED_SETTINGS_BACKEND, \
32 GDelayedSettingsBackend))
33 #define G_DELAYED_SETTINGS_BACKEND_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
34 G_TYPE_DELAYED_SETTINGS_BACKEND, \
35 GDelayedSettingsBackendClass))
36 #define G_IS_DELAYED_SETTINGS_BACKEND(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
37 G_TYPE_DELAYED_SETTINGS_BACKEND))
38 #define G_IS_DELAYED_SETTINGS_BACKEND_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
39 G_TYPE_DELAYED_SETTINGS_BACKEND))
40 #define G_DELAYED_SETTINGS_BACKEND_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), \
41 G_TYPE_DELAYED_SETTINGS_BACKEND, \
42 GDelayedSettingsBackendClass))
44 typedef struct _GDelayedSettingsBackendPrivate GDelayedSettingsBackendPrivate;
45 typedef struct _GDelayedSettingsBackendClass GDelayedSettingsBackendClass;
46 typedef struct _GDelayedSettingsBackend GDelayedSettingsBackend;
48 struct _GDelayedSettingsBackendClass
50 GSettingsBackendClass parent_class;
53 struct _GDelayedSettingsBackend
55 GSettingsBackend parent_instance;
56 GDelayedSettingsBackendPrivate *priv;
60 GType g_delayed_settings_backend_get_type (void);
62 GDelayedSettingsBackend * g_delayed_settings_backend_new (GSettingsBackend *backend,
64 GMainContext *owner_context);
66 void g_delayed_settings_backend_revert (GDelayedSettingsBackend *delayed);
68 void g_delayed_settings_backend_apply (GDelayedSettingsBackend *delayed);
70 gboolean g_delayed_settings_backend_get_has_unapplied (GDelayedSettingsBackend *delayed);
72 #endif /* __G_DELAYED_SETTINGS_BACKEND_H__ */