• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2008 Christian Dywan <christian@imendio.com>
3  * Copyright (C) 2009 Jan Michael Alonzo <jmalonzo@gmail.com
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB.  If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef __WEBKIT_WEB_SETTINGS_H__
22 #define __WEBKIT_WEB_SETTINGS_H__
23 
24 #include <glib-object.h>
25 
26 #include <webkit/webkitdefines.h>
27 
28 G_BEGIN_DECLS
29 
30 #define WEBKIT_TYPE_WEB_SETTINGS            (webkit_web_settings_get_type())
31 #define WEBKIT_WEB_SETTINGS(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_TYPE_WEB_SETTINGS, WebKitWebSettings))
32 #define WEBKIT_WEB_SETTINGS_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass),  WEBKIT_TYPE_WEB_SETTINGS, WebKitWebSettingsClass))
33 #define WEBKIT_IS_WEB_SETTINGS(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_TYPE_WEB_SETTINGS))
34 #define WEBKIT_IS_WEB_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),  WEBKIT_TYPE_WEB_SETTINGS))
35 #define WEBKIT_WEB_SETTINGS_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj),  WEBKIT_TYPE_WEB_SETTINGS, WebKitWebSettingsClass))
36 
37 typedef struct _WebKitWebSettingsPrivate WebKitWebSettingsPrivate;
38 
39 struct _WebKitWebSettings {
40     GObject parent_instance;
41 
42     /*< private >*/
43     WebKitWebSettingsPrivate *priv;
44 };
45 
46 struct _WebKitWebSettingsClass {
47     GObjectClass parent_class;
48 
49     /* Padding for future expansion */
50     void (*_webkit_reserved1) (void);
51     void (*_webkit_reserved2) (void);
52     void (*_webkit_reserved3) (void);
53     void (*_webkit_reserved4) (void);
54 };
55 
56 WEBKIT_API GType
57 webkit_web_settings_get_type          (void);
58 
59 WEBKIT_API WebKitWebSettings *
60 webkit_web_settings_new               (void);
61 
62 WEBKIT_API WebKitWebSettings *
63 webkit_web_settings_copy              (WebKitWebSettings *web_settings);
64 
65 WEBKIT_API G_CONST_RETURN gchar *
66 webkit_web_settings_get_user_agent    (WebKitWebSettings *web_settings);
67 
68 G_END_DECLS
69 
70 #endif /* __WEBKIT_WEB_SETTINGS_H__ */
71