A class that will be notified about sample preloading changes. More...
Public Member Functions | |
virtual void | preloadStateChanged (bool isPreloading)=0 |
This gets called whenever the preload state changes. More... | |
Protected Member Functions | |
String | getCurrentErrorMessage () const |
Returns the preload message. More... | |
A class that will be notified about sample preloading changes.
This can be used to implement loading bars / progress labels when the samples are preloaded. In order to use this, just create one of these, supply the SampleManager instance of your MainController and it will automatically register and deregister as callbacks and will call the preloadStateChanged(bool isPreloading).
|
inlineprotected |
Returns the preload message.
|
pure virtual |
This gets called whenever the preload state changes.
the isPreloading flag indicates whether the preloading was initiated or completed. Normally, you would start or stop a timer which regularly checks the sample progress (with SampleManager::getPreloadProgress()).