Tests: add dialogue_merging_test (requires some data files)

This commit is contained in:
scrawl 2015-11-13 23:12:07 +01:00
parent d0d8c2eded
commit 38c155c579
3 changed files with 183 additions and 7 deletions

View file

@ -6,18 +6,18 @@ namespace Loading
class Listener
{
public:
virtual void setLabel (const std::string& label) = 0;
virtual void setLabel (const std::string& label) {}
// Use ScopedLoad instead of using these directly
virtual void loadingOn() = 0;
virtual void loadingOff() = 0;
virtual void loadingOn() {}
virtual void loadingOff() {}
/// Indicate that some progress has been made, without specifying how much
virtual void indicateProgress () = 0;
virtual void indicateProgress () {}
virtual void setProgressRange (size_t range) = 0;
virtual void setProgress (size_t value) = 0;
virtual void increaseProgress (size_t increase = 1) = 0;
virtual void setProgressRange (size_t range) {}
virtual void setProgress (size_t value) {}
virtual void increaseProgress (size_t increase = 1) {}
};
// Used for stopping a loading sequence when the object goes out of scope