Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
An object that implement some sort of optional feature for
Session
.
Since: 2.24
Synopsis
- newtype SessionFeature = SessionFeature (ManagedPtr SessionFeature)
- class (GObject o, IsDescendantOf SessionFeature o) => IsSessionFeature o
- toSessionFeature :: (MonadIO m, IsSessionFeature o) => o -> m SessionFeature
- sessionFeatureAddFeature :: (HasCallStack, MonadIO m, IsSessionFeature a) => a -> GType -> m Bool
- sessionFeatureAttach :: (HasCallStack, MonadIO m, IsSessionFeature a, IsSession b) => a -> b -> m ()
- sessionFeatureDetach :: (HasCallStack, MonadIO m, IsSessionFeature a, IsSession b) => a -> b -> m ()
- sessionFeatureHasFeature :: (HasCallStack, MonadIO m, IsSessionFeature a) => a -> GType -> m Bool
- sessionFeatureRemoveFeature :: (HasCallStack, MonadIO m, IsSessionFeature a) => a -> GType -> m Bool
Exported types
newtype SessionFeature Source #
Memory-managed wrapper type.
SessionFeature (ManagedPtr SessionFeature) |
Instances
Eq SessionFeature Source # | |
Defined in GI.Soup.Interfaces.SessionFeature (==) :: SessionFeature -> SessionFeature -> Bool # (/=) :: SessionFeature -> SessionFeature -> Bool # | |
GObject SessionFeature Source # | |
Defined in GI.Soup.Interfaces.SessionFeature | |
ManagedPtrNewtype SessionFeature Source # | |
Defined in GI.Soup.Interfaces.SessionFeature toManagedPtr :: SessionFeature -> ManagedPtr SessionFeature | |
TypedObject SessionFeature Source # | |
Defined in GI.Soup.Interfaces.SessionFeature | |
HasParentTypes SessionFeature Source # | |
Defined in GI.Soup.Interfaces.SessionFeature | |
IsGValue (Maybe SessionFeature) Source # | Convert |
Defined in GI.Soup.Interfaces.SessionFeature gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe SessionFeature -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe SessionFeature) | |
type ParentTypes SessionFeature Source # | |
Defined in GI.Soup.Interfaces.SessionFeature type ParentTypes SessionFeature = '[Object] |
class (GObject o, IsDescendantOf SessionFeature o) => IsSessionFeature o Source #
Type class for types which can be safely cast to SessionFeature
, for instance with toSessionFeature
.
Instances
(GObject o, IsDescendantOf SessionFeature o) => IsSessionFeature o Source # | |
Defined in GI.Soup.Interfaces.SessionFeature |
toSessionFeature :: (MonadIO m, IsSessionFeature o) => o -> m SessionFeature Source #
Cast to SessionFeature
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
addFeature, attach, bindProperty, bindPropertyFull, detach, forceFloating, freezeNotify, getv, hasFeature, isFloating, notify, notifyByPspec, ref, refSink, removeFeature, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
addFeature
sessionFeatureAddFeature Source #
:: (HasCallStack, MonadIO m, IsSessionFeature a) | |
=> a |
|
-> GType |
|
-> m Bool | Returns: |
Adds a "sub-feature" of type type
to the base feature feature
.
This is used for features that can be extended with multiple
different types. Eg, the authentication manager can be extended
with subtypes of Auth
.
Since: 2.34
attach
sessionFeatureAttach :: (HasCallStack, MonadIO m, IsSessionFeature a, IsSession b) => a -> b -> m () Source #
No description available in the introspection data.
detach
sessionFeatureDetach :: (HasCallStack, MonadIO m, IsSessionFeature a, IsSession b) => a -> b -> m () Source #
No description available in the introspection data.
hasFeature
sessionFeatureHasFeature Source #
:: (HasCallStack, MonadIO m, IsSessionFeature a) | |
=> a |
|
-> GType |
|
-> m Bool | Returns: |
Tests if feature
has a "sub-feature" of type type
. See
sessionFeatureAddFeature
.
Since: 2.34
removeFeature
sessionFeatureRemoveFeature Source #
:: (HasCallStack, MonadIO m, IsSessionFeature a) | |
=> a |
|
-> GType |
|
-> m Bool | Returns: |
Removes the "sub-feature" of type type
from the base feature
feature
. See sessionFeatureAddFeature
.
Since: 2.34