Class
WebKit2UserContentFilterStore
since: 2.24
Description [src]
class WebKit2.UserContentFilterStore : GObject.Object {
parent: GObject,
priv: WebKitUserContentFilterStorePrivate*
}
Handles storage of user content filters on disk.
The WebKitUserContentFilterStore provides the means to import and save
JSON rule sets,
which can be loaded later in an efficient manner. Once filters are stored,
the WebKitUserContentFilter
objects which represent them can be added to
a WebKitUserContentManager
with webkit_user_content_manager_add_filter().
JSON rule sets are imported using webkit_user_content_filter_store_save()
and stored
on disk in an implementation defined format. The contents of a filter store must be
managed using the WebKitUserContentFilterStore
: a list of all the stored filters
can be obtained with webkit_user_content_filter_store_fetch_identifiers(),
webkit_user_content_filter_store_load()
can be used to retrieve a previously saved
filter, and removed from the store with webkit_user_content_filter_store_remove().
Available since: 2.24
Constructors
webkit_user_content_filter_store_new
Create a new WebKitUserContentFilterStore
to manipulate filters stored at storage_path
.
since: 2.24
Instance methods
webkit_user_content_filter_store_fetch_identifiers
Asynchronously retrieve a list of the identifiers for all the stored filters.
since: 2.24
webkit_user_content_filter_store_fetch_identifiers_finish
Finishes an asynchronous fetch of the list of stored filters.
since: 2.24
webkit_user_content_filter_store_get_path
Gets the storage path for user content filters.
since: 2.24
webkit_user_content_filter_store_load
Asynchronously load a content filter given its identifier
.
since: 2.24
webkit_user_content_filter_store_load_finish
Finishes an asynchronous filter load previously started with webkit_user_content_filter_store_load().
since: 2.24
webkit_user_content_filter_store_remove
Asynchronously remove a content filter given its identifier
.
since: 2.24
webkit_user_content_filter_store_remove_finish
Finishes an asynchronous filter removal previously started with webkit_user_content_filter_store_remove().
since: 2.24
webkit_user_content_filter_store_save
Asynchronously save a content filter from a set source rule.
since: 2.24
webkit_user_content_filter_store_save_finish
Finishes an asynchronous filter save previously started with webkit_user_content_filter_store_save().
since: 2.24
webkit_user_content_filter_store_save_from_file
Asynchronously save a content filter from the contents of a file.
since: 2.24
webkit_user_content_filter_store_save_from_file_finish
Finishes and asynchronous filter save previously started with webkit_user_content_filter_store_save_from_file().
since: 2.24
Properties
WebKit2.UserContentFilterStore:path
The directory used for filter storage. This path is used as the base directory where user content filters are stored on disk.
since: 2.24
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct WebKit2UserContentFilterStoreClass {
GObjectClass parent_class;
void (* _webkit_reserved0) (
void
);
void (* _webkit_reserved1) (
void
);
void (* _webkit_reserved2) (
void
);
void (* _webkit_reserved3) (
void
);
}
Class members
parent_class: GObjectClass
- No description available.
_webkit_reserved0: void (* _webkit_reserved0) ( void )
- No description available.
_webkit_reserved1: void (* _webkit_reserved1) ( void )
- No description available.
_webkit_reserved2: void (* _webkit_reserved2) ( void )
- No description available.
_webkit_reserved3: void (* _webkit_reserved3) ( void )
- No description available.