The following members of QML type Job are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Signals
- jobStatusChanged()
(obsolete)
- messagesChanged()
(obsolete)
Methods
- bool cancel()
(obsolete)
Signal Documentation
This signal is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Emitted when the jobStatus property of this Job changes.
This property is deprecated in 100.14. Use the signal statusChanged instead.
Note: The corresponding handler is onJobStatusChanged
.
This signal is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Emitted when the messages property of this Job changes.
This property is deprecated in 100.14. Use the signal messageAdded instead.
Note: The corresponding handler is onMessagesChanged
.
Method Documentation
This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Cancel the job.
The job is canceled and goes into a failure status Enums.JobStatusFailed. For jobs running on a server, a cancel request will be sent for the associated serverJobId. You should always cancel unneeded jobs (for example when exiting your app) to avoid placing unnecessary load on the server. For example, server side jobs include:
In addition, the GenerateOfflineMapJob is composed of several server-side jobs, depending on the layers in your Map. Canceling this high-level job will also send a cancel request to the underlying server jobs.
Returns true
if the job was canceled, false
if the job is already succeeded or an error occurred.
Note: This function is deprecated in 100.15.1. Use Job::cancelAsync instead.