EvinceView.Job

g EvinceView.Job EvinceView.Job GObject.Object GObject.Object GObject.Object->EvinceView.Job

Subclasses:

EvinceView.JobAnnots, EvinceView.JobAttachments, EvinceView.JobExport, EvinceView.JobFind, EvinceView.JobFonts, EvinceView.JobLayers, EvinceView.JobLinks, EvinceView.JobLoad, EvinceView.JobLoadFd, EvinceView.JobLoadGFile, EvinceView.JobLoadStream, EvinceView.JobPageData, EvinceView.JobPrint, EvinceView.JobRender, EvinceView.JobSave, EvinceView.JobThumbnail

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

scheduler_get_running_thread_job ()

class

scheduler_wait ()

cancel ()

failed (error)

get_run_mode ()

is_failed ()

is_finished ()

run ()

scheduler_push_job (priority)

scheduler_update_job (priority)

set_run_mode (run_mode)

succeeded ()

Virtual Methods

Inherited:

GObject.Object (7)

do_cancelled ()

do_finished ()

do_run ()

Properties

None

Signals

Inherited:

GObject.Object (1)

Name

Short Description

cancelled

finished

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

cancellable

Gio.Cancellable

r

cancelled

int

r

document

EvinceDocument.Document

r

error

GLib.Error

r

finished

int

r

idle_cancelled_id

int

r

idle_finished_id

int

r

parent

GObject.Object

r

run_mode

EvinceView.JobRunMode

r

Class Details

class EvinceView.Job(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

EvinceView.JobClass

classmethod scheduler_get_running_thread_job()
Returns:

an EvinceView.Job

Return type:

EvinceView.Job

classmethod scheduler_wait()

Synchronously waits until all jobs are done. Remember that main loop is not running already probably.

cancel()
failed(error)
Parameters:

error (GLib.Error) – a GLib.Error

get_run_mode()
Return type:

EvinceView.JobRunMode

is_failed()
Return type:

bool

is_finished()
Return type:

bool

run()
Return type:

bool

scheduler_push_job(priority)
Parameters:

priority (EvinceView.JobPriority) –

scheduler_update_job(priority)
Parameters:

priority (EvinceView.JobPriority) –

set_run_mode(run_mode)
Parameters:

run_mode (EvinceView.JobRunMode) –

succeeded()
do_cancelled() virtual
do_finished() virtual
do_run() virtual
Return type:

bool

Signal Details

EvinceView.Job.signals.cancelled(job)
Signal Name:

cancelled

Flags:

RUN_LAST

Parameters:

job (EvinceView.Job) – The object which received the signal

EvinceView.Job.signals.finished(job)
Signal Name:

finished

Flags:

RUN_FIRST

Parameters:

job (EvinceView.Job) – The object which received the signal