Gcr.ImportInteraction

g GObject.GInterface GObject.GInterface Gcr.ImportInteraction Gcr.ImportInteraction GObject.GInterface->Gcr.ImportInteraction

Implementations:

None

Methods

supplement (builder, cancellable)

supplement_async (builder, cancellable, callback, *user_data)

supplement_finish (result)

supplement_prep (builder)

Virtual Methods

do_supplement (builder, cancellable)

do_supplement_async (builder, cancellable, callback, *user_data)

do_supplement_finish (result)

do_supplement_prep (builder)

Properties

None

Signals

None

Fields

None

Class Details

class Gcr.ImportInteraction
Bases:

GObject.GInterface

Structure:

Gcr.ImportInteractionInterface

This is an interface implemented by a caller performing an import. It allows the importer to ask the caller for further information about the import.

It must be implemented on a derived class of [class`Gio`.TlsInteraction]

supplement(builder, cancellable)[source]
Parameters:
Raises:

GLib.Error

Returns:

Gio.TlsInteractionResult.HANDLED if successful or Gio.TlsInteractionResult.FAILED

Return type:

Gio.TlsInteractionResult

Supplement attributes before import. This means prompting the user for things like labels and the like. The needed attributes will have been passed to Gcr.ImportInteraction.supplement_prep().

This method prompts the user and fills in the attributes. If the user or cancellable cancels the operation the error should be set with Gio.IOErrorEnum.CANCELLED.

supplement_async(builder, cancellable, callback, *user_data)[source]
Parameters:

Asynchronously supplement attributes before import. This means prompting the user for things like labels and the like. The needed attributes will have been passed to Gcr.ImportInteraction.supplement_prep().

This method prompts the user and fills in the attributes.

supplement_finish(result)[source]
Parameters:

result (Gio.AsyncResult) – the asynchronous result

Raises:

GLib.Error

Returns:

Gio.TlsInteractionResult.HANDLED if successful or Gio.TlsInteractionResult.FAILED

Return type:

Gio.TlsInteractionResult

Complete operation to asynchronously supplement attributes before import.

If the user or cancellable cancels the operation the error should be set with Gio.IOErrorEnum.CANCELLED.

supplement_prep(builder)[source]
Parameters:

builder (Gck.Builder) – attributes to supplement

Prepare for supplementing the given attributes before import. This means prompting the user for things like labels and the like. The attributes will contain attributes for values that the importer needs, either empty or prefilled with suggested values.

This method does not prompt the user, but rather just prepares the interaction that these are the attributes that are needed.

do_supplement(builder, cancellable) virtual
Parameters:
Returns:

Gio.TlsInteractionResult.HANDLED if successful or Gio.TlsInteractionResult.FAILED

Return type:

Gio.TlsInteractionResult

Supplement attributes before import. This means prompting the user for things like labels and the like. The needed attributes will have been passed to Gcr.ImportInteraction.supplement_prep().

This method prompts the user and fills in the attributes. If the user or cancellable cancels the operation the error should be set with Gio.IOErrorEnum.CANCELLED.

do_supplement_async(builder, cancellable, callback, *user_data) virtual
Parameters:

Asynchronously supplement attributes before import. This means prompting the user for things like labels and the like. The needed attributes will have been passed to Gcr.ImportInteraction.supplement_prep().

This method prompts the user and fills in the attributes.

do_supplement_finish(result) virtual
Parameters:

result (Gio.AsyncResult) – the asynchronous result

Returns:

Gio.TlsInteractionResult.HANDLED if successful or Gio.TlsInteractionResult.FAILED

Return type:

Gio.TlsInteractionResult

Complete operation to asynchronously supplement attributes before import.

If the user or cancellable cancels the operation the error should be set with Gio.IOErrorEnum.CANCELLED.

do_supplement_prep(builder) virtual
Parameters:

builder (Gck.Builder) – attributes to supplement

Prepare for supplementing the given attributes before import. This means prompting the user for things like labels and the like. The attributes will contain attributes for values that the importer needs, either empty or prefilled with suggested values.

This method does not prompt the user, but rather just prepares the interaction that these are the attributes that are needed.