Interface

Gcr-4GcrImporterNamespace

interface ImporterNamespace {
    $gtype: GType<Gcr.Importer>;
    prototype: Gcr.Importer;
    create_for_parsed(parsed: Parsed): Gcr.Importer[];
    queue_and_filter_for_parsed(
        importers: Gcr.Importer[],
        parsed: Parsed,
    ): Gcr.Importer[];
    register(importer_type: GType, attrs: Attributes): void;
    register_well_known(): void;
}
Index
$gtype: GType<Gcr.Importer>
prototype: Gcr.Importer
  • Create a set of importers which can import this parsed item.

    The parsed item is represented by the state of the Gcr.Parser at the time of calling this method.

    Parameters

    • parsed: Parsed

      a parser with a parsed item to import

    Returns Gcr.Importer[]

  • Queues an additional item to be imported in all compattible importers in the set. The parsed item is represented by the state of the Gcr.Parser at the time of calling this method.

    If the parsed item is incompatible with an importer, then that the item will not be queued on that importer.

    Parameters

    Returns Gcr.Importer[]

  • Register an importer to handle parsed items that match the given attributes.

    Parameters

    • importer_type: GType

      the GType of the importer being registered

    • attrs: Attributes

      the attributes that this importer is compatible with

    Returns void

  • Register built-in PKCS#11 and GnuPG importers.

    Returns void