#include "ktypes.h"
Typedefs | |
| typedef _KProgress | KProgress |
| Task. | |
Enumerations | |
| enum | EProgress { IKX_PROGRESS_WAIT_BEGIN = 0, IKX_PROGRESS_PAUSE = 1, IKX_PROGRESS_RUNNING = 2, IKX_PROGRESS_CANCEL = -1, IKX_PROGRESS_ERROR = -2, IKX_PROGRESS_SUCCESS = 3 } |
| Execution states of a task. More... | |
Functions | |
| KTL_API KProgress * | KProgress_new () |
| Allocates a KProgress structure. | |
| KTL_API void | KProgress_init (KProgress *pProg) |
| Initializes a KProgress structure. | |
| KTL_API void | KProgress_delete (KProgress **ppProg) |
| Deletes a KProgress structure. | |
| KTL_API void | KProgress_setDProg (KProgress *prg, KDouble progress) |
| Sets the progression with a double value between 0 and 1. | |
| KTL_API void | KProgress_setIProg (KProgress *prg, KInt64 progress) |
| Sets the progression with a integer value. | |
| KTL_API void | KProgress_setITotal (KProgress *prg, KInt64 total) |
| Sets the maximum integer value of the progression. | |
| KTL_API void | KProgress_setMsg (KProgress *prg, KString msg) |
| Sets a message. | |
| KTL_API void | KProgress_setState (KProgress *prg, EProgress state) |
| Defines the execution state of a task. | |
| KTL_API KDouble | KProgress_getProg (KProgress *prg) |
| Returns the progression in a double value between 0 and 1. | |
| KTL_API KString | KProgress_getMsg (KProgress *prg) |
| Returns the last message. | |
| KTL_API EProgress | KProgress_getState (KProgress *prg) |
| Gets the execution state of a task. | |
|
|
Execution states of a task.
|
|
|
Deletes a KProgress structure.
|
|
|
Returns the last message.
|
|
|
Returns the progression in a double value between 0 and 1.
|
|
|
Gets the execution state of a task.
|
|
|
Initializes a KProgress structure.
|
|
|
Allocates a KProgress structure.
|
|
||||||||||||
|
Sets the progression with a double value between 0 and 1.
|
|
||||||||||||
|
Sets the progression with a integer value.
|
|
||||||||||||
|
Sets the maximum integer value of the progression.
|
|
||||||||||||
|
Sets a message.
|
|
||||||||||||
|
Defines the execution state of a task.
|
1.3.8