Uranium
Application Framework
|
A Job subclass that performs file loading. More...
Public Member Functions | |
__init__ (self, filename, handler=None) | |
getFileName (self) | |
run (self) | |
Perform the actual task of this job. | |
![]() | |
__init__ (self) | |
run (self) | |
Perform the actual task of this job. | |
getResult (self) | |
Get the result of the job. | |
setResult (self, any result) | |
Set the result of this job. | |
setError (self, Exception error) | |
Set an exception that was thrown while the job was being executed. | |
start (self) | |
Start the job. | |
cancel (self) | |
Cancel the job. | |
bool | isRunning (self) |
Check whether the job is currently running. | |
bool | isFinished (self) |
Check whether the job has finished processing. | |
bool | hasError (self) |
Check whether the Job has encountered an error during execution. | |
Exception | getError (self) |
Get the error that was encountered during execution. | |
Protected Attributes | |
_filename | |
_handler | |
_loading_message | |
![]() | |
_running | |
_finished | |
_result | |
_error | |
Additional Inherited Members | |
![]() | |
yieldThread () | |
Utility function that allows us to yield thread processing. | |
![]() | |
finished = Signal() | |
Emitted when the job has finished processing. | |
progress = Signal() | |
Emitted when the job processing has progressed. | |
A Job subclass that performs file loading.
UM.FileHandler.ReadFileJob.ReadFileJob.__init__ | ( | self, | |
filename, | |||
handler = None |
|||
) |
Reimplemented from UM.Job.Job.
UM.FileHandler.ReadFileJob.ReadFileJob.run | ( | self | ) |
Perform the actual task of this job.
Should be reimplemented by subclasses.
NotImplementedError |
Reimplemented from UM.Job.Job.
Reimplemented in UM.Mesh.ReadMeshJob.ReadMeshJob.