| 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 |
GI.WebKit2.Objects.CookieManager
Contents
Description
No description available in the introspection data.
Synopsis
- newtype CookieManager = CookieManager (ManagedPtr CookieManager)
- class GObject o => IsCookieManager o
- toCookieManager :: (MonadIO m, IsCookieManager o) => o -> m CookieManager
- noCookieManager :: Maybe CookieManager
- cookieManagerDeleteAllCookies :: (HasCallStack, MonadIO m, IsCookieManager a) => a -> 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
- 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 :: CookieManagerChangedCallback -> IO Closure
- 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.
Constructors
| CookieManager (ManagedPtr CookieManager) |
Instances
| GObject CookieManager Source # | |
Methods gobjectType :: CookieManager -> IO GType # | |
| IsObject CookieManager Source # | |
| IsCookieManager CookieManager Source # | |
class GObject o => IsCookieManager o Source #
Type class for types which can be safely cast to CookieManager, for instance with toCookieManager.
Instances
| (GObject a, (UnknownAncestorError CookieManager a :: Constraint)) => IsCookieManager a Source # | |
| IsCookieManager CookieManager Source # | |
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
deleteAllCookies
cookieManagerDeleteAllCookies Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCookieManager a) | |
| => a |
|
| -> m () |
Deprecated: (Since version 2.16)Use websiteDataManagerClear instead.
Delete all cookies of cookieManager
deleteCookiesForDomain
cookieManagerDeleteCookiesForDomain Source #
Arguments
| :: (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 #
Arguments
| :: (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 #
Arguments
| :: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) | |
| => a |
|
| -> b |
|
| -> m CookieAcceptPolicy | Returns: the cookie acceptance policy of |
Finish an asynchronous operation started with cookieManagerGetAcceptPolicy.
getDomainsWithCookies
cookieManagerGetDomainsWithCookies Source #
Arguments
| :: (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 #
Arguments
| :: (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 #
Arguments
| :: (HasCallStack, MonadIO m, IsCookieManager a) | |
| => a |
|
| -> CookieAcceptPolicy |
|
| -> m () |
Set the cookie acceptance policy of cookieManager as policy.
setPersistentStorage
cookieManagerSetPersistentStorage Source #
Arguments
| :: (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 :: CookieManagerChangedCallback -> IO Closure Source #
Wrap the callback into a Closure.
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