browser-eal/include/gwebwidget.h

Go to the documentation of this file.
00001 /* ***** BEGIN LICENSE BLOCK *****
00002  * Version: MPL 1.1
00003  *
00004  * The contents of this file are subject to the Mozilla Public License Version
00005  * 1.1 (the "License"); you may not use this file except in compliance with
00006  * the License. You may obtain a copy of the License at
00007  * http://www.mozilla.org/MPL/
00008  *
00009  * Software distributed under the License is distributed on an "AS IS" basis,
00010  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00011  * for the specific language governing rights and limitations under the
00012  * License.
00013  *
00014  * The Original Code is the EAL package.
00015  *
00016  * The Initial Developer of the Original Code is Nokia Corporation.
00017  * Portions created by the Initial Developer are Copyright (C) 2005
00018  * the Initial Developer. All Rights Reserved.
00019  *
00020  * Contact: Leonid Zolotarev <leonid.zolotarev@nokia.com>
00021  *
00022  * ***** END LICENSE BLOCK ***** */
00023 
00024 #include <glib-object.h>
00025 #include "gwebcommon.h"
00026 
00027 #ifndef __GWEBWIDGET_H__
00028 #define __GWEBWIDGET_H__
00029 
00030 G_BEGIN_DECLS
00031 
00032 #define G_WEBWIDGET_SIGNAL_URL_CHANGED "url_changed"
00033 
00038 void g_web_widget_signal_url_changed(GObject *browser_window,
00039                                      const gchar *url);
00040 
00041 #define G_WEBWIDGET_SIGNAL_TITLE "title_changed"
00042 
00047 void g_web_widget_signal_title(GObject *engine_widget,
00048                                const gchar *title,
00049                                GObject *browser_window);
00050 
00051 #define G_WEBWIDGET_SIGNAL_START_LOADING "start_loading"
00052 
00057 void g_web_widget_signal_start_loading(GObject *engine_widget,
00058                                         const gchar *url,
00059                                         GObject *browser_window);
00060 
00061 #define G_WEBWIDGET_SIGNAL_FINISHED_LOADING "finished_loading"
00062 
00071 void g_web_widget_signal_finished_loading(GObject *engine_widget,
00072                                           gint finish_status,
00073                                           gint page_size,
00074                                           gboolean has_frames,
00075                                           GObject *browser_window);
00076 
00077 #define G_WEBWIDGET_SIGNAL_LOADING_PROGRESS "loading_progress"
00078 
00092 void g_web_widget_signal_loading_progress(GObject *browser_window,
00093                                           gint loaded_images,
00094                                           gint total_images);
00095 
00096 #define G_WEBWIDGET_SIGNAL_SECURITY_MODE_CHANGED "security_mode_changed"
00097 
00102 void g_web_widget_signal_security_mode_changed(GObject *engine_widget,
00103                                                 gint mode,
00104                                                 GObject *browser_window);
00105 
00106 #define G_WEBWIDGET_SIGNAL_AUTHENTIFICATION_REQUIRED "authentication_required"
00107 
00114 void g_web_widget_signal_authentication_required(GObject *engine_widget,
00115                                                  gint authentication_type,
00116                                                  const gchar *server,
00117                                                  const gchar *message,
00118                                                  GObject *browser_window);
00119 
00120 #define G_WEBWIDGET_SIGNAL_ALERT "alert"
00121 
00126 void g_web_widget_signal_alert(GObject *engine_widget,
00127                                     const gchar *message,
00128                                     GObject *browser_window);
00129 
00130 #define G_WEBWIDGET_SIGNAL_CONFIRM "confirm"
00131 
00136 gboolean g_web_widget_signal_confirm(GObject *engine_widget,
00137                                  const gchar *message,
00138                                  GObject *browser_window);
00139 
00140 #define G_WEBWIDGET_SIGNAL_PROMPT "prompt"
00141 
00149 gchar *g_web_widget_signal_prompt(GObject * engine_widget,
00150                                   const gchar *message,
00151                                   const gchar *default_value,
00152                                   GObject *browser_window);
00153 
00154 #define G_WEBWIDGET_SIGNAL_MAILTO "mailto"
00155 
00160 void g_web_widget_signal_mailto(GObject *engine_widget,
00161                                 const gchar *url,
00162                                 GObject *browser_window);
00163 
00164 #define G_WEBWIDGET_SIGNAL_UNKNOWN_PROTOCOL "unknown_protocol"
00165 
00170 void g_web_widget_signal_unknown_protocol(GObject *engine_widget,
00171                                           const gchar *url,
00172                                           GObject *browser_window);
00173 
00174 #define G_WEBWIDGET_SIGNAL_CLOSE_WINDOW "close_window"
00175 
00180 void g_web_widget_signal_close_window(GObject *engine_widget,
00181                                       GObject *browser_window);
00182 
00183 #define G_WEBWIDGET_SIGNAL_WINDOW_REQUEST "window_request"
00184 
00196 void g_web_widget_signal_window_request(GObject * engine_widget,
00197                                         gpointer context,
00198                                         const gchar *url,
00199                                         gboolean in_background, 
00200                                         GObject *browser_window);
00201 
00202 #define G_WEBWIDGET_SIGNAL_DOWNLOAD_REQUEST "download_request"
00203 
00215 void g_web_widget_signal_download_request(GObject *engine_widget,
00216                                           const gchar *url,
00217                                           const gchar *suggested_filename,
00218                                           const gchar *mimetype,
00219                                           glong size,
00220                                           gint mode,
00221                                           GObject *browser_window);
00222 
00223 #define G_WEBWIDGET_SIGNAL_RAISE_REQUEST "raise_request"
00224 
00228 void g_web_widget_signal_raise_request(GObject *engine_widget,
00229                                        GObject *browser_window);
00230 
00231 #define G_WEBWIDGET_SIGNAL_LOWER_REQUEST "lower_request"
00232 
00237 void g_web_widget_signal_lower_request(GObject *engine_widget,
00238                                        GObject *browser_window);
00239 
00240 #define G_WEBWIDGET_SIGNAL_UPLOAD_DIALOG "upload_dialog"
00241 
00252 gboolean g_web_widget_signal_upload_dialog(GObject *engine_widget,
00253                                             const gchar *path,
00254                                             const gchar *filter,
00255                                             gchar **result,
00256                                             GObject *browser_window);
00257 
00258 #define G_WEBWIDGET_SIGNAL_FILE_UPLOAD_STARTED "file_upload_started"
00259 
00264 void g_web_widget_signal_file_upload_started(GObject *engine_widget,
00265                                              GObject *browser_window);
00266 
00267 #define G_WEBWIDGET_SIGNAL_FILE_UPLOAD_PROGRESS "file_upload_progress"
00268 
00274 void g_web_widget_signal_file_upload_progress(GObject *engine_widget,
00275                                                 gint bytes,
00276                                                 const gchar *message,
00277                                                 GObject *browser_window);
00278 
00279 #define G_WEBWIDGET_SIGNAL_FILE_UPLOAD_FINISHED "file_upload_finished"
00280 
00284 void g_web_widget_signal_file_upload_finished(GObject *engine_widget,
00285                                               GObject *browser_window);
00286 
00287 #define G_WEBWIDGET_SIGNAL_WEBENGINE_POPUP_MENU "webengine_popup_menu"
00288 
00300 void g_web_widget_signal_webengine_popup_menu(GObject *engine_widget,
00301                                                 guint menutype,
00302                                                 gint x,
00303                                                 gint y,
00304                                                 const gchar *text,
00305                                                 const gchar *url,
00306                                                 const gchar *image_url,
00307                                                 const gchar *frame_url,
00308                                                 GObject *browser_window);
00309 
00310 #define G_WEBWIDGET_SIGNAL_EXTERNAL_ACTION "external_action"
00311 
00326 void g_web_widget_signal_external_action(GObject *engine_widget,
00327                                          const gchar *action);
00328 
00329 #define G_WEBWIDGET_SIGNAL_MODAL_DIALOG "modal_dialog"
00330 
00342 GWebDialogButton g_web_widget_signal_modal_dialog(GObject *engine_widget,
00343                                                   const gchar *caption,
00344                                                   const gchar *message,
00345                                                   GWebDialogMessageType type,
00346                                                   GWebDialogButton button1,
00347                                                   GWebDialogButton button2,
00348                                                   GWebDialogButton button3,
00349                                                   GObject *browser_window);
00350 
00351 #define G_WEBWIDGET_SIGNAL_ENCODING "encoding"
00352 
00356 void g_web_widget_signal_encoding(GObject *engine_widget,
00357                                   GWebEngineEncoding encoding,
00358                                   GObject *browser_window);
00359 
00360 #define G_WEBWIDGET_SIGNAL_FRAME_STACKING_CHANGED "frame_stacking_changed"
00361 
00367 void g_web_widget_signal_frame_stacking_changed(GObject *engine_widget,
00368                                                 gboolean on,
00369                                                 GObject *browser_window);
00370 
00371 #define G_WEBWIDGET_SIGNAL_MODAL_CERTIFICATE_DIALOG "modal-certificate-dialog"
00372 
00384 GWebDialogButton g_web_widget_signal_modal_certificate_dialog(GObject *engine_widget,
00385                                                                    const gchar *caption,
00386                                                                    GWebCertificateMessage message,
00387                                                                    GWebDialogMessageType type,
00388                                                                    GWebDialogButton button1,
00389                                                                    GWebDialogButton button2,
00390                                                                    GWebDialogButton button3,
00391                                                                    GObject *browser_window);
00392 
00393 #define  G_WEBWIDGET_SIGNAL_RSS_REQUEST "rss-request"
00394 
00400 void g_web_widget_signal_rss_request(GObject *engine_widget,
00401                                         gchar *url,
00402                                         gchar *title,
00403                                         GObject *browser_window);
00404 
00405 G_END_DECLS
00406 
00407 #endif /* __GWEBWIDGET_H__ */

Generated on Tue Sep 25 10:37:04 2007 for browser-eal by  doxygen 1.5.1