diff options
| author | Littleboy | 2011-03-31 06:35:16 -0400 | 
|---|---|---|
| committer | Julien | 2011-06-16 10:35:24 -0400 | 
| commit | cd7822a29f22fd290a86281d65b965d32f667a49 (patch) | |
| tree | 7ecccd3820e09d5e5a2dbea00369c411965c2b8a | |
| parent | 0fd56852b65aed463d79cddc9545511107296809 (diff) | |
| download | scummvm-rg350-cd7822a29f22fd290a86281d65b965d32f667a49.tar.gz scummvm-rg350-cd7822a29f22fd290a86281d65b965d32f667a49.tar.bz2 scummvm-rg350-cd7822a29f22fd290a86281d65b965d32f667a49.zip | |
BACKENDS: Add engine-level accessor for TaskbarManager
| -rw-r--r-- | backends/modular-backend.cpp | 5 | ||||
| -rw-r--r-- | backends/modular-backend.h | 1 | ||||
| -rw-r--r-- | common/system.h | 9 | 
3 files changed, 15 insertions, 0 deletions
| diff --git a/backends/modular-backend.cpp b/backends/modular-backend.cpp index 70c352303c..a2710bc1cf 100644 --- a/backends/modular-backend.cpp +++ b/backends/modular-backend.cpp @@ -238,3 +238,8 @@ void ModularBackend::displayMessageOnOSD(const char *msg) {  void ModularBackend::quit() {  	exit(0);  } + +Common::TaskbarManager *ModularBackend::getTaskbarManager() { +	assert(_taskbarManager); +	return _taskbarManager; +} diff --git a/backends/modular-backend.h b/backends/modular-backend.h index 124a6ad807..6b5bfff989 100644 --- a/backends/modular-backend.h +++ b/backends/modular-backend.h @@ -134,6 +134,7 @@ public:  	//@{  	virtual void quit(); +	virtual TaskbarManager *getTaskbarManager();  	virtual void displayMessageOnOSD(const char *msg);  	//@} diff --git a/common/system.h b/common/system.h index d26bc593aa..f556fa22f8 100644 --- a/common/system.h +++ b/common/system.h @@ -42,6 +42,7 @@ struct Rect;  class SaveFileManager;  class SearchSet;  class String; +class TaskbarManager;  class TimerManager;  class SeekableReadStream;  class WriteStream; @@ -1048,6 +1049,14 @@ public:  	}  	/** +	 * Returns the TaskbarManager, used to handle progress bars, +	 * icon overlay, tasks and recent items list on the taskbar. +	 * +	 * @return the TaskbarManager for the current architecture +	 */ +	virtual Common::TaskbarManager *getTaskbarManager() = 0; + +	/**  	 * Returns the FilesystemFactory object, depending on the current architecture.  	 *  	 * @return the FSNode factory for the current architecture | 
