Provides status information for an object INCOMPLETE.
More...
#include <gostatusobject.h>
Provides status information for an object INCOMPLETE.
- Todo:
- Fix this class when there is a use for it. It is not complete and tested.
- Author
- Christian Gosch
- Date
- 21.9.2001
◆ getProgress()
goFloat goStatusObject::getProgress |
( |
| ) |
|
|
inline |
- Returns
- A value representing the progress in some work being done by the object. This will usually be something between 0 and 1, but can generally be whatever value is allowed by goFloat.
◆ isBusy()
bool goStatusObject::isBusy |
( |
| ) |
|
|
inline |
- Returns
- True if this object is busy, false otherwise.
◆ setBusy()
void goStatusObject::setBusy |
( |
bool |
b | ) |
|
|
inlineprotected |
Sets the busy flag.
- Parameters
-
◆ setProgress()
void goStatusObject::setProgress |
( |
goFloat |
p | ) |
|
|
inlineprotected |
Sets the progress value.
- Parameters
-
p | Progress value, should usually be between 0 and 1, but there is no general restriction. |
◆ waitForProgress()
goFloat goStatusObject::waitForProgress |
( |
| ) |
|
|
inline |
Uses a semaphore to suspend the calling thread until the mutex is released.
- Returns
- The current progress.
The documentation for this class was generated from the following files:
- gostatusobject.h
- gostatusobject.cc