Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.Secret.Interfaces.Backend
Description
Backend
represents 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
- type family ResolveBackendMethod (t :: Symbol) o where ...
- backendGet :: (HasCallStack, MonadIO m, IsCancellable a) => BackendFlags -> Maybe a -> Maybe AsyncReadyCallback -> m ()
- backendGetFinish :: (HasCallStack, MonadIO m, IsAsyncResult a) => a -> m Backend
- data BackendFlagsPropertyInfo
- backendFlags :: AttrLabelProxy "flags"
- constructBackendFlags :: (IsBackend o, MonadIO m) => [ServiceFlags] -> m (GValueConstruct o)
- getBackendFlags :: (MonadIO m, IsBackend o) => o -> m [ServiceFlags]
Exported types
Memory-managed wrapper type.
Constructors
Backend (ManagedPtr Backend) |
Instances
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
type family ResolveBackendMethod (t :: Symbol) o where ... Source #
Equations
ResolveBackendMethod "bindProperty" o = ObjectBindPropertyMethodInfo | |
ResolveBackendMethod "bindPropertyFull" o = ObjectBindPropertyFullMethodInfo | |
ResolveBackendMethod "forceFloating" o = ObjectForceFloatingMethodInfo | |
ResolveBackendMethod "freezeNotify" o = ObjectFreezeNotifyMethodInfo | |
ResolveBackendMethod "getv" o = ObjectGetvMethodInfo | |
ResolveBackendMethod "initAsync" o = AsyncInitableInitAsyncMethodInfo | |
ResolveBackendMethod "initFinish" o = AsyncInitableInitFinishMethodInfo | |
ResolveBackendMethod "isFloating" o = ObjectIsFloatingMethodInfo | |
ResolveBackendMethod "newFinish" o = AsyncInitableNewFinishMethodInfo | |
ResolveBackendMethod "notify" o = ObjectNotifyMethodInfo | |
ResolveBackendMethod "notifyByPspec" o = ObjectNotifyByPspecMethodInfo | |
ResolveBackendMethod "ref" o = ObjectRefMethodInfo | |
ResolveBackendMethod "refSink" o = ObjectRefSinkMethodInfo | |
ResolveBackendMethod "runDispose" o = ObjectRunDisposeMethodInfo | |
ResolveBackendMethod "stealData" o = ObjectStealDataMethodInfo | |
ResolveBackendMethod "stealQdata" o = ObjectStealQdataMethodInfo | |
ResolveBackendMethod "thawNotify" o = ObjectThawNotifyMethodInfo | |
ResolveBackendMethod "unref" o = ObjectUnrefMethodInfo | |
ResolveBackendMethod "watchClosure" o = ObjectWatchClosureMethodInfo | |
ResolveBackendMethod "getData" o = ObjectGetDataMethodInfo | |
ResolveBackendMethod "getProperty" o = ObjectGetPropertyMethodInfo | |
ResolveBackendMethod "getQdata" o = ObjectGetQdataMethodInfo | |
ResolveBackendMethod "setData" o = ObjectSetDataMethodInfo | |
ResolveBackendMethod "setDataFull" o = ObjectSetDataFullMethodInfo | |
ResolveBackendMethod "setProperty" o = ObjectSetPropertyMethodInfo | |
ResolveBackendMethod l o = MethodResolutionFailed l o :: Type |
get
Arguments
:: (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
Arguments
:: (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
data BackendFlagsPropertyInfo Source #
Instances
backendFlags :: AttrLabelProxy "flags" Source #
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