Interface
CogRequestHandler
Description [src]
interface Cog.RequestHandler : GObject.Object
Convenience interface which allows implementing custom URI scheme handlers.
Any object that implements this interface can be passed to
cog_shell_set_request_handler()
. An advantage of using this
interface instead of WebKit.WebContext.register_uri_scheme
directly is that it allows for extending handlers (by subclassing) and
for more easily combining different handlers in an aggregate one (like
CogPrefixRoutesHandler
is that it allows for extending handlers
(by subclassing), supports combining different handlers in an aggregate
one (like CogPrefixRoutesHandler
) more easily, and handler
implementations can keep their state in the object instances.
Implementations
Prerequisite
In order to implement RequestHandler, your type must inherit fromGObject
.
Interface structure
struct CogRequestHandlerInterface {
GTypeInterface g_iface;
void (* run) (
CogRequestHandler* handler,
WebKitURISchemeRequest* request
);
}
No description available.
Interface members
g_iface |
|
No description available. | |
run |
|
No description available. |