Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
An object representing a backend implementation of password storage.
Since: 0.19.0
Synopsis
- newtype Backend = Backend (ManagedPtr Backend)
- class (GObject o, IsDescendantOf Backend o) => IsBackend o
- toBackend :: (MonadIO m, IsBackend o) => o -> m Backend
- backendGet :: (HasCallStack, MonadIO m, IsCancellable a) => BackendFlags -> Maybe a -> Maybe AsyncReadyCallback -> m ()
- backendGetFinish :: (HasCallStack, MonadIO m, IsAsyncResult a) => a -> m Backend
- constructBackendFlags :: (IsBackend o, MonadIO m) => [ServiceFlags] -> m (GValueConstruct o)
- getBackendFlags :: (MonadIO m, IsBackend o) => o -> m [ServiceFlags]
Exported types
Memory-managed wrapper type.
Instances
Eq Backend Source # | |
GObject Backend Source # | |
Defined in GI.Secret.Interfaces.Backend | |
ManagedPtrNewtype Backend Source # | |
Defined in GI.Secret.Interfaces.Backend toManagedPtr :: Backend -> ManagedPtr Backend | |
TypedObject Backend Source # | |
Defined in GI.Secret.Interfaces.Backend | |
HasParentTypes Backend Source # | |
Defined in GI.Secret.Interfaces.Backend | |
IsGValue (Maybe Backend) Source # | Convert |
Defined in GI.Secret.Interfaces.Backend gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Backend -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Backend) | |
type ParentTypes Backend Source # | |
Defined in GI.Secret.Interfaces.Backend |
class (GObject o, IsDescendantOf Backend o) => IsBackend o Source #
Instances
(GObject o, IsDescendantOf Backend o) => IsBackend o Source # | |
Defined in GI.Secret.Interfaces.Backend |
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, initAsync, initFinish, isFloating, newFinish, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
get
:: (HasCallStack, MonadIO m, IsCancellable a) | |
=> BackendFlags |
|
-> Maybe a |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Get a Backend
instance. If such a backend already exists,
then the same backend is returned.
If flags
contains any flags of which parts of the secret backend to
ensure are initialized, then those will be initialized before completing.
This method will return immediately and complete asynchronously.
Since: 0.19.0
getFinish
:: (HasCallStack, MonadIO m, IsAsyncResult a) | |
=> a |
|
-> m Backend | Returns: a new reference to a |
Complete an asynchronous operation to get a Backend
.
Since: 0.19.0
Properties
flags
A set of flags describing which parts of the secret backend have been initialized.
Since: 0.19.0
constructBackendFlags :: (IsBackend o, MonadIO m) => [ServiceFlags] -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “flags
” property. This is rarely needed directly, but it is used by new
.
getBackendFlags :: (MonadIO m, IsBackend o) => o -> m [ServiceFlags] Source #
Get the value of the “flags
” property.
When overloading is enabled, this is equivalent to
get
backend #flags