Gcr.ImportInteraction¶
- Implementations:
None
Methods¶
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Gcr.ImportInteraction¶
- Bases:
- Structure:
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:
builder (
Gck.Builder
) – supplemented attributescancellable (
Gio.Cancellable
orNone
) – optional cancellable object
- Raises:
- Returns:
Gio.TlsInteractionResult.HANDLED
if successful orGio.TlsInteractionResult.FAILED
- Return type:
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:
builder (
Gck.Builder
) – supplemented attributescancellable (
Gio.Cancellable
orNone
) – optional cancellable objectcallback (
Gio.AsyncReadyCallback
orNone
) – called when the operation completesuser_data (
object
orNone
) – data to be passed to the callback
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:
- Returns:
Gio.TlsInteractionResult.HANDLED
if successful orGio.TlsInteractionResult.FAILED
- Return type:
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:
builder (
Gck.Builder
) – supplemented attributescancellable (
Gio.Cancellable
orNone
) – optional cancellable object
- Returns:
Gio.TlsInteractionResult.HANDLED
if successful orGio.TlsInteractionResult.FAILED
- Return type:
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:
builder (
Gck.Builder
) – supplemented attributescancellable (
Gio.Cancellable
orNone
) – optional cancellable objectcallback (
Gio.AsyncReadyCallback
orNone
) – called when the operation completesuser_data (
object
orNone
) – data to be passed to the callback
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 orGio.TlsInteractionResult.FAILED
- Return type:
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.