Class

SecretPrompt

Description [src]

class Secret.Prompt : Gio.DBusProxy {
  parent_instance: GDBusProxy
}

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_prompt() method. In this way it is handled automatically.

In order to customize prompt handling, override the Secret.ServiceClass.prompt_async and Secret.ServiceClass.prompt_finish virtual methods of the SecretService class.

Stability:Stable

Ancestors

Instance methods

secret_prompt_perform

Runs a prompt and performs the prompting.

secret_prompt_perform_finish

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

secret_prompt_perform_sync

Runs a prompt and performs the prompting.

secret_prompt_run

Runs a prompt and performs the prompting.

Methods inherited from GDBusProxy (19)
g_dbus_proxy_call

Asynchronously invokes the method_name method on proxy.

Available since: 2.26

g_dbus_proxy_call_finish

Finishes an operation started with g_dbus_proxy_call().

Available since: 2.26

g_dbus_proxy_call_sync

Synchronously invokes the method_name method on proxy.

Available since: 2.26

g_dbus_proxy_call_with_unix_fd_list

Like g_dbus_proxy_call() but also takes a GUnixFDList object.

Available since: 2.30

g_dbus_proxy_call_with_unix_fd_list_finish

Finishes an operation started with g_dbus_proxy_call_with_unix_fd_list().

Available since: 2.30

g_dbus_proxy_call_with_unix_fd_list_sync

Like g_dbus_proxy_call_sync() but also takes and returns GUnixFDList objects.

Available since: 2.30

g_dbus_proxy_get_cached_property

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

Available since: 2.26

g_dbus_proxy_get_cached_property_names

Gets the names of all cached properties on proxy.

Available since: 2.26

g_dbus_proxy_get_connection

Gets the connection proxy is for.

Available since: 2.26

g_dbus_proxy_get_default_timeout

Gets the timeout to use if -1 (specifying default timeout) is passed as timeout_msec in the g_dbus_proxy_call() and g_dbus_proxy_call_sync() functions.

Available since: 2.26

g_dbus_proxy_get_flags

Gets the flags that proxy was constructed with.

Available since: 2.26

g_dbus_proxy_get_interface_info

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

Available since: 2.26

g_dbus_proxy_get_interface_name

Gets the D-Bus interface name proxy is for.

Available since: 2.26

g_dbus_proxy_get_name

Gets the name that proxy was constructed for.

Available since: 2.26

g_dbus_proxy_get_name_owner

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.

Available since: 2.26

g_dbus_proxy_get_object_path

Gets the object path proxy is for.

Available since: 2.26

g_dbus_proxy_set_cached_property

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

Available since: 2.26

g_dbus_proxy_set_default_timeout

Sets the timeout to use if -1 (specifying default timeout) is passed as timeout_msec in the g_dbus_proxy_call() and g_dbus_proxy_call_sync() functions.

Available since: 2.26

g_dbus_proxy_set_interface_info

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

Available since: 2.26

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Methods inherited from GAsyncInitable (3)
g_async_initable_init_async

Starts asynchronous initialization of the object implementing the interface. This must be done before any real use of the object after initial construction. If the object also implements GInitable you can optionally call g_initable_init() instead.

Available since: 2.22

g_async_initable_init_finish

Finishes asynchronous initialization and returns the result. See g_async_initable_init_async().

Available since: 2.22

g_async_initable_new_finish

Finishes the async construction for the various g_async_initable_new calls, returning the created object or NULL on error.

Available since: 2.22

Methods inherited from GDBusInterface (4)
g_dbus_interface_dup_object

Gets the GDBusObject that interface_ belongs to, if any.

Available since: 2.32

g_dbus_interface_get_info

Gets D-Bus introspection information for the D-Bus interface implemented by interface_.

Available since: 2.30

g_dbus_interface_get_object

Gets the GDBusObject that interface_ belongs to, if any.

Available since: 2.30

g_dbus_interface_set_object

Sets the GDBusObject for interface_ to object.

Available since: 2.30

Methods inherited from GInitable (1)
g_initable_init

Initializes the object implementing the interface.

Available since: 2.22

Properties

Properties inherited from GDBusProxy (9)
Gio.DBusProxy:g-bus-type

If this property is not G_BUS_TYPE_NONE, then GDBusProxy:g-connection must be NULL and will be set to the GDBusConnection obtained by calling g_bus_get() with the value of this property.

Available since: 2.26

Gio.DBusProxy:g-connection

The GDBusConnection the proxy is for.

Available since: 2.26

Gio.DBusProxy:g-default-timeout

The timeout to use if -1 (specifying default timeout) is passed as timeout_msec in the g_dbus_proxy_call() and g_dbus_proxy_call_sync() functions.

Available since: 2.26

Gio.DBusProxy:g-flags

Flags from the GDBusProxyFlags enumeration.

Available since: 2.26

Gio.DBusProxy:g-interface-info

Ensure that interactions with this proxy conform to the given interface. This is mainly to ensure that malformed data received from the other peer is ignored. The given GDBusInterfaceInfo is said to be the “expected interface”.

Available since: 2.26

Gio.DBusProxy:g-interface-name

The D-Bus interface name the proxy is for.

Available since: 2.26

Gio.DBusProxy:g-name

The well-known or unique name that the proxy is for.

Available since: 2.26

Gio.DBusProxy:g-name-owner

The unique name that owns GDBusProxy:g-name or NULL if no-one currently owns that name. You may connect to GObject::notify signal to track changes to this property.

Available since: 2.26

Gio.DBusProxy:g-object-path

The object path the proxy is for.

Available since: 2.26

Signals

Signals inherited from GDBusProxy (2)
Gio.DBusProxy::g-properties-changed

Emitted when one or more D-Bus properties on proxy changes. The local cache has already been updated when this signal fires. Note that both changed_properties and invalidated_properties are guaranteed to never be NULL (either may be empty though).

Available since: 2.26

Gio.DBusProxy::g-signal

Emitted when a signal from the remote object and interface that proxy is for, has been received.

Available since: 2.26

Signals inherited from GObject (1)
GObject.Object::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct SecretPromptClass {
  GDBusProxyClass parent_class;
  
}
Class members
parent_class
GDBusProxyClass
 

The parent class.