From e497b299846293f001ad98f2b7dca3e68db2bf26 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 26 Jun 2004 18:28:44 +0000 Subject: Implement File->Work Off-Line command and backend. No DBUS/HAL/whatever 2004-06-26 Christian Persch * data/ui/epiphany-ui.xml: * embed/ephy-embed-single.c: (ephy_embed_single_iface_init), (ephy_embed_single_set_offline_mode), (ephy_embed_single_get_offline_mode): * embed/ephy-embed-single.h: * embed/mozilla/EphySingle.cpp: * embed/mozilla/mozilla-embed-single.cpp: * src/ephy-window.c: (network_status_changed), (ephy_window_init), (ephy_window_finalize): * src/window-commands.c: (window_cmd_file_save_as), (window_cmd_file_work_offline): * src/window-commands.h: Implement File->Work Off-Line command and backend. No DBUS/HAL/whatever integration yet. --- embed/ephy-embed-single.h | 44 +++++++++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 19 deletions(-) (limited to 'embed/ephy-embed-single.h') diff --git a/embed/ephy-embed-single.h b/embed/ephy-embed-single.h index 3893a4aa8..b7b66d13b 100644 --- a/embed/ephy-embed-single.h +++ b/embed/ephy-embed-single.h @@ -45,40 +45,46 @@ struct _EphyEmbedSingleIface char *mime_type, char *uri); + void (* network_status) (EphyEmbedSingle *single, + gboolean offline); + /* Methods */ - void (* open_window) (EphyEmbedSingle *single, - EphyEmbed *parent, - const char *address, - const char *features); - void (* clear_cache) (EphyEmbedSingle *shell); - void (* clear_auth_cache) (EphyEmbedSingle *shell); - void (* set_offline_mode) (EphyEmbedSingle *shell, - gboolean offline); - void (* load_proxy_autoconf) (EphyEmbedSingle *shell, - const char* url); - GList * (* get_font_list) (EphyEmbedSingle *shell, - const char *langGroup); + void (* open_window) (EphyEmbedSingle *single, + EphyEmbed *parent, + const char *address, + const char *features); + void (* clear_cache) (EphyEmbedSingle *shell); + void (* clear_auth_cache) (EphyEmbedSingle *shell); + void (* set_offline_mode) (EphyEmbedSingle *shell, + gboolean offline); + gboolean (* get_offline_mode) (EphyEmbedSingle *single); + void (* load_proxy_autoconf) (EphyEmbedSingle *shell, + const char* url); + GList * (* get_font_list) (EphyEmbedSingle *shell, + const char *langGroup); }; -GType ephy_embed_single_get_type (void); +GType ephy_embed_single_get_type (void); -void ephy_embed_single_open_window (EphyEmbedSingle *single, +void ephy_embed_single_open_window (EphyEmbedSingle *single, EphyEmbed *parent, const char *address, const char *features); -void ephy_embed_single_clear_cache (EphyEmbedSingle *single); +void ephy_embed_single_clear_cache (EphyEmbedSingle *single); -void ephy_embed_single_clear_auth_cache (EphyEmbedSingle *single); +void ephy_embed_single_clear_auth_cache (EphyEmbedSingle *single); -void ephy_embed_single_set_offline_mode (EphyEmbedSingle *single, +void ephy_embed_single_set_offline_mode (EphyEmbedSingle *single, gboolean offline); -void ephy_embed_single_load_proxy_autoconf (EphyEmbedSingle *single, +gboolean ephy_embed_single_get_offline_mode (EphyEmbedSingle *single); + +void ephy_embed_single_load_proxy_autoconf (EphyEmbedSingle *single, const char* url); -GList *ephy_embed_single_get_font_list (EphyEmbedSingle *single, +GList *ephy_embed_single_get_font_list (EphyEmbedSingle *single, const char *lang_group); G_END_DECLS -- cgit v1.2.3