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 PolicyDecision = PolicyDecision (ManagedPtr PolicyDecision)
- class (GObject o, IsDescendantOf PolicyDecision o) => IsPolicyDecision o
- toPolicyDecision :: (MonadIO m, IsPolicyDecision o) => o -> m PolicyDecision
- noPolicyDecision :: Maybe PolicyDecision
- policyDecisionDownload :: (HasCallStack, MonadIO m, IsPolicyDecision a) => a -> m ()
- policyDecisionIgnore :: (HasCallStack, MonadIO m, IsPolicyDecision a) => a -> m ()
- policyDecisionUse :: (HasCallStack, MonadIO m, IsPolicyDecision a) => a -> m ()
Exported types
newtype PolicyDecision Source #
Memory-managed wrapper type.
Instances
GObject PolicyDecision Source # | |
Defined in GI.WebKit2.Objects.PolicyDecision gobjectType :: IO GType # | |
HasParentTypes PolicyDecision Source # | |
Defined in GI.WebKit2.Objects.PolicyDecision | |
type ParentTypes PolicyDecision Source # | |
Defined in GI.WebKit2.Objects.PolicyDecision |
class (GObject o, IsDescendantOf PolicyDecision o) => IsPolicyDecision o Source #
Type class for types which can be safely cast to PolicyDecision
, for instance with toPolicyDecision
.
Instances
(GObject o, IsDescendantOf PolicyDecision o) => IsPolicyDecision o Source # | |
Defined in GI.WebKit2.Objects.PolicyDecision |
toPolicyDecision :: (MonadIO m, IsPolicyDecision o) => o -> m PolicyDecision Source #
Cast to PolicyDecision
, for types for which this is known to be safe. For general casts, use castTo
.
noPolicyDecision :: Maybe PolicyDecision Source #
A convenience alias for Nothing
:: Maybe
PolicyDecision
.
Methods
download
policyDecisionDownload Source #
:: (HasCallStack, MonadIO m, IsPolicyDecision a) | |
=> a |
|
-> m () |
Spawn a download from this decision.
ignore
:: (HasCallStack, MonadIO m, IsPolicyDecision a) | |
=> a |
|
-> m () |
Ignore the action which triggered this decision. For instance, for a
ResponsePolicyDecision
, this would cancel the request.
use
:: (HasCallStack, MonadIO m, IsPolicyDecision a) | |
=> a |
|
-> m () |
Accept the action which triggered this decision.