edcdaa47cae4bcf67aea59ebcef143802dfb38da
[profile/ivi/gsignond.git] / include / gsignond / gsignond-config.h
1 /* vi: set et sw=4 ts=4 cino=t0,(0: */
2 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 /*
4  * This file is part of gsignond
5  *
6  * Copyright (C) 2012 Intel Corporation.
7  *
8  * Contact: Amarnath Valluri <amarnath.valluri@linux.intel.com>
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 2.1 of the License, or (at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful, but
16  * WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with this library; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
23  * 02110-1301 USA
24  */
25
26 #ifndef __GSIGNOND_CONFIG_H_
27 #define __GSIGNOND_CONFIG_H_
28
29 #include <glib.h>
30 #include <glib-object.h>
31
32 #include "gsignond-config-general.h"
33 #include "gsignond-config-db.h"
34 #include "gsignond-config-dbus.h"
35
36 G_BEGIN_DECLS
37
38 #define GSIGNOND_TYPE_CONFIG            (gsignond_config_get_type())
39 #define GSIGNOND_CONFIG(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), GSIGNOND_TYPE_CONFIG, GSignondConfig))
40 #define GSIGNOND_CONFIG_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass), GSIGNOND_TYPE_CONFIG, GSignondConfigClass))
41 #define GSIGNOND_IS_CONFIG(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), GSIGNOND_TYPE_CONFIG))
42 #define GSIGNOND_IS_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GSIGNOND_TYPE_CONFIG))
43 #define GSIGNOND_CONFIG_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), GSIGNOND_TYPE_CONFIG, GSignondConfigClass))
44
45 typedef struct _GSignondConfig GSignondConfig;
46 typedef struct _GSignondConfigClass GSignondConfigClass;
47 typedef struct _GSignondConfigPrivate GSignondConfigPrivate;
48
49 struct _GSignondConfig
50 {
51     GObject parent;
52
53     /* priv */
54     GSignondConfigPrivate *priv;
55 };
56
57 struct _GSignondConfigClass
58 {
59     /*< private >*/
60     GObjectClass parent_class;
61 };
62
63 GType gsignond_config_get_type (void) G_GNUC_CONST;
64
65 GSignondConfig * gsignond_config_new ();
66
67 gint
68 gsignond_config_get_integer (GSignondConfig *self, const gchar *key);
69
70 void
71 gsignond_config_set_integer (GSignondConfig *self, const gchar *key,
72                              gint value) ;
73 const gchar*
74 gsignond_config_get_string (GSignondConfig *self, const gchar *key);
75
76 void
77 gsignond_config_set_string (GSignondConfig *self, const gchar *key,
78                              const gchar *value); 
79
80 G_END_DECLS
81
82 #endif /* __GSIGNOND_CONFIG_H_ */