All Frameworks Class Hierarchy This Framework Previous Next Indexes
ApplicationFrame Class CATTaskController
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---CATTaskController
Usage: you must use this class as is. You should never derive it.
public class CATTaskController
Class to launch an interruptible task.
Role:This class enables the launching of a task associated with
a dialog box in order to indicate the progression of the process. To do this,
create an instance of
this class and call the Schedule method.
- See also:
- CATIProgressTask, CATIProgressTaskUI
Constructor and Destructor Index
- o
CATTaskController()
- Constructs a default task controller.
- o
~CATTaskController()
-
Method Index
- o
Schedule(CATIProgressTask*,CATBoolean,void*,CATBoolean,CATBoolean,double,CATAfrProgressTaskInterruptMode)
- Launches the task.
Enumerated Type Index
- o
CATAfrProgressTaskInterruptMode
- Interrupt mode.
Constructor and Destructor
o CATTaskController
public CATTaskController( | ) |
-
Constructs a default task controller.
o ~CATTaskController
public virtual ~CATTaskController( | ) |
-
Methods
o Schedule
-
Launches the task.
- Parameters:
-
- iTask
- Interface pointer on the object which implements
CATIProgressTask.
- iInterruptible
- If the task is interruptible (TRUE) an interrupt button is displayed in the dialog box;
so that
the end user can interrupt the task, otherwise the value is FALSE.
- iUserData
- This data is the input argument of the
CATIProgressTask.PerformTask method.
- iAutoFlushUI
- If the boolean is TRUE, the dialog box will be automatically updated after each
CATIProgressTaskUI.SetProgress call. Otherwise, you should use the
CATIProgressTaskUI.Flush to make manually the modification.
- HideProgressBar
- If the boolean is TRUE the user gets an interrupt panel without progress bar.
- iPnlHiddenTime
- Time during which the task panel stays hidden.
- iInterruptMode
- Behavior of the interrupt button. Does not take sense if iInterruptible is set to FALSE.
Enumerated Types
o CATAfrProgressTaskInterruptMode
-
enum CATAfrProgressTaskInterruptMode {
CancelProgressTask,
StopProgressTask
}
Interrupt mode.
If the task is interruptible (iInterruptible argument of Schedule = TRUE),
this enum lists the possible values of the interrupt button of the progress bar dialog.
CancelProgressTask will display a Cancel button. Use this value when you want the task to be undone if the user interrupts it.
StopProgressTask will display a Stop button. Use this value when you want the task to be stopped
and the partial result to be kept if the user interrupts it.
This object is included in the file: CATTaskController.h
If needed, your Imakefile.mk should include the module: CATApplicationFrame