## midori-websettings midori-websettings |

## Synopsis

    #include <midori/midori.h>

    enum                MidoriIdentity;
    enum                MidoriNewPage;
    enum                MidoriNewTabType;
    enum                MidoriPreferredEncoding;
    enum                MidoriProxy;
    enum                MidoriSiteDataPolicy;
    enum                MidoriStartup;
    enum                MidoriToolbarStyle;
                        MidoriWebSettings;
                        MidoriWebSettingsClass;
    MidoriWebSettings * midori_settings_new_full            (gchar ***extensions);
    gboolean            midori_settings_save_to_file        (MidoriWebSettings *settings,
                                                             GObject *app,
                                                             const gchar *filename,
                                                             GError **error);
    void                midori_web_settings_add_style       (MidoriWebSettings *settings,
                                                             const gchar *rule_id,
                                                             const gchar *style);
    MidoriSiteDataPolicy midori_web_settings_get_site_data_policy
                                                            (MidoriWebSettings *settings,
                                                             const gchar *uri);
    const gchar *       midori_web_settings_get_system_name (gchar **architecture,
                                                             gchar **platform);
    gboolean            midori_web_settings_has_plugin_support
                                                            (void);
    MidoriWebSettings * midori_web_settings_new             (void);
    void                midori_web_settings_remove_style    (MidoriWebSettings *settings,
                                                             const gchar *rule_id);
    gboolean            midori_web_settings_skip_plugin     (const gchar *path);

## Description

## Details

### enum MidoriIdentity

    typedef enum {
        MIDORI_IDENT_MIDORI /* Automatic */,
        MIDORI_IDENT_GENUINE /* Midori */,
        MIDORI_IDENT_CHROME,
        MIDORI_IDENT_SAFARI,
        MIDORI_IDENT_IPHONE,
        MIDORI_IDENT_FIREFOX,
        MIDORI_IDENT_EXPLORER,
        MIDORI_IDENT_CUSTOM,
    } MidoriIdentity;

### enum MidoriNewPage

    typedef enum {
        MIDORI_NEW_PAGE_TAB,
        MIDORI_NEW_PAGE_WINDOW,
        MIDORI_NEW_PAGE_CURRENT
    } MidoriNewPage;

### enum MidoriNewTabType

    typedef enum {
        MIDORI_NEWTAB_BLANK_PAGE,
        MIDORI_NEWTAB_HOMEPAGE,
        MIDORI_NEWTAB_SEARCH,
        MIDORI_NEWTAB_SPEED_DIAL,
        MIDORI_NEWTAB_CUSTOM,
    } MidoriNewTabType;

### enum MidoriPreferredEncoding

    typedef enum {
        MIDORI_ENCODING_CHINESE /* Traditional */,
        MIDORI_ENCODING_CHINESE_SIMPLIFIED,
        MIDORI_ENCODING_JAPANESE,
        MIDORI_ENCODING_KOREAN,
        MIDORI_ENCODING_RUSSIAN,
        MIDORI_ENCODING_UNICODE,
        MIDORI_ENCODING_WESTERN,
        MIDORI_ENCODING_CUSTOM
    } MidoriPreferredEncoding;

### enum MidoriProxy

    typedef enum {
        MIDORI_PROXY_AUTOMATIC,
        MIDORI_PROXY_HTTP,
        MIDORI_PROXY_NONE
    } MidoriProxy;

### enum MidoriSiteDataPolicy

    typedef enum {
        MIDORI_SITE_DATA_UNDETERMINED,
        MIDORI_SITE_DATA_BLOCK,
        MIDORI_SITE_DATA_ACCEPT,
        MIDORI_SITE_DATA_PRESERVE,
    } MidoriSiteDataPolicy;

### enum MidoriStartup

    typedef enum {
        MIDORI_STARTUP_BLANK_PAGE, /* One blank tab or speed dial is opened */
        MIDORI_STARTUP_HOMEPAGE, /* One homepage tab is opened */
        MIDORI_STARTUP_LAST_OPEN_PAGES, /* The session is loaded and saved */
        MIDORI_STARTUP_DELAYED_PAGES /* The session is saved, loading pages is delayed */
    } MidoriStartup;

### enum MidoriToolbarStyle

    typedef enum {
        MIDORI_TOOLBAR_DEFAULT,
        MIDORI_TOOLBAR_ICONS,
        MIDORI_TOOLBAR_SMALL_ICONS,
        MIDORI_TOOLBAR_TEXT,
        MIDORI_TOOLBAR_BOTH,
        MIDORI_TOOLBAR_BOTH_HORIZ
    } MidoriToolbarStyle;

### MidoriWebSettings

    typedef struct _MidoriWebSettings MidoriWebSettings;

### MidoriWebSettingsClass

    typedef struct _MidoriWebSettingsClass MidoriWebSettingsClass;

### midori_settings_new_full ()

    MidoriWebSettings * midori_settings_new_full            (gchar ***extensions);

### midori_settings_save_to_file ()

    gboolean            midori_settings_save_to_file        (MidoriWebSettings *settings,
                                                             GObject *app,
                                                             const gchar *filename,
                                                             GError **error);

### midori_web_settings_add_style ()

    void                midori_web_settings_add_style       (MidoriWebSettings *settings,
                                                             const gchar *rule_id,
                                                             const gchar *style);

### midori_web_settings_get_site_data_policy ()

    MidoriSiteDataPolicy midori_web_settings_get_site_data_policy
                                                            (MidoriWebSettings *settings,
                                                             const gchar *uri);

### midori_web_settings_get_system_name ()

    const gchar *       midori_web_settings_get_system_name (gchar **architecture,
                                                             gchar **platform);

### midori_web_settings_has_plugin_support ()

    gboolean            midori_web_settings_has_plugin_support
                                                            (void);

### midori_web_settings_new ()

    MidoriWebSettings * midori_web_settings_new             (void);

### midori_web_settings_remove_style ()

    void                midori_web_settings_remove_style    (MidoriWebSettings *settings,
                                                             const gchar *rule_id);

### midori_web_settings_skip_plugin ()

    gboolean            midori_web_settings_skip_plugin     (const gchar *path);