#include <qbwcb_progress.h>
Inheritance diagram for QBProgressCallback:
Definition at line 23 of file qbwcb_progress.h.
Public Member Functions | |
QBProgressCallback (const char *id, QBProgress::ProgressType pt) | |
virtual | ~QBProgressCallback () |
virtual QBWaitCallback * | instantiate () |
virtual GWEN_WAITCALLBACK_RESULT | checkAbort (unsigned int level) |
virtual void | log (unsigned int level, GWEN_LOGGER_LEVEL loglevel, const char *s) |
QBProgressCallback::QBProgressCallback | ( | const char * | id, | |
QBProgress::ProgressType | pt | |||
) |
virtual QBProgressCallback::~QBProgressCallback | ( | ) | [virtual] |
virtual GWEN_WAITCALLBACK_RESULT QBProgressCallback::checkAbort | ( | unsigned int | level | ) | [virtual] |
Checks whether the user wants to abort the current action. This function is optional.
level | If the context given to GWEN_WaitCallback_Enter did not exist then a new default context has been created which uses the functions (like this one) of the at that time active context. For such an artificially derived context the level represents the current level below the context given as parameter ctx. So if the level is 0 then the given context actually is the currently active one. |
Reimplemented from QBWaitCallback.
virtual QBWaitCallback* QBProgressCallback::instantiate | ( | ) | [virtual] |
Uses this callback as a template to instantiate a new one. For GUI callbacks this function can be used to open a window (such as progress dialogs etc).
Reimplemented from QBWaitCallback.
Reimplemented in QBFastCallback, and QBSimpleCallback.
virtual void QBProgressCallback::log | ( | unsigned int | level, | |
GWEN_LOGGER_LEVEL | loglevel, | |||
const char * | s | |||
) | [virtual] |
Logs a message to this callback. A GUI program could use this function to write the given string to an open window. This function is optional.
level | see GWEN_WAITCALLBACK_CHECKABORTFN | |
loglevel | a higher level results in a more detailed output. Loglevels are defined from 0 (the most important level) and 10 (the least important level). | |
s | log string |
Reimplemented from QBWaitCallback.