ENH: Add a weak pointer to self in PACSJob, so that it can emit a PACSJobCancelled() signal from aboutToBeDequeued() passing a shared pointer as the parameter, instead of a regular pointer. With this hack we can remove some duplicated code introduced during the initial port to KF5 ThreadWeaver.
This pointer shall be removed in a future redesign of the PACS jobs architecture.
ENH: Emit the file and series progress signals from send and retrieve PACS jobs also with a shared pointer to the job as a parameter, like it was done with the PACSJobCancelled signal in the previous commit.
ENH: Use the casted shared pointers directly when possible instead of extracting the naked pointer from them.
ENH: Use QObject casts instead of dynamic casts when possible for PACS jobs conversions.