Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype WebsiteDataManager = WebsiteDataManager (ManagedPtr WebsiteDataManager)
- class GObject o => IsWebsiteDataManager o
- toWebsiteDataManager :: (MonadIO m, IsWebsiteDataManager o) => o -> m WebsiteDataManager
- noWebsiteDataManager :: Maybe WebsiteDataManager
- websiteDataManagerClear :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsCancellable b) => a -> [WebsiteDataTypes] -> Int64 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- websiteDataManagerClearFinish :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsAsyncResult b) => a -> b -> m ()
- websiteDataManagerFetch :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsCancellable b) => a -> [WebsiteDataTypes] -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- websiteDataManagerFetchFinish :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsAsyncResult b) => a -> b -> m [WebsiteData]
- websiteDataManagerGetBaseCacheDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text)
- websiteDataManagerGetBaseDataDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text)
- websiteDataManagerGetCookieManager :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m CookieManager
- websiteDataManagerGetDiskCacheDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text)
- websiteDataManagerGetIndexeddbDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text)
- websiteDataManagerGetLocalStorageDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text)
- websiteDataManagerGetOfflineApplicationCacheDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text)
- websiteDataManagerGetWebsqlDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text)
- websiteDataManagerIsEphemeral :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m Bool
- websiteDataManagerNewEphemeral :: (HasCallStack, MonadIO m) => m WebsiteDataManager
- websiteDataManagerRemove :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsCancellable b) => a -> [WebsiteDataTypes] -> [WebsiteData] -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- websiteDataManagerRemoveFinish :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsAsyncResult b) => a -> b -> m ()
- constructWebsiteDataManagerBaseCacheDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o)
- getWebsiteDataManagerBaseCacheDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text)
- constructWebsiteDataManagerBaseDataDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o)
- getWebsiteDataManagerBaseDataDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text)
- constructWebsiteDataManagerDiskCacheDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o)
- getWebsiteDataManagerDiskCacheDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text)
- constructWebsiteDataManagerIndexeddbDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o)
- getWebsiteDataManagerIndexeddbDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text)
- constructWebsiteDataManagerIsEphemeral :: IsWebsiteDataManager o => Bool -> IO (GValueConstruct o)
- getWebsiteDataManagerIsEphemeral :: (MonadIO m, IsWebsiteDataManager o) => o -> m Bool
- constructWebsiteDataManagerLocalStorageDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o)
- getWebsiteDataManagerLocalStorageDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text)
- constructWebsiteDataManagerOfflineApplicationCacheDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o)
- getWebsiteDataManagerOfflineApplicationCacheDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text)
- constructWebsiteDataManagerWebsqlDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o)
- getWebsiteDataManagerWebsqlDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text)
Exported types
newtype WebsiteDataManager Source #
Memory-managed wrapper type.
Instances
class GObject o => IsWebsiteDataManager o Source #
Type class for types which can be safely cast to WebsiteDataManager
, for instance with toWebsiteDataManager
.
Instances
(GObject a, (UnknownAncestorError WebsiteDataManager a :: Constraint)) => IsWebsiteDataManager a Source # | |
Defined in GI.WebKit2.Objects.WebsiteDataManager | |
IsWebsiteDataManager WebsiteDataManager Source # | |
Defined in GI.WebKit2.Objects.WebsiteDataManager |
toWebsiteDataManager :: (MonadIO m, IsWebsiteDataManager o) => o -> m WebsiteDataManager Source #
Cast to WebsiteDataManager
, for types for which this is known to be safe. For general casts, use castTo
.
noWebsiteDataManager :: Maybe WebsiteDataManager Source #
A convenience alias for Nothing
:: Maybe
WebsiteDataManager
.
Methods
clear
websiteDataManagerClear Source #
:: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsCancellable b) | |
=> a |
|
-> [WebsiteDataTypes] |
|
-> Int64 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> 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 #
:: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finish an asynchronous operation started with websiteDataManagerClear
Since: 2.16
fetch
websiteDataManagerFetch Source #
:: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsCancellable b) | |
=> a |
|
-> [WebsiteDataTypes] |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> 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 #
:: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m [WebsiteData] | Returns: a |
Finish an asynchronous operation started with websiteDataManagerFetch
.
Since: 2.16
getBaseCacheDirectory
websiteDataManagerGetBaseCacheDirectory Source #
:: (HasCallStack, MonadIO m, IsWebsiteDataManager a) | |
=> a |
|
-> m (Maybe Text) | Returns: the base directory for Website cache, or |
Get the WebsiteDataManager
:base-cache-directory
property.
Since: 2.10
getBaseDataDirectory
websiteDataManagerGetBaseDataDirectory Source #
:: (HasCallStack, MonadIO m, IsWebsiteDataManager a) | |
=> a |
|
-> m (Maybe Text) | Returns: the base directory for Website data, or |
Get the WebsiteDataManager
:base-data-directory
property.
Since: 2.10
getCookieManager
websiteDataManagerGetCookieManager Source #
:: (HasCallStack, MonadIO m, IsWebsiteDataManager a) | |
=> a |
|
-> m CookieManager | Returns: a |
Get the CookieManager
of manager
.
Since: 2.16
getDiskCacheDirectory
websiteDataManagerGetDiskCacheDirectory Source #
:: (HasCallStack, MonadIO m, IsWebsiteDataManager a) | |
=> a |
|
-> m (Maybe Text) | Returns: the directory where HTTP disk cache is stored or |
Get the WebsiteDataManager
:disk-cache-directory
property.
Since: 2.10
getIndexeddbDirectory
websiteDataManagerGetIndexeddbDirectory Source #
:: (HasCallStack, MonadIO m, IsWebsiteDataManager a) | |
=> a |
|
-> m (Maybe Text) | Returns: the directory where IndexedDB databases are stored or |
Get the WebsiteDataManager
:indexeddb-directory
property.
Since: 2.10
getLocalStorageDirectory
websiteDataManagerGetLocalStorageDirectory Source #
:: (HasCallStack, MonadIO m, IsWebsiteDataManager a) | |
=> a |
|
-> m (Maybe Text) | Returns: the directory where local storage data is stored or |
Get the WebsiteDataManager
:local-storage-directory
property.
Since: 2.10
getOfflineApplicationCacheDirectory
websiteDataManagerGetOfflineApplicationCacheDirectory Source #
:: (HasCallStack, MonadIO m, IsWebsiteDataManager a) | |
=> a |
|
-> m (Maybe Text) | Returns: the directory where offline web application cache is stored or |
Get the WebsiteDataManager
:offline-application-cache-directory
property.
Since: 2.10
getWebsqlDirectory
websiteDataManagerGetWebsqlDirectory Source #
:: (HasCallStack, MonadIO m, IsWebsiteDataManager a) | |
=> a |
|
-> m (Maybe Text) | Returns: the directory where WebSQL databases are stored or |
Get the WebsiteDataManager
:websql-directory
property.
Since: 2.10
isEphemeral
websiteDataManagerIsEphemeral Source #
:: (HasCallStack, MonadIO m, IsWebsiteDataManager a) | |
=> a |
|
-> m Bool |
Get whether a WebsiteDataManager
is ephemeral. See WebsiteDataManager
:is-ephemeral
for more details.
Since: 2.16
newEphemeral
websiteDataManagerNewEphemeral Source #
:: (HasCallStack, MonadIO m) | |
=> m WebsiteDataManager | Returns: a new ephemeral |
Creates an ephemeral WebsiteDataManager
. See WebsiteDataManager
:is-ephemeral
for more details.
Since: 2.16
remove
websiteDataManagerRemove Source #
:: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsCancellable b) | |
=> a |
|
-> [WebsiteDataTypes] |
|
-> [WebsiteData] |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> 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 #
:: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finish an asynchronous operation started with websiteDataManagerRemove
.
Since: 2.16
Properties
baseCacheDirectory
The base directory for Website cache. This is used as a base directory for any Website cache when no specific cache directory has been provided.
Since: 2.10
constructWebsiteDataManagerBaseCacheDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “base-cache-directory
” property. This is rarely needed directly, but it is used by new
.
getWebsiteDataManagerBaseCacheDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text) Source #
Get the value of the “base-cache-directory
” property.
When overloading is enabled, this is equivalent to
get
websiteDataManager #baseCacheDirectory
baseDataDirectory
The base directory for Website data. This is used as a base directory for any Website data when no specific data directory has been provided.
Since: 2.10
constructWebsiteDataManagerBaseDataDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “base-data-directory
” property. This is rarely needed directly, but it is used by new
.
getWebsiteDataManagerBaseDataDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text) Source #
Get the value of the “base-data-directory
” property.
When overloading is enabled, this is equivalent to
get
websiteDataManager #baseDataDirectory
diskCacheDirectory
The directory where HTTP disk cache will be stored.
Since: 2.10
constructWebsiteDataManagerDiskCacheDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “disk-cache-directory
” property. This is rarely needed directly, but it is used by new
.
getWebsiteDataManagerDiskCacheDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text) Source #
Get the value of the “disk-cache-directory
” property.
When overloading is enabled, this is equivalent to
get
websiteDataManager #diskCacheDirectory
indexeddbDirectory
The directory where IndexedDB databases will be stored.
Since: 2.10
constructWebsiteDataManagerIndexeddbDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “indexeddb-directory
” property. This is rarely needed directly, but it is used by new
.
getWebsiteDataManagerIndexeddbDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text) Source #
Get the value of the “indexeddb-directory
” property.
When overloading is enabled, this is equivalent to
get
websiteDataManager #indexeddbDirectory
isEphemeral
Whether the WebsiteDataManager
is ephemeral. An ephemeral WebsiteDataManager
handles all websites data as non-persistent, and nothing will be written to the client
storage. Note that if you create an ephemeral WebsiteDataManager
all other construction
parameters to configure data directories will be ignored.
Since: 2.16
constructWebsiteDataManagerIsEphemeral :: IsWebsiteDataManager o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “is-ephemeral
” property. This is rarely needed directly, but it is used by new
.
getWebsiteDataManagerIsEphemeral :: (MonadIO m, IsWebsiteDataManager o) => o -> m Bool Source #
Get the value of the “is-ephemeral
” property.
When overloading is enabled, this is equivalent to
get
websiteDataManager #isEphemeral
localStorageDirectory
The directory where local storage data will be stored.
Since: 2.10
constructWebsiteDataManagerLocalStorageDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “local-storage-directory
” property. This is rarely needed directly, but it is used by new
.
getWebsiteDataManagerLocalStorageDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text) Source #
Get the value of the “local-storage-directory
” property.
When overloading is enabled, this is equivalent to
get
websiteDataManager #localStorageDirectory
offlineApplicationCacheDirectory
The directory where offline web application cache will be stored.
Since: 2.10
constructWebsiteDataManagerOfflineApplicationCacheDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “offline-application-cache-directory
” property. This is rarely needed directly, but it is used by new
.
getWebsiteDataManagerOfflineApplicationCacheDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text) Source #
Get the value of the “offline-application-cache-directory
” property.
When overloading is enabled, this is equivalent to
get
websiteDataManager #offlineApplicationCacheDirectory
websqlDirectory
The directory where WebSQL databases will be stored.
Since: 2.10
constructWebsiteDataManagerWebsqlDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “websql-directory
” property. This is rarely needed directly, but it is used by new
.
getWebsiteDataManagerWebsqlDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text) Source #
Get the value of the “websql-directory
” property.
When overloading is enabled, this is equivalent to
get
websiteDataManager #websqlDirectory