Importer
Object Hierarchy:
Gcr.Importer
Gcr.Importer
Gcr.Importer
GLib.Object
GLib.Object
GLib.Object->Gcr.Importer
Description:
[ CCode ( type_id = "gcr_importer_get_type ()" ) ]public interface Importer : Object
An interface which allows importing of certificates and keys.
Each importer is registered with a set of PKCS#11 attributes to match stuff that it can import.
An importer gets passed a [class@Parser] and accesses the currently parsed item. To create a set of importers that can import the
currently parsed item in a parser, use [[email protected] _for_parsed]. The list of importers returned has the parsed item queued for
import.
To queue additional items with a importer use [[email protected] _for_parsed]. In addition you can try and queue an additional item
with a set of importers using the [[email protected] _and_filter_for_parsed].
To start the import, use [[email protected] ] or its async variants.
Content:
Properties:
public abstract Icon icon { owned get ; }
The icon for the importer.
public abstract TlsInteraction interaction { get ; set ; }
The interaction for the importer.
public abstract string label { owned get ; }
The label for the importer.
public abstract string uri { owned get ; }
The URI of the location imported to.
Static methods:
public static List <Importer > create_for_parsed (Parsed parsed)
Create a set of importers which can import this parsed item.
public static List <Importer > queue_and_filter_for_parsed (List <Importer > importers, Parsed parsed)
Queues an additional item to be imported in all compattible importers
in the set.
public static void register (Type importer_type, Attributes attrs)
Register an importer to handle parsed items that match the given
attributes.
public static void register_well_known ()
Register built-in PKCS#11 and GnuPG importers.
Methods:
public unowned TlsInteraction ? get_interaction ()
Get the interaction used to prompt the user when needed by this
importer.
public bool import (Cancellable ? cancellable = null ) throws Error
Import the queued items in the importer.
public abstract async bool import_async (Cancellable ? cancellable) throws Error
Import the queued items in the importer.
public abstract bool import_sync (Cancellable ? cancellable = null ) throws Error
public abstract bool queue_for_parsed (Parsed parsed)
Queues an additional item to be imported.
public void set_interaction (TlsInteraction interaction)
Set the interaction used to prompt the user when needed by this
importer.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref