Interface

Gcr-4GcrImporterInterface

Interface for implementing Importer. Contains only the virtual methods that need to be implemented.

interface Interface {
    vfunc_import_async(
        cancellable?: Gio.Cancellable,
        callback?: AsyncReadyCallback<Gcr.Importer.Interface>,
    ): void;
    vfunc_import_finish(result: Gio.AsyncResult): boolean;
    vfunc_queue_for_parsed(parsed: Parsed): boolean;
}

Hierarchy (View Summary)

Index

Methods

  • Queues an additional item to be imported. The parsed item is represented by the state of the Parser at the time of calling this method.

    If the parsed item is incompatible with the importer, then this will fail and the item will not be queued.

    Parameters

    • parsed: Parsed

      a parsed item to import

    Returns boolean