Detailed Description
Class for progress reporting.
Definition at line 57 of file kfbxprogress.h.
#include <kfbxprogress.h>
List of all
members.
Constructor & Destructor Documentation
Member Function Documentation
void SetTotal |
( |
float |
pTotal |
) |
|
Set the total amount of workload.
- Parameters:
-
pTotal |
Total amount of workload |
void Add |
( |
float |
pDetaWorkload, |
|
|
const KString & |
pStatus |
|
) |
|
|
Report recent finished workload.
- Parameters:
-
pDetaWorkload |
Amount of workload |
pStatus |
Current progress status |
Reset the progress status.
void Complete |
( |
const KString & |
pStatus |
) |
|
Set the progress status to completed.
- Parameters:
-
pStatus |
Current progress status |
float GetProgress |
( |
KString & |
pStatus |
) |
const |
Retrieve the progress status.
- Parameters:
-
pStatus |
Current progress status |
- Returns:
- Percentage
Register a callback function for progress reporting in single
thread mode.
- Parameters:
-
pCallback |
Pointer of the callback function |
void Cancel |
( |
bool |
pIsCanceled |
) |
[inline] |
Set whether this progress was canceled by users.
- Parameters:
-
pIsCanceled |
Set to true if canceled, false
otherwise. |
Definition at line 96 of file kfbxprogress.h.
{
mCanceled = pIsCanceled;
}
bool IsCanceled |
( |
|
) |
const [inline] |
Query whether user canceled this progress.
Definition at line 102 of file kfbxprogress.h.
The documentation for this class was generated from the following
file:
KFbxProgress KFbxProgress KFbxProgress
KFbxProgress KFbxProgress KFbxProgress KFbxProgress KFbxProgress
KFbxProgress KFbxProgress
KFbxProgress KFbxProgress KFbxProgress
KFbxProgress KFbxProgress KFbxProgress KFbxProgress KFbxProgress
KFbxProgress KFbxProgress