#include <dbuserinterface.h>
Public Types | |
typedef void (* | NotifyFunction )(void) |
Static Public Methods | |
void | SetWait (void) |
'We are going to do something that may take a while'. | |
void | ClearWait (void) |
'We have now finished doing our long thing'. | |
NotifyFunction | SetSetWaitFunction (NotifyFunction theNewFunction) |
Set the wait function. More... | |
NotifyFunction | SetClearWaitFunction (NotifyFunction theNewFunction) |
Set the clear wait function. More... | |
Static Protected Attributes | |
NotifyFunction | itsSetWaitFunction |
NotifyFunction | itsClearWaitFunction |
This is the beginnings of a class to handle user interface things.
Eg under a GUI, you may want to show an hourglass when doing a lot of database activity. DbQuery knows about DbUserInterface and calls SetWait() and ClearWait(), so if you register some functions that create and destroy an hourglass you will get them at sensible times.
|
Set the clear wait function.
|
|
Set the wait function.
|