gi-webkit2-4.0.14: WebKit2 bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2.Objects.CookieManager

Contents

Description

 

Synopsis

Exported types

Methods

deleteAllCookies

cookieManagerDeleteAllCookies Source #

Arguments

:: (HasCallStack, MonadIO m, IsCookieManager a) 
=> a

cookieManager: a CookieManager

-> m () 

Deprecated: (Since version 2.16)Use websiteDataManagerClear instead.

Delete all cookies of cookieManager

deleteCookiesForDomain

cookieManagerDeleteCookiesForDomain Source #

Arguments

:: (HasCallStack, MonadIO m, IsCookieManager a) 
=> a

cookieManager: a CookieManager

-> Text

domain: a domain name

-> m () 

Deprecated: (Since version 2.16)Use websiteDataManagerRemove instead.

Remove all cookies of cookieManager for the given domain.

getAcceptPolicy

cookieManagerGetAcceptPolicy Source #

Arguments

:: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) 
=> a

cookieManager: a CookieManager

-> Maybe b

cancellable: a Cancellable or Nothing to ignore

-> Maybe AsyncReadyCallback

callback: a AsyncReadyCallback to call when the request is satisfied

-> m () 

Asynchronously get the cookie acceptance policy of cookieManager.

When the operation is finished, callback will be called. You can then call cookieManagerGetAcceptPolicyFinish to get the result of the operation.

getAcceptPolicyFinish

cookieManagerGetAcceptPolicyFinish Source #

Arguments

:: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) 
=> a

cookieManager: a CookieManager

-> b

result: a AsyncResult

-> m CookieAcceptPolicy

Returns: the cookie acceptance policy of cookieManager as a CookieAcceptPolicy. (Can throw GError)

Finish an asynchronous operation started with cookieManagerGetAcceptPolicy.

getDomainsWithCookies

cookieManagerGetDomainsWithCookies Source #

Arguments

:: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) 
=> a

cookieManager: a CookieManager

-> Maybe b

cancellable: a Cancellable or Nothing to ignore

-> Maybe AsyncReadyCallback

callback: a AsyncReadyCallback to call when the request is satisfied

-> m () 

Deprecated: (Since version 2.16)Use websiteDataManagerFetch instead.

Asynchronously get the list of domains for which cookieManager contains cookies.

When the operation is finished, callback will be called. You can then call cookieManagerGetDomainsWithCookiesFinish to get the result of the operation.

getDomainsWithCookiesFinish

cookieManagerGetDomainsWithCookiesFinish Source #

Arguments

:: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) 
=> a

cookieManager: a CookieManager

-> b

result: a AsyncResult

-> m [Text]

Returns: A Nothing terminated array of domain names or Nothing in case of error. (Can throw GError)

Deprecated: (Since version 2.16)Use websiteDataManagerFetchFinish instead.

Finish an asynchronous operation started with cookieManagerGetDomainsWithCookies. The return value is a Nothing terminated list of strings which should be released with strfreev.

setAcceptPolicy

cookieManagerSetAcceptPolicy Source #

Arguments

:: (HasCallStack, MonadIO m, IsCookieManager a) 
=> a

cookieManager: a CookieManager

-> CookieAcceptPolicy

policy: a CookieAcceptPolicy

-> m () 

Set the cookie acceptance policy of cookieManager as policy.

setPersistentStorage

cookieManagerSetPersistentStorage Source #

Arguments

:: (HasCallStack, MonadIO m, IsCookieManager a) 
=> a

cookieManager: a CookieManager

-> Text

filename: the filename to read to/write from

-> CookiePersistentStorage

storage: a CookiePersistentStorage

-> m () 

Set the filename where non-session cookies are stored persistently using storage as the format to read/write the cookies. Cookies are initially read from filename to create an initial set of cookies. Then, non-session cookies will be written to filename when the WebKitCookieManager::changed signal is emitted. By default, cookieManager doesn't store the cookies persistently, so you need to call this method to keep cookies saved across sessions.

This method should never be called on a CookieManager associated to an ephemeral WebsiteDataManager.

Signals

changed