gi-secret-0.0.17: Libsecret bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
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

Methods

toManagedPtr :: Backend -> ManagedPtr 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

IsGValue (Maybe Backend) Source #

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

Instance details

Defined in GI.Secret.Interfaces.Backend

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe Backend -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe Backend)

type ParentTypes Backend Source # 
Instance details

Defined in GI.Secret.Interfaces.Backend

type ParentTypes Backend = '[AsyncInitable, Object]

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

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

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