Implement bash completion for gsettings
[platform/upstream/glib.git] / gio / gdelayedsettingsbackend.h
1 /*
2  * Copyright © 2009, 2010 Codethink Limited
3  *
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.
8  *
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.
13  *
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.
18  *
19  * Author: Ryan Lortie <desrt@desrt.ca>
20  */
21
22 #ifndef __G_DELAYED_SETTINGS_BACKEND_H__
23 #define __G_DELAYED_SETTINGS_BACKEND_H__
24
25 #include <glib-object.h>
26
27 #include <gio/gsettingsbackend.h>
28
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))
43
44 typedef struct _GDelayedSettingsBackendPrivate              GDelayedSettingsBackendPrivate;
45 typedef struct _GDelayedSettingsBackendClass                GDelayedSettingsBackendClass;
46 typedef struct _GDelayedSettingsBackend                     GDelayedSettingsBackend;
47
48 struct _GDelayedSettingsBackendClass
49 {
50   GSettingsBackendClass parent_class;
51 };
52
53 struct _GDelayedSettingsBackend
54 {
55   GSettingsBackend parent_instance;
56   GDelayedSettingsBackendPrivate *priv;
57 };
58
59 G_GNUC_INTERNAL
60 GType                           g_delayed_settings_backend_get_type     (void);
61 G_GNUC_INTERNAL
62 GDelayedSettingsBackend *       g_delayed_settings_backend_new          (GSettingsBackend        *backend,
63                                                                          gpointer                 owner,
64                                                                          GMainContext            *owner_context);
65 G_GNUC_INTERNAL
66 void                            g_delayed_settings_backend_revert       (GDelayedSettingsBackend *delayed);
67 G_GNUC_INTERNAL
68 void                            g_delayed_settings_backend_apply        (GDelayedSettingsBackend *delayed);
69 G_GNUC_INTERNAL
70 gboolean                        g_delayed_settings_backend_get_has_unapplied (GDelayedSettingsBackend *delayed);
71
72 #endif  /* __G_DELAYED_SETTINGS_BACKEND_H__ */