Background task and progress class.
BackgroundTask
Gets ID of the task
Leading text to appear before the task's main text.
Type of task progress
Whether this task has been already terminated
Text of the progress
Current position of progress
Terminate background task
Background task and progress class.
BackgroundTask