PapersView.Job¶
- Subclasses:
 PapersView.JobAnnots,PapersView.JobAttachments,PapersView.JobExport,PapersView.JobFind,PapersView.JobFonts,PapersView.JobLayers,PapersView.JobLinks,PapersView.JobLoad,PapersView.JobPageData,PapersView.JobPrint,PapersView.JobRenderTexture,PapersView.JobSave,PapersView.JobSignatures,PapersView.JobThumbnailTexture
Methods¶
- Inherited:
 - Structs:
 
class  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
  | 
|
  | 
|
  | 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
w/co  | 
The document  | 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent_instance  | 
r  | 
Class Details¶
- class PapersView.Job(**kwargs)¶
 - Bases:
 - Abstract:
 Yes
- Structure:
 
- classmethod scheduler_wait()¶
 Synchronously waits until all jobs are done. Remember that main loop is not running already probably.
- cancel()¶
 Cancels the specified job if it has not already been cancelled.
This function updates the job’s state to indicate it has been cancelled, cancels any associated cancellable object, and emits a CANCELLED signal. It does nothing if the job is already cancelled or finished.
This function should not be called from a thread.
- failed(error)¶
 - Parameters:
 error (
GLib.Error) – AGLib.Errorcontaining details about the failure.
Marks the specified job as failed and sets the error associated with the failure.
This function updates the job’s state to indicate it has failed, stores the error, and emits a finished signal. It does nothing if the job is already finished or marked as failed.
- get_cancellable()¶
 - Returns:
 The
Gio.Cancellableobject of the job, orNoneif the job is invalid or does not have an associated cancellable.- Return type:
 
Retrieves the
Gio.Cancellableobject associated with the specified job.
- get_document()¶
 - Returns:
 The
PapersDocument.Documentobject associated with the job, orNoneif the job is invalid or does not have an associated document.- Return type:
 
Retrieves the
PapersDocument.Documentassociated with the specified job.
- is_finished()¶
 - 
Checks if the specified job has finished execution.
 
- is_succeeded()¶
 - Raises:
 - Returns:
 - Return type:
 
Determines the finish status of the specified job.
- reset()¶
 Resets the state of the specified job to its initial state.
This function clears any error, marks the job as not finished, and sets the job’s failure status to
False, effectively resetting its progress.
- run()¶
 - 
Starts or executes the specified job.
 
- scheduler_push_job(priority)¶
 - Parameters:
 priority (
PapersView.JobPriority) –
- scheduler_update_job(priority)¶
 - Parameters:
 priority (
PapersView.JobPriority) –
- succeeded()¶
 Marks the specified job as succeeded.
This function should be called when the job finishes successfully.
- do_cancelled() virtual¶
 
- do_finished() virtual¶
 
Signal Details¶
- PapersView.Job.signals.cancelled(job)¶
 - Signal Name:
 cancelled- Flags:
 - Parameters:
 job (
PapersView.Job) – The object which received the signal
- PapersView.Job.signals.finished(job)¶
 - Signal Name:
 finished- Flags:
 - Parameters:
 job (
PapersView.Job) – The object which received the signal
Property Details¶
- PapersView.Job.props.document¶
 - Name:
 document- Type:
 - Default Value:
 - Flags:
 
The document