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 |
An object that implement some sort of optional feature for
Session
.
- newtype SessionFeature = SessionFeature (ManagedPtr SessionFeature)
- noSessionFeature :: Maybe SessionFeature
- class GObject o => IsSessionFeature o
- toSessionFeature :: IsSessionFeature o => o -> IO SessionFeature
- data SessionFeatureAddFeatureMethodInfo
- sessionFeatureAddFeature :: (HasCallStack, MonadIO m, IsSessionFeature a) => a -> GType -> m Bool
- data SessionFeatureAttachMethodInfo
- sessionFeatureAttach :: (HasCallStack, MonadIO m, IsSessionFeature a, IsSession b) => a -> b -> m ()
- data SessionFeatureDetachMethodInfo
- sessionFeatureDetach :: (HasCallStack, MonadIO m, IsSessionFeature a, IsSession b) => a -> b -> m ()
- data SessionFeatureHasFeatureMethodInfo
- sessionFeatureHasFeature :: (HasCallStack, MonadIO m, IsSessionFeature a) => a -> GType -> m Bool
- data SessionFeatureRemoveFeatureMethodInfo
- sessionFeatureRemoveFeature :: (HasCallStack, MonadIO m, IsSessionFeature a) => a -> GType -> m Bool
Exported types
newtype SessionFeature Source #
GObject SessionFeature Source # | |
IsObject SessionFeature Source # | |
IsSessionFeature SessionFeature Source # | |
((~) * info (ResolveSessionFeatureMethod t SessionFeature), MethodInfo * info SessionFeature p) => IsLabel t (SessionFeature -> p) Source # | |
((~) * info (ResolveSessionFeatureMethod t SessionFeature), MethodInfo * info SessionFeature p) => IsLabelProxy t (SessionFeature -> p) Source # | |
HasAttributeList * SessionFeature Source # | |
type AttributeList SessionFeature Source # | |
type SignalList SessionFeature Source # | |
class GObject o => IsSessionFeature o Source #
toSessionFeature :: IsSessionFeature o => o -> IO SessionFeature Source #
Methods
addFeature
data SessionFeatureAddFeatureMethodInfo Source #
((~) * signature (GType -> m Bool), MonadIO m, IsSessionFeature a) => MethodInfo * SessionFeatureAddFeatureMethodInfo a signature Source # | |
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
data SessionFeatureAttachMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsSessionFeature a, IsSession b) => MethodInfo * SessionFeatureAttachMethodInfo a signature Source # | |
sessionFeatureAttach :: (HasCallStack, MonadIO m, IsSessionFeature a, IsSession b) => a -> b -> m () Source #
No description available in the introspection data.
detach
data SessionFeatureDetachMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsSessionFeature a, IsSession b) => MethodInfo * SessionFeatureDetachMethodInfo a signature Source # | |
sessionFeatureDetach :: (HasCallStack, MonadIO m, IsSessionFeature a, IsSession b) => a -> b -> m () Source #
No description available in the introspection data.
hasFeature
data SessionFeatureHasFeatureMethodInfo Source #
((~) * signature (GType -> m Bool), MonadIO m, IsSessionFeature a) => MethodInfo * SessionFeatureHasFeatureMethodInfo a signature Source # | |
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
data SessionFeatureRemoveFeatureMethodInfo Source #
((~) * signature (GType -> m Bool), MonadIO m, IsSessionFeature a) => MethodInfo * SessionFeatureRemoveFeatureMethodInfo a signature Source # | |
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