KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIPLATFORM::WEBVIEW Namespace Reference

Typedefs

typedef struct _WebKitWebView WebKitWebView
 
typedef struct _WebKitWebContext WebKitWebContext
 
typedef struct _WebKitWebsiteDataManager WebKitWebsiteDataManager
 
typedef WebKitWebContext *(* webkit_web_view_get_context_t) (WebKitWebView *)
 
typedef WebKitWebsiteDataManager *(* webkit_web_context_get_website_data_manager_t) (WebKitWebContext *)
 
typedef void(* webkit_website_data_manager_clear_t) (WebKitWebsiteDataManager *, WebKitWebsiteDataTypes, int64_t, void *, void *, void *)
 

Enumerations

enum  WebKitWebsiteDataTypes { WEBKIT_WEBSITE_DATA_COOKIES = 1 << 8 }
 

Functions

bool SaveCookies (wxWebView *aWebView, const wxString &aTargetFile)
 Save cookies from the given WebView to the specified file.
 
bool LoadCookies (wxWebView *aWebView, const wxString &aSourceFile)
 Load cookies from the specified file into the given WebView.
 
bool DeleteCookies (wxWebView *aWebView)
 Delete all cookies from the given WebView.
 

Typedef Documentation

◆ webkit_web_context_get_website_data_manager_t

typedef WebKitWebsiteDataManager *(* KIPLATFORM::WEBVIEW::webkit_web_context_get_website_data_manager_t) (WebKitWebContext *)

Definition at line 46 of file wxgtk/webview.cpp.

◆ webkit_web_view_get_context_t

typedef WebKitWebContext *(* KIPLATFORM::WEBVIEW::webkit_web_view_get_context_t) (WebKitWebView *)

Definition at line 45 of file wxgtk/webview.cpp.

◆ webkit_website_data_manager_clear_t

typedef void(* KIPLATFORM::WEBVIEW::webkit_website_data_manager_clear_t) (WebKitWebsiteDataManager *, WebKitWebsiteDataTypes, int64_t, void *, void *, void *)

Definition at line 47 of file wxgtk/webview.cpp.

◆ WebKitWebContext

typedef struct _WebKitWebContext KIPLATFORM::WEBVIEW::WebKitWebContext

Definition at line 36 of file wxgtk/webview.cpp.

◆ WebKitWebsiteDataManager

typedef struct _WebKitWebsiteDataManager KIPLATFORM::WEBVIEW::WebKitWebsiteDataManager

Definition at line 37 of file wxgtk/webview.cpp.

◆ WebKitWebView

typedef struct _WebKitWebView KIPLATFORM::WEBVIEW::WebKitWebView

Definition at line 35 of file wxgtk/webview.cpp.

Enumeration Type Documentation

◆ WebKitWebsiteDataTypes

Enumerator
WEBKIT_WEBSITE_DATA_COOKIES 

Definition at line 40 of file wxgtk/webview.cpp.

Function Documentation

◆ DeleteCookies()

bool KIPLATFORM::WEBVIEW::DeleteCookies ( wxWebView * aWebView)

Delete all cookies from the given WebView.

This function removes all cookies from the WebView's native backend.

Parameters
aWebViewThe WebView to delete cookies from. Must not be null.
Returns
true if cookies were successfully deleted, false otherwise.

Definition at line 61 of file wxgtk/webview.cpp.

References WEBKIT_WEBSITE_DATA_COOKIES.

Referenced by PANEL_REMOTE_SYMBOL::onConfigure().

◆ LoadCookies()

bool KIPLATFORM::WEBVIEW::LoadCookies ( wxWebView * aWebView,
const wxString & aSourceFile )

Load cookies from the specified file into the given WebView.

This function reads cookies from a JSON file and injects them into the WebView's native backend. The WebView should already be created and initialized before calling this function.

Parameters
aWebViewThe WebView to load cookies into. Must not be null.
aSourceFileFull path to the file containing saved cookies.
Returns
true if cookies were successfully loaded, false otherwise.

Definition at line 55 of file wxgtk/webview.cpp.

Referenced by PANEL_REMOTE_SYMBOL::LoadCookies().

◆ SaveCookies()

bool KIPLATFORM::WEBVIEW::SaveCookies ( wxWebView * aWebView,
const wxString & aTargetFile )

Save cookies from the given WebView to the specified file.

This function retrieves cookies from the WebView's native backend and serializes them to a JSON file. The format is platform-independent so cookies can theoretically be transferred between systems (though typically they are only restored on the same machine).

Parameters
aWebViewThe WebView to extract cookies from. Must not be null.
aTargetFileFull path to the file where cookies will be saved.
Returns
true if cookies were successfully saved, false otherwise.

Definition at line 49 of file wxgtk/webview.cpp.

Referenced by PANEL_REMOTE_SYMBOL::SaveCookies().