gi-secret
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Secret.Interfaces.Backend

Description

Backend represents a backend implementation of password storage.

Since: 0.19.0

Synopsis

Exported types

newtype Backend Source #

Memory-managed wrapper type.

Constructors

Backend (ManagedPtr Backend) 

Instances

Instances details
Eq Backend Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

Methods

(==) :: Backend -> Backend -> Bool #

(/=) :: Backend -> Backend -> Bool #

GObject Backend Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

ManagedPtrNewtype Backend Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

TypedObject Backend Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

Methods

glibType :: IO GType #

HasParentTypes Backend Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

HasAttributeList Backend Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

(info ~ ResolveBackendMethod t Backend, OverloadedMethod info Backend p, HasField t Backend p) => HasField (t :: Symbol) Backend p Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

Methods

getField :: Backend -> p #

(info ~ ResolveBackendMethod t Backend, OverloadedMethodInfo info Backend) => IsLabel t (MethodProxy info Backend) Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

Methods

fromLabel :: MethodProxy info Backend #

(info ~ ResolveBackendMethod t Backend, OverloadedMethod info Backend p) => IsLabel t (Backend -> p) Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

Methods

fromLabel :: Backend -> p #

IsGValue (Maybe Backend) Source #

Convert Backend to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Secret.Interfaces.Backend

type AttributeList Backend Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

type AttributeList Backend
type ParentTypes Backend Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

type ParentTypes Backend = '[AsyncInitable, Object]
type SignalList Backend Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

type SignalList Backend

class (GObject o, IsDescendantOf Backend o) => IsBackend o Source #

Type class for types which can be safely cast to Backend, for instance with toBackend.

Instances

Instances details
(GObject o, IsDescendantOf Backend o) => IsBackend o Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

toBackend :: (MonadIO m, IsBackend o) => o -> m Backend Source #

Cast to Backend, for types for which this is known to be safe. For general casts, use castTo.

Methods

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

backendGet Source #

Arguments

:: (HasCallStack, MonadIO m, IsCancellable a) 
=> BackendFlags

flags: flags for which service functionality to ensure is initialized

-> Maybe a

cancellable: optional cancellation object

-> Maybe AsyncReadyCallback

callback: called when the operation completes

-> 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

backendGetFinish Source #

Arguments

:: (HasCallStack, MonadIO m, IsAsyncResult a) 
=> a

result: the asynchronous result passed to the callback

-> m Backend

Returns: a new reference to a Backend proxy, which should be released with objectUnref. (Can throw GError)

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

Instances details
AttrInfo BackendFlagsPropertyInfo Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

Associated Types

type AttrAllowedOps BackendFlagsPropertyInfo 
Instance details

Defined in GI.Secret.Interfaces.Backend

type AttrAllowedOps BackendFlagsPropertyInfo = '['AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint BackendFlagsPropertyInfo 
Instance details

Defined in GI.Secret.Interfaces.Backend

type AttrBaseTypeConstraint BackendFlagsPropertyInfo = IsBackend
type AttrGetType BackendFlagsPropertyInfo 
Instance details

Defined in GI.Secret.Interfaces.Backend

type AttrSetTypeConstraint BackendFlagsPropertyInfo 
Instance details

Defined in GI.Secret.Interfaces.Backend

type AttrSetTypeConstraint BackendFlagsPropertyInfo = Type ~ [ServiceFlags]
type AttrTransferTypeConstraint BackendFlagsPropertyInfo 
Instance details

Defined in GI.Secret.Interfaces.Backend

type AttrTransferTypeConstraint BackendFlagsPropertyInfo = Type ~ [ServiceFlags]
type AttrTransferType BackendFlagsPropertyInfo 
Instance details

Defined in GI.Secret.Interfaces.Backend

type AttrTransferType BackendFlagsPropertyInfo = [ServiceFlags]
type AttrLabel BackendFlagsPropertyInfo 
Instance details

Defined in GI.Secret.Interfaces.Backend

type AttrLabel BackendFlagsPropertyInfo = "flags"
type AttrOrigin BackendFlagsPropertyInfo 
Instance details

Defined in GI.Secret.Interfaces.Backend

Methods

attrGet :: AttrBaseTypeConstraint BackendFlagsPropertyInfo o => o -> IO (AttrGetType BackendFlagsPropertyInfo)

attrSet :: (AttrBaseTypeConstraint BackendFlagsPropertyInfo o, AttrSetTypeConstraint BackendFlagsPropertyInfo b) => o -> b -> IO ()

attrClear :: AttrBaseTypeConstraint BackendFlagsPropertyInfo o => o -> IO ()

attrConstruct :: (AttrBaseTypeConstraint BackendFlagsPropertyInfo o, AttrSetTypeConstraint BackendFlagsPropertyInfo b) => b -> IO (GValueConstruct o)

attrTransfer :: (AttrBaseTypeConstraint BackendFlagsPropertyInfo o, AttrTransferTypeConstraint BackendFlagsPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType BackendFlagsPropertyInfo)

dbgAttrInfo :: Maybe ResolvedSymbolInfo

type AttrAllowedOps BackendFlagsPropertyInfo Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

type AttrAllowedOps BackendFlagsPropertyInfo = '['AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint BackendFlagsPropertyInfo Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

type AttrBaseTypeConstraint BackendFlagsPropertyInfo = IsBackend
type AttrGetType BackendFlagsPropertyInfo Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

type AttrLabel BackendFlagsPropertyInfo Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

type AttrLabel BackendFlagsPropertyInfo = "flags"
type AttrOrigin BackendFlagsPropertyInfo Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

type AttrSetTypeConstraint BackendFlagsPropertyInfo Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

type AttrSetTypeConstraint BackendFlagsPropertyInfo = Type ~ [ServiceFlags]
type AttrTransferType BackendFlagsPropertyInfo Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

type AttrTransferType BackendFlagsPropertyInfo = [ServiceFlags]
type AttrTransferTypeConstraint BackendFlagsPropertyInfo Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

type AttrTransferTypeConstraint BackendFlagsPropertyInfo = Type ~ [ServiceFlags]

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