00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "gweb.h"
00025
00026 static void
00027 g_web_base_init (gpointer g_class)
00028 {
00029 static gboolean initialized = FALSE;
00030
00031 if (!initialized) {
00032
00033 initialized = TRUE;
00034 }
00035 }
00036
00037 GType
00038 g_web_get_type (void)
00039 {
00040 static GType type = 0;
00041 if (type == 0) {
00042 static const GTypeInfo info = {
00043 sizeof (GWebIface),
00044 g_web_base_init,
00045 NULL,
00046 NULL,
00047 NULL,
00048 NULL,
00049 0,
00050 0,
00051 NULL
00052 };
00053 type = g_type_register_static (G_TYPE_INTERFACE, "GWeb", &info, 0);
00054 }
00055 return type;
00056 }
00057
00058 void
00059 g_web_destroy (GWeb *self)
00060 {
00061 G_WEB_GET_CLASS (self)->destroy (self);
00062 }
00063
00064 GWebEngine*
00065 g_web_new_web_engine_window (GWeb *self)
00066 {
00067 return G_WEB_GET_CLASS (self)->new_web_engine_window (self);
00068 }
00069
00070 GWebEngine*
00071 g_web_new_web_engine_window_with_context (GWeb *self, gpointer context, gboolean leave_tracks, gboolean without_history)
00072 {
00073 return G_WEB_GET_CLASS (self)->new_web_engine_window_with_context (self, context, leave_tracks, without_history);
00074 }
00075
00076 gboolean
00077 g_web_set_pref (GWeb *self, gpointer type, const gchar* name, gpointer value)
00078 {
00079 return G_WEB_GET_CLASS (self)->web_set_pref (self, type, name, value);
00080 }
00081
00082 gboolean
00083 g_web_get_pref (GWeb *self, gpointer type, const gchar* name, gpointer value)
00084 {
00085 return G_WEB_GET_CLASS (self)->web_get_pref (self, type, name, value);
00086 }
00087
00088 GWebTransferItem*
00089 g_web_new_web_transfer_item (GWeb *self, const gchar* url, const gchar* filename)
00090 {
00091 return G_WEB_GET_CLASS (self)->new_web_transfer_item (self, url, filename);
00092 }
00093
00094 GWebTransferItem*
00095 g_web_initialize_web_transfer_item (GWeb *self, GObject *web_transfer_item)
00096 {
00097 return G_WEB_GET_CLASS (self)->initialize_web_transfer_item (self, web_transfer_item);
00098 }
00099
00100 GWebTransferItemList*
00101 g_web_get_web_transfer_item_list (GWeb *self)
00102 {
00103 return G_WEB_GET_CLASS (self)->get_web_transfer_item_list (self);
00104 }
00105
00106 GWebStatus
00107 g_web_set_home_page (GWeb *self, const gchar* home_page)
00108 {
00109 return G_WEB_GET_CLASS (self)->set_home_page (self, home_page);
00110 }
00111
00112 gchar*
00113 g_web_get_home_page (GWeb *self)
00114 {
00115 return G_WEB_GET_CLASS (self)->get_home_page (self);
00116 }
00117
00118 GWebStatus
00119 g_web_set_language (GWeb *self, const gchar* language)
00120 {
00121 return G_WEB_GET_CLASS (self)->set_language (self, language);
00122 }
00123
00124 gchar*
00125 g_web_get_language (GWeb *self)
00126 {
00127 return G_WEB_GET_CLASS (self)->get_language (self);
00128 }
00129
00130 void
00131 g_web_reset_cache_history_length (GWeb *self)
00132 {
00133 G_WEB_GET_CLASS (self)->reset_cache_history_length (self);
00134 }
00135
00136 gint
00137 g_web_get_maximum_cache_size (GWeb *self)
00138 {
00139 return G_WEB_GET_CLASS (self)->get_maximum_cache_size (self);
00140 }
00141
00142 GWebStatus
00143 g_web_set_default_home_page (GWeb *self, const gchar* default_page)
00144 {
00145 return G_WEB_GET_CLASS (self)->set_default_home_page (self, default_page);
00146 }
00147
00148 gchar*
00149 g_web_get_default_home_page (GWeb *self)
00150 {
00151 return G_WEB_GET_CLASS (self)->get_default_home_page (self);
00152 }
00153
00154 gboolean
00155 g_web_home_page_set (GWeb *self)
00156 {
00157 return G_WEB_GET_CLASS (self)->home_page_set (self);
00158 }
00159
00160 void
00161 g_web_set_frame_borders_enabled (GWeb *self, gboolean enabled)
00162 {
00163 G_WEB_GET_CLASS (self)->set_frame_borders_enabled (self, enabled);
00164 }
00165
00166 gboolean
00167 g_web_get_frame_borders_enabled (GWeb *self)
00168 {
00169 return G_WEB_GET_CLASS (self)->get_frame_borders_enabled (self);
00170 }
00171
00172 GWebStatus
00173 g_web_set_location_completion_suffixes (GWeb *self, const gchar* suffixes)
00174 {
00175 return G_WEB_GET_CLASS (self)->set_location_completion_suffixes (self, suffixes);
00176 }
00177
00178 gchar*
00179 g_web_get_location_completion_suffixes (GWeb *self)
00180 {
00181 return G_WEB_GET_CLASS (self)->get_location_completion_suffixes (self);
00182 }
00183
00184 GWebStatus
00185 g_web_set_plugins_enabled (GWeb *self, gboolean enabled)
00186 {
00187 return G_WEB_GET_CLASS (self)->set_plugins_enabled (self, enabled);
00188 }
00189
00190 GWebStatus
00191 g_web_set_oom_cb (GWeb *self, GFunc func)
00192 {
00193 return G_WEB_GET_CLASS (self)->set_oom_cb (self, func);
00194 }
00195
00196
00197 GWebStatus
00198 g_web_set_ssl2_support (GWeb *self, gboolean enabled)
00199 {
00200 return G_WEB_GET_CLASS (self)->set_ssl2_support (self, enabled);
00201 }
00202
00203 gboolean
00204 g_web_get_ssl2_support (GWeb *self)
00205 {
00206 return G_WEB_GET_CLASS (self)->get_ssl2_support (self);
00207 }
00208
00209 gboolean
00210 g_web_get_plugins_enabled (GWeb *self)
00211 {
00212 return G_WEB_GET_CLASS (self)->get_plugins_enabled (self);
00213 }
00214
00215 GWebStatus
00216 g_web_set_js_enabled (GWeb *self, gboolean enabled)
00217 {
00218 return G_WEB_GET_CLASS (self)->set_js_enabled (self, enabled);
00219 }
00220
00221 gboolean
00222 g_web_get_js_enabled (GWeb *self)
00223 {
00224 return G_WEB_GET_CLASS (self)->get_js_enabled (self);
00225 }
00226
00227 void
00228 g_web_set_memory_cache (GWeb *self, GMemoryCache acceptance)
00229 {
00230 G_WEB_GET_CLASS (self)->set_memory_cache (self, acceptance);
00231 }
00232
00233 GMemoryCache
00234 g_web_get_memory_cache (GWeb *self)
00235 {
00236 return G_WEB_GET_CLASS (self)->get_memory_cache (self);
00237 }
00238
00239 GWebStatus
00240 g_web_set_cache_size (GWeb *self, gint size)
00241 {
00242 return G_WEB_GET_CLASS (self)->set_cache_size (self, size);
00243 }
00244
00245 gint
00246 g_web_get_cache_size (GWeb *self)
00247 {
00248 return G_WEB_GET_CLASS (self)->get_cache_size (self);
00249 }
00250
00251 GWebStatus
00252 g_web_set_browse_offline (GWeb *self, gboolean offline)
00253 {
00254 return G_WEB_GET_CLASS (self)->set_browse_offline (self, offline);
00255 }
00256
00257 gboolean
00258 g_web_get_browse_offline (GWeb *self)
00259 {
00260 return G_WEB_GET_CLASS (self)->get_browse_offline (self);
00261 }
00262
00263 GWebStatus
00264 g_web_set_automatic_redirection_enabled (GWeb *self, gboolean enabled)
00265 {
00266 return G_WEB_GET_CLASS (self)->set_automatic_redirection_enabled (self, enabled);
00267 }
00268
00269 gboolean
00270 g_web_get_automatic_redirection_enabled (GWeb *self)
00271 {
00272 return G_WEB_GET_CLASS (self)->get_automatic_redirection_enabled (self);
00273 }
00274
00275 GWebStatus
00276 g_web_set_load_images (GWeb *self, GWebEngineImagePolicy level)
00277 {
00278 return G_WEB_GET_CLASS (self)->set_load_images (self, level);
00279 }
00280
00281 GWebEngineImagePolicy
00282 g_web_get_load_images (GWeb *self)
00283 {
00284 return G_WEB_GET_CLASS (self)->get_load_images (self);
00285 }
00286
00287 void
00288 g_web_disconnect (GWeb *self)
00289 {
00290 G_WEB_GET_CLASS (self)->disconnect (self);
00291 }
00292
00293 GWebStatus
00294 g_web_clear_cache (GWeb *self)
00295 {
00296 return G_WEB_GET_CLASS (self)->clear_cache (self);
00297 }
00298
00299
00300 GWebPluginList*
00301 g_web_get_plugins_list (GWeb *self)
00302 {
00303 return G_WEB_GET_CLASS (self)->get_plugins_list (self);
00304 }
00305
00306 GWebHistoryList*
00307 g_web_get_history_list (GWeb *self)
00308 {
00309 return G_WEB_GET_CLASS (self)->get_history_list (self);
00310 }
00311
00312 GWebStatus
00313 g_web_set_new_window_loads (GWeb *self, gboolean loads)
00314 {
00315 return G_WEB_GET_CLASS (self)->set_new_window_loads (self, loads);
00316 }
00317
00318 gboolean
00319 g_web_get_new_window_loads (GWeb *self)
00320 {
00321 return G_WEB_GET_CLASS (self)->get_new_window_loads (self);
00322 }
00323
00324 void
00325 g_web_set_cookie_acceptance (GWeb *self, GCookieAcceptance acceptance)
00326 {
00327 G_WEB_GET_CLASS (self)->set_cookie_acceptance (self, acceptance);
00328 }
00329
00330 GCookieAcceptance
00331 g_web_get_cookie_acceptance (GWeb *self)
00332 {
00333 return G_WEB_GET_CLASS (self)->get_cookie_acceptance (self);
00334 }
00335
00336 void
00337 g_web_set_popup_acceptance (GWeb *self, GPopupAcceptance acceptance)
00338 {
00339 G_WEB_GET_CLASS (self)->set_popup_acceptance (self, acceptance);
00340 }
00341
00342 GPopupAcceptance
00343 g_web_get_popup_acceptance (GWeb *self)
00344 {
00345 return G_WEB_GET_CLASS (self)->get_popup_acceptance (self);
00346 }
00347
00348 GWebStatus
00349 g_web_suspend (GWeb *self)
00350 {
00351 return G_WEB_GET_CLASS (self)->suspend (self);
00352 }
00353
00354 gboolean
00355 g_web_suspended (GWeb *self)
00356 {
00357 return G_WEB_GET_CLASS (self)->suspended (self);
00358 }
00359
00360 void
00361 g_web_resume (GWeb *self)
00362 {
00363 G_WEB_GET_CLASS (self)->resume (self);
00364 }
00365
00366 void
00367 g_web_set_ua_string (GWeb *self, gchar *ua_string)
00368 {
00369 G_WEB_GET_CLASS (self)->set_ua_string (self, ua_string);
00370 }
00371
00372 GWebStatus
00373 g_web_set_user_agent_id (GWeb *self, gint ua_id)
00374 {
00375 return G_WEB_GET_CLASS (self)->set_user_agent_id (self, ua_id);
00376 }
00377
00378 gint
00379 g_web_get_user_agent_id (GWeb *self)
00380 {
00381 return G_WEB_GET_CLASS (self)->get_user_agent_id (self);
00382 }
00383
00384 void
00385 g_web_enable_url_loading (GWeb *self, gboolean enable)
00386 {
00387 G_WEB_GET_CLASS (self)->enable_url_loading (self, enable);
00388 }
00389
00390 void
00391 g_web_free_memory (GWeb *self, gboolean progressive)
00392 {
00393 G_WEB_GET_CLASS (self)->free_memory (self, progressive);
00394 }
00395
00396
00397 GWebStatus
00398 g_web_store_transfers (GWeb *self)
00399 {
00400 return G_WEB_GET_CLASS (self)->store_transfers (self);
00401 }
00402
00403 GWebStatus
00404 g_web_restore_transfers (GWeb *self)
00405 {
00406 return G_WEB_GET_CLASS (self)->restore_transfers (self);
00407 }
00408
00409 GWebStatus
00410 g_web_delete_all_cookies (GWeb *self)
00411 {
00412 return G_WEB_GET_CLASS (self)->delete_all_cookies (self);
00413 }
00414
00415 GWebStatus
00416 g_web_confirm_cookie (GWeb *self, gpointer context, gboolean accept, GWebCookieAction action)
00417 {
00418 return G_WEB_GET_CLASS (self)->confirm_cookie (self, context, accept, action);
00419 }
00420
00421 GObject*
00422 g_web_get_global (GWeb *self)
00423 {
00424 return G_WEB_GET_CLASS (self)->get_global (self);
00425 }
00426
00427 GWebCertificateMessage
00428 g_web_get_certificate_enum_message (GWeb *self, GObject *context)
00429 {
00430 return G_WEB_GET_CLASS (self)->get_certificate_enum_message (self, context);
00431 }
00432
00433 GWebCertificateReaction
00434 g_web_perform_crtificate_context_action (GWeb *self,
00435 GObject *context,
00436 GWebCertificateAction action,
00437 GObject *cert)
00438 {
00439 return G_WEB_GET_CLASS (self)->perform_crtificate_context_action (self, context, action, cert);
00440 }
00441
00442 GWebStatus
00443 g_web_get_certificate_context_iter (GWeb *self, GObject* context, GObject **iterator)
00444 {
00445 return G_WEB_GET_CLASS (self)->get_certificate_context_iter (self, context, iterator);
00446 }
00447
00448 GObject*
00449 g_web_get_certificate_iter (GWeb *self, GObject** iterator)
00450 {
00451 return G_WEB_GET_CLASS (self)->get_certificate_iter (self, iterator);
00452 }
00453
00454 void
00455 g_web_certificate_free (GWeb *self, GObject* cert)
00456 {
00457 G_WEB_GET_CLASS (self)->certificate_free (self, cert);
00458 }
00459
00460 void
00461 g_web_certificate_iter_free (GWeb *self, GObject* iterator)
00462 {
00463 G_WEB_GET_CLASS (self)->certificate_iter_free (self, iterator);
00464 }
00465
00466 void
00467 g_web_notify_plugins (GWeb *self, gint event)
00468 {
00469 G_WEB_GET_CLASS (self)->notify_plugins (self, event);
00470 }
00471
00472 gint
00473 g_web_username_matchinfo_get_matches (GWeb *self, GObject *info)
00474 {
00475 return G_WEB_GET_CLASS (self)->username_matchinfo_get_matches(self, info);
00476 }
00477
00478 GWebStatus
00479 g_web_username_matchinfo_get_username (GWeb *self, GObject* info, gint index, gchar** username)
00480 {
00481 return G_WEB_GET_CLASS (self)->username_matchinfo_get_username (self, info, index, username);
00482 }
00483
00484 void
00485 g_web_username_matchinfo_delete (GWeb *self, GObject* info, gint index)
00486 {
00487 return G_WEB_GET_CLASS (self)->username_matchinfo_delete (self, info, index);
00488 }
00489
00490 GWebPasswordManager*
00491 g_web_get_password_manager (GWeb *self, const gchar* server, gint index)
00492 {
00493 return G_WEB_GET_CLASS (self)->get_password_manager (self, server, index);
00494 }
00495
00496 GWebStatus
00497 g_web_store_personal_data(GWeb *self, const gchar* server, const gchar* username, const gchar* password)
00498 {
00499 return G_WEB_GET_CLASS (self)->store_personal_data (self, server, username, password);
00500 }
00501
00502 GWebStatus
00503 g_web_delete_personal_data(GWeb *self, const gchar* server, const gchar* username)
00504 {
00505 return G_WEB_GET_CLASS (self)->delete_personal_data (self, server, username);
00506 }
00507
00508 GWebStatus
00509 g_web_set_remember_password (GWeb *self, gboolean rpassword)
00510 {
00511 return G_WEB_GET_CLASS (self)->set_remember_password (self, rpassword);
00512 }
00513
00514 gboolean
00515 g_web_get_remember_password (GWeb *self)
00516 {
00517 return G_WEB_GET_CLASS (self)->get_remember_password (self);
00518 }
00519
00520 GWebStatus
00521 g_web_set_remember_password_for_forms (GWeb *self, gboolean rpassword)
00522 {
00523 return G_WEB_GET_CLASS (self)->set_remember_password_for_forms (self, rpassword);
00524 }
00525
00526 gboolean
00527 g_web_get_remember_password_for_forms (GWeb *self)
00528 {
00529 return G_WEB_GET_CLASS (self)->get_remember_password_for_forms (self);
00530 }
00531
00532 GWebStatus
00533 g_web_clear_passwords (GWeb *self)
00534 {
00535 return G_WEB_GET_CLASS (self)->clear_passwords (self);
00536 }
00537
00538 GWebStatus
00539 g_web_clear_all_history (GWeb *self)
00540 {
00541 return G_WEB_GET_CLASS (self)->clear_all_history (self);
00542 }
00543
00544 void
00545 g_web_clear_personal_data (GWeb *self)
00546 {
00547 G_WEB_GET_CLASS (self)->clear_personal_data (self);
00548 }
00549
00550 GWebStatus
00551 g_web_set_plugin_enabled (GWeb *self, gchar *name, gboolean enabled)
00552 {
00553 return G_WEB_GET_CLASS (self)->set_plugin_enabled (self, name, enabled);
00554 }
00555
00556 gboolean
00557 g_web_get_plugin_enabled (GWeb *self, gchar *name)
00558 {
00559 return G_WEB_GET_CLASS (self)->get_plugin_enabled (self, name);
00560 }
00561
00562 GWebStatus
00563 g_web_set_plugin_ignore_filepath (GWeb *self)
00564 {
00565 return G_WEB_GET_CLASS (self)->set_plugin_ignore_filepath (self);
00566 }