Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype CookieManager = CookieManager (ManagedPtr CookieManager)
- class (GObject o, IsDescendantOf CookieManager o) => IsCookieManager o
- toCookieManager :: (MonadIO m, IsCookieManager o) => o -> m CookieManager
- noCookieManager :: Maybe CookieManager
- cookieManagerAddCookie :: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) => a -> Cookie -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- cookieManagerAddCookieFinish :: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) => a -> b -> m ()
- cookieManagerDeleteAllCookies :: (HasCallStack, MonadIO m, IsCookieManager a) => a -> m ()
- cookieManagerDeleteCookie :: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) => a -> Cookie -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- cookieManagerDeleteCookieFinish :: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) => a -> b -> m ()
- cookieManagerDeleteCookiesForDomain :: (HasCallStack, MonadIO m, IsCookieManager a) => a -> Text -> m ()
- cookieManagerGetAcceptPolicy :: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- cookieManagerGetAcceptPolicyFinish :: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) => a -> b -> m CookieAcceptPolicy
- cookieManagerGetCookies :: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- cookieManagerGetCookiesFinish :: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) => a -> b -> m [Cookie]
- cookieManagerGetDomainsWithCookies :: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- cookieManagerGetDomainsWithCookiesFinish :: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) => a -> b -> m [Text]
- cookieManagerSetAcceptPolicy :: (HasCallStack, MonadIO m, IsCookieManager a) => a -> CookieAcceptPolicy -> m ()
- cookieManagerSetPersistentStorage :: (HasCallStack, MonadIO m, IsCookieManager a) => a -> Text -> CookiePersistentStorage -> m ()
- type C_CookieManagerChangedCallback = Ptr () -> Ptr () -> IO ()
- type CookieManagerChangedCallback = IO ()
- afterCookieManagerChanged :: (IsCookieManager a, MonadIO m) => a -> CookieManagerChangedCallback -> m SignalHandlerId
- genClosure_CookieManagerChanged :: MonadIO m => CookieManagerChangedCallback -> m (GClosure C_CookieManagerChangedCallback)
- mk_CookieManagerChangedCallback :: C_CookieManagerChangedCallback -> IO (FunPtr C_CookieManagerChangedCallback)
- noCookieManagerChangedCallback :: Maybe CookieManagerChangedCallback
- onCookieManagerChanged :: (IsCookieManager a, MonadIO m) => a -> CookieManagerChangedCallback -> m SignalHandlerId
- wrap_CookieManagerChangedCallback :: CookieManagerChangedCallback -> C_CookieManagerChangedCallback
Exported types
newtype CookieManager Source #
Memory-managed wrapper type.
Instances
GObject CookieManager Source # | |
Defined in GI.WebKit2.Objects.CookieManager gobjectType :: IO GType # | |
HasParentTypes CookieManager Source # | |
Defined in GI.WebKit2.Objects.CookieManager | |
type ParentTypes CookieManager Source # | |
Defined in GI.WebKit2.Objects.CookieManager |
class (GObject o, IsDescendantOf CookieManager o) => IsCookieManager o Source #
Type class for types which can be safely cast to CookieManager
, for instance with toCookieManager
.
Instances
(GObject o, IsDescendantOf CookieManager o) => IsCookieManager o Source # | |
Defined in GI.WebKit2.Objects.CookieManager |
toCookieManager :: (MonadIO m, IsCookieManager o) => o -> m CookieManager Source #
Cast to CookieManager
, for types for which this is known to be safe. For general casts, use castTo
.
noCookieManager :: Maybe CookieManager Source #
A convenience alias for Nothing
:: Maybe
CookieManager
.
Methods
addCookie
cookieManagerAddCookie Source #
:: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) | |
=> a |
|
-> Cookie |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Asynchronously add a Cookie
to the underlying storage.
When the operation is finished, callback
will be called. You can then call
cookieManagerAddCookieFinish
to get the result of the operation.
Since: 2.20
addCookieFinish
cookieManagerAddCookieFinish Source #
:: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finish an asynchronous operation started with cookieManagerAddCookie
.
Since: 2.20
deleteAllCookies
cookieManagerDeleteAllCookies Source #
:: (HasCallStack, MonadIO m, IsCookieManager a) | |
=> a |
|
-> m () |
Deprecated: (Since version 2.16)Use websiteDataManagerClear
instead.
Delete all cookies of cookieManager
deleteCookie
cookieManagerDeleteCookie Source #
:: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) | |
=> a |
|
-> Cookie |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Asynchronously delete a Cookie
from the current session.
When the operation is finished, callback
will be called. You can then call
cookieManagerDeleteCookieFinish
to get the result of the operation.
Since: 2.20
deleteCookieFinish
cookieManagerDeleteCookieFinish Source #
:: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finish an asynchronous operation started with cookieManagerDeleteCookie
.
Since: 2.20
deleteCookiesForDomain
cookieManagerDeleteCookiesForDomain Source #
:: (HasCallStack, MonadIO m, IsCookieManager a) | |
=> a |
|
-> Text |
|
-> m () |
Deprecated: (Since version 2.16)Use websiteDataManagerRemove
instead.
Remove all cookies of cookieManager
for the given domain
.
getAcceptPolicy
cookieManagerGetAcceptPolicy Source #
:: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> 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 #
:: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m CookieAcceptPolicy | Returns: the cookie acceptance policy of |
Finish an asynchronous operation started with cookieManagerGetAcceptPolicy
.
getCookies
cookieManagerGetCookies Source #
:: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Asynchronously get a list of Cookie
from cookieManager
associated with uri
, which
must be either an HTTP or an HTTPS URL.
When the operation is finished, callback
will be called. You can then call
cookieManagerGetCookiesFinish
to get the result of the operation.
Since: 2.20
getCookiesFinish
cookieManagerGetCookiesFinish Source #
:: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m [Cookie] |
Finish an asynchronous operation started with cookieManagerGetCookies
.
The return value is a SList
of Cookie
instances which should be released
with g_list_free_full()
and cookieFree
.
Since: 2.20
getDomainsWithCookies
cookieManagerGetDomainsWithCookies Source #
:: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> 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 #
:: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m [Text] | Returns: A |
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 #
:: (HasCallStack, MonadIO m, IsCookieManager a) | |
=> a |
|
-> CookieAcceptPolicy |
|
-> m () |
Set the cookie acceptance policy of cookieManager
as policy
.
setPersistentStorage
cookieManagerSetPersistentStorage Source #
:: (HasCallStack, MonadIO m, IsCookieManager a) | |
=> a |
|
-> Text |
|
-> 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
type C_CookieManagerChangedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type CookieManagerChangedCallback = IO () Source #
This signal is emitted when cookies are added, removed or modified.
afterCookieManagerChanged :: (IsCookieManager a, MonadIO m) => a -> CookieManagerChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “changed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
cookieManager #changed callback
genClosure_CookieManagerChanged :: MonadIO m => CookieManagerChangedCallback -> m (GClosure C_CookieManagerChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_CookieManagerChangedCallback :: C_CookieManagerChangedCallback -> IO (FunPtr C_CookieManagerChangedCallback) Source #
Generate a function pointer callable from C code, from a C_CookieManagerChangedCallback
.
noCookieManagerChangedCallback :: Maybe CookieManagerChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
CookieManagerChangedCallback
onCookieManagerChanged :: (IsCookieManager a, MonadIO m) => a -> CookieManagerChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “changed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
cookieManager #changed callback