Prompt

A prompt in the Service

A proxy object representing a prompt that the Secret Service will display to the user.

Certain actions on the Secret Service require user prompting to complete, such as creating a collection, or unlocking a collection. When such a prompt is necessary, then a #SecretPrompt object is created by this library, and passed to the secret.service.Service.prompt method. In this way it is handled automatically.

In order to customize prompt handling, override the vfunc@Service.prompt_async and vfunc@Service.prompt_finish virtual methods of the class@Service class.

Members

Functions

perform
void perform(string windowId, glib.variant_type.VariantType returnType, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Runs a prompt and performs the prompting.

performFinish
glib.variant.VariantG performFinish(gio.async_result.AsyncResult result)

Complete asynchronous operation to run a prompt and perform the prompting.

performSync
glib.variant.VariantG performSync(string windowId, gio.cancellable.Cancellable cancellable, glib.variant_type.VariantType returnType)

Runs a prompt and performs the prompting.

run
glib.variant.VariantG run(string windowId, gio.cancellable.Cancellable cancellable, glib.variant_type.VariantType returnType)

Runs a prompt and performs the prompting.

Inherited Members

From DBusProxy

newFinish
gio.dbus_proxy.DBusProxy newFinish(gio.async_result.AsyncResult res)

Finishes creating a #GDBusProxy.

newForBusFinish
gio.dbus_proxy.DBusProxy newForBusFinish(gio.async_result.AsyncResult res)

Finishes creating a #GDBusProxy.

newForBusSync
gio.dbus_proxy.DBusProxy newForBusSync(gio.types.BusType busType, gio.types.DBusProxyFlags flags, gio.dbus_interface_info.DBusInterfaceInfo info, string name, string objectPath, string interfaceName, gio.cancellable.Cancellable cancellable)

Like gio.dbus_proxy.DBusProxy.newSync but takes a #GBusType instead of a #GDBusConnection.

newSync
gio.dbus_proxy.DBusProxy newSync(gio.dbus_connection.DBusConnection connection, gio.types.DBusProxyFlags flags, gio.dbus_interface_info.DBusInterfaceInfo info, string name, string objectPath, string interfaceName, gio.cancellable.Cancellable cancellable)

Creates a proxy for accessing interface_name on the remote object at object_path owned by name at connection and synchronously loads D-Bus properties unless the gio.types.DBusProxyFlags.DoNotLoadProperties flag is used.

new_
void new_(gio.dbus_connection.DBusConnection connection, gio.types.DBusProxyFlags flags, gio.dbus_interface_info.DBusInterfaceInfo info, string name, string objectPath, string interfaceName, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Creates a proxy for accessing interface_name on the remote object at object_path owned by name at connection and asynchronously loads D-Bus properties unless the gio.types.DBusProxyFlags.DoNotLoadProperties flag is used. Connect to the #GDBusProxy::g-properties-changed signal to get notified about property changes.

newForBus
void newForBus(gio.types.BusType busType, gio.types.DBusProxyFlags flags, gio.dbus_interface_info.DBusInterfaceInfo info, string name, string objectPath, string interfaceName, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Like gio.dbus_proxy.DBusProxy.new_ but takes a #GBusType instead of a #GDBusConnection.

call
void call(string methodName, glib.variant.VariantG parameters, gio.types.DBusCallFlags flags, int timeoutMsec, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Asynchronously invokes the method_name method on proxy.

callFinish
glib.variant.VariantG callFinish(gio.async_result.AsyncResult res)

Finishes an operation started with gio.dbus_proxy.DBusProxy.call.

callSync
glib.variant.VariantG callSync(string methodName, glib.variant.VariantG parameters, gio.types.DBusCallFlags flags, int timeoutMsec, gio.cancellable.Cancellable cancellable)

Synchronously invokes the method_name method on proxy.

callWithUnixFdList
void callWithUnixFdList(string methodName, glib.variant.VariantG parameters, gio.types.DBusCallFlags flags, int timeoutMsec, gio.unix_fdlist.UnixFDList fdList, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Like gio.dbus_proxy.DBusProxy.call but also takes a #GUnixFDList object.

callWithUnixFdListFinish
glib.variant.VariantG callWithUnixFdListFinish(gio.unix_fdlist.UnixFDList outFdList, gio.async_result.AsyncResult res)

Finishes an operation started with gio.dbus_proxy.DBusProxy.callWithUnixFdList.

callWithUnixFdListSync
glib.variant.VariantG callWithUnixFdListSync(string methodName, glib.variant.VariantG parameters, gio.types.DBusCallFlags flags, int timeoutMsec, gio.unix_fdlist.UnixFDList fdList, gio.unix_fdlist.UnixFDList outFdList, gio.cancellable.Cancellable cancellable)

Like gio.dbus_proxy.DBusProxy.callSync but also takes and returns #GUnixFDList objects.

getCachedProperty
glib.variant.VariantG getCachedProperty(string propertyName)

Looks up the value for a property from the cache. This call does no blocking IO.

getCachedPropertyNames
string[] getCachedPropertyNames()

Gets the names of all cached properties on proxy.

getConnection
gio.dbus_connection.DBusConnection getConnection()

Gets the connection proxy is for.

getDefaultTimeout
int getDefaultTimeout()

Gets the timeout to use if -1 (specifying default timeout) is passed as timeout_msec in the gio.dbus_proxy.DBusProxy.call and gio.dbus_proxy.DBusProxy.callSync functions.

getFlags
gio.types.DBusProxyFlags getFlags()

Gets the flags that proxy was constructed with.

getInterfaceInfo
gio.dbus_interface_info.DBusInterfaceInfo getInterfaceInfo()

Returns the #GDBusInterfaceInfo, if any, specifying the interface that proxy conforms to. See the #GDBusProxy:g-interface-info property for more details.

getInterfaceName
string getInterfaceName()

Gets the D-Bus interface name proxy is for.

getName
string getName()

Gets the name that proxy was constructed for.

getNameOwner
string getNameOwner()

The unique name that owns the name that proxy is for or null if no-one currently owns that name. You may connect to the #GObject::notify signal to track changes to the #GDBusProxy:g-name-owner property.

getObjectPath
string getObjectPath()

Gets the object path proxy is for.

setCachedProperty
void setCachedProperty(string propertyName, glib.variant.VariantG value)

If value is not null, sets the cached value for the property with name property_name to the value in value.

setDefaultTimeout
void setDefaultTimeout(int timeoutMsec)

Sets the timeout to use if -1 (specifying default timeout) is passed as timeout_msec in the gio.dbus_proxy.DBusProxy.call and gio.dbus_proxy.DBusProxy.callSync functions.

setInterfaceInfo
void setInterfaceInfo(gio.dbus_interface_info.DBusInterfaceInfo info)

Ensure that interactions with proxy conform to the given interface. See the #GDBusProxy:g-interface-info property for more details.

connectGPropertiesChanged
ulong connectGPropertiesChanged(T callback, Flag!"After" after)

Connect to GPropertiesChanged signal.

connectGSignal
ulong connectGSignal(string detail, T callback, Flag!"After" after)

Connect to GSignal signal.