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.WebsiteDataManager

Contents

Description

 

Synopsis

Exported types

Methods

clear

websiteDataManagerClear Source #

Arguments

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

manager: a WebsiteDataManager

-> [WebsiteDataTypes]

types: WebsiteDataTypes

-> Int64

timespan: a GTimeSpan

-> Maybe b

cancellable: a Cancellable or Nothing to ignore

-> Maybe AsyncReadyCallback

callback: a AsyncReadyCallback to call when the request is satisfied

-> m () 

Asynchronously clear the website data of the given types modified in the past timespan. If timespan is 0, all website data will be removed.

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

Due to implementation limitations, this function does not currently delete any stored cookies if timespan is nonzero. This behavior may change in the future.

Since: 2.16

clearFinish

websiteDataManagerClearFinish Source #

Arguments

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

manager: a WebsiteDataManager

-> b

result: a AsyncResult

-> m ()

(Can throw GError)

Finish an asynchronous operation started with websiteDataManagerClear

Since: 2.16

fetch

websiteDataManagerFetch Source #

Arguments

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

manager: a WebsiteDataManager

-> [WebsiteDataTypes]

types: WebsiteDataTypes

-> 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 list of WebsiteData for the given types.

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

Since: 2.16

fetchFinish

websiteDataManagerFetchFinish Source #

Arguments

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

manager: a WebsiteDataManager

-> b

result: a AsyncResult

-> m [WebsiteData]

Returns: a List of WebsiteData. You must free the List with g_list_free() and unref the WebsiteData<!-- -->s with websiteDataUnref when you're done with them. (Can throw GError)

Finish an asynchronous operation started with websiteDataManagerFetch.

Since: 2.16

getBaseCacheDirectory

websiteDataManagerGetBaseCacheDirectory Source #

Arguments

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

manager: a WebsiteDataManager

-> m (Maybe Text)

Returns: the base directory for Website cache, or Nothing if WebsiteDataManager:base-cache-directory was not provided or manager is ephemeral.

Get the WebsiteDataManager:base-cache-directory property.

Since: 2.10

getBaseDataDirectory

websiteDataManagerGetBaseDataDirectory Source #

Arguments

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

manager: a WebsiteDataManager

-> m (Maybe Text)

Returns: the base directory for Website data, or Nothing if WebsiteDataManager:base-data-directory was not provided or manager is ephemeral.

Get the WebsiteDataManager:base-data-directory property.

Since: 2.10

getCookieManager

getDiskCacheDirectory

websiteDataManagerGetDiskCacheDirectory Source #

Arguments

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

manager: a WebsiteDataManager

-> m (Maybe Text)

Returns: the directory where HTTP disk cache is stored or Nothing if manager is ephemeral.

Get the WebsiteDataManager:disk-cache-directory property.

Since: 2.10

getIndexeddbDirectory

websiteDataManagerGetIndexeddbDirectory Source #

Arguments

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

manager: a WebsiteDataManager

-> m (Maybe Text)

Returns: the directory where IndexedDB databases are stored or Nothing if manager is ephemeral.

Get the WebsiteDataManager:indexeddb-directory property.

Since: 2.10

getLocalStorageDirectory

websiteDataManagerGetLocalStorageDirectory Source #

Arguments

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

manager: a WebsiteDataManager

-> m (Maybe Text)

Returns: the directory where local storage data is stored or Nothing if manager is ephemeral.

Get the WebsiteDataManager:local-storage-directory property.

Since: 2.10

getOfflineApplicationCacheDirectory

websiteDataManagerGetOfflineApplicationCacheDirectory Source #

Arguments

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

manager: a WebsiteDataManager

-> m (Maybe Text)

Returns: the directory where offline web application cache is stored or Nothing if manager is ephemeral.

Get the WebsiteDataManager:offline-application-cache-directory property.

Since: 2.10

getWebsqlDirectory

websiteDataManagerGetWebsqlDirectory Source #

Arguments

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

manager: a WebsiteDataManager

-> m (Maybe Text)

Returns: the directory where WebSQL databases are stored or Nothing if manager is ephemeral.

Get the WebsiteDataManager:websql-directory property.

Since: 2.10

isEphemeral

websiteDataManagerIsEphemeral Source #

Arguments

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

manager: a WebsiteDataManager

-> m Bool

Returns: True if manager is epheral or False otherwise.

Get whether a WebsiteDataManager is ephemeral. See WebsiteDataManager::is-ephemerla for more details.

Since: 2.16

newEphemeral

websiteDataManagerNewEphemeral Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m WebsiteDataManager

Returns: a new ephemeral WebsiteDataManager.

Creates an ephemeral WebsiteDataManager. See WebsiteDataManager:is-ephemeral for more details.

Since: 2.16

remove

websiteDataManagerRemove Source #

Arguments

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

manager: a WebsiteDataManager

-> [WebsiteDataTypes]

types: WebsiteDataTypes

-> [WebsiteData]

websiteData: a List of WebsiteData

-> Maybe b

cancellable: a Cancellable or Nothing to ignore

-> Maybe AsyncReadyCallback

callback: a AsyncReadyCallback to call when the request is satisfied

-> m () 

Asynchronously removes the website data of the for the given types for websites in the given websiteData list. Use websiteDataManagerClear if you want to remove the website data for all sites.

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

Since: 2.16

removeFinish

websiteDataManagerRemoveFinish Source #

Arguments

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

manager: a WebsiteDataManager

-> b

result: a AsyncResult

-> m ()

(Can throw GError)

Finish an asynchronous operation started with websiteDataManagerRemove.

Since: 2.16

Properties

baseCacheDirectory

baseDataDirectory

diskCacheDirectory

indexeddbDirectory

isEphemeral

localStorageDirectory

offlineApplicationCacheDirectory

websqlDirectory