diff options
| author | Littleboy | 2011-04-04 12:49:49 -0400 |
|---|---|---|
| committer | Julien | 2011-06-16 14:23:12 -0400 |
| commit | e1dc9cdc0b89609753d3558f9603bef1cc12f1d8 (patch) | |
| tree | 58802cb0ee464fdd4e63787162ba5ef4f963ee29 /common | |
| parent | 6c14d8a95052b68c9f076d32e520c6befac3d959 (diff) | |
| download | scummvm-rg350-e1dc9cdc0b89609753d3558f9603bef1cc12f1d8.tar.gz scummvm-rg350-e1dc9cdc0b89609753d3558f9603bef1cc12f1d8.tar.bz2 scummvm-rg350-e1dc9cdc0b89609753d3558f9603bef1cc12f1d8.zip | |
BACKENDS: Add support for count status to TaskbarManager
- Show the number of found games when using the massadd dialog
Diffstat (limited to 'common')
| -rw-r--r-- | common/taskbar.h | 74 |
1 files changed, 42 insertions, 32 deletions
diff --git a/common/taskbar.h b/common/taskbar.h index ea1d218724..2219e6e04f 100644 --- a/common/taskbar.h +++ b/common/taskbar.h @@ -32,7 +32,7 @@ namespace Common { class TaskbarManager { public: /** - * Values representing the taskbar progress state + * Values representing the taskbar progress state */ enum TaskbarProgressState { kTaskbarNoProgress = 0, @@ -46,51 +46,61 @@ public: virtual ~TaskbarManager() {} /** - * Sets an overlay icon on the taskbar icon. + * Sets an overlay icon on the taskbar icon * * When an empty name is given, no icon is shown * and the current overlay icon (if any) is removed * - * @param name Path to the icon - * @param description The description + * @param name Path to the icon + * @param description The description * * @note on Windows, the icon should be an ICO file */ - virtual void setOverlayIcon(const String &name, const String &description) {} + virtual void setOverlayIcon(const String &name, const String &description) {} - /** - * Sets a progress value on the taskbar icon - * - * @param completed The current progress value. - * @param total The maximum progress value. - */ - virtual void setProgressValue(int completed, int total) {} + /** + * Sets a progress value on the taskbar icon + * + * @param completed The current progress value. + * @param total The maximum progress value. + */ + virtual void setProgressValue(int completed, int total) {} - /** - * Sets the progress state on the taskbar icon - * - * State can be any of the following: - * - NoProgress: disable display of progress state + /** + * Sets the progress state on the taskbar icon + * + * State can be any of the following: + * - NoProgress: disable display of progress state * - Indeterminate * - Normal * - Error * - Paused - * - * @param state The progress state - */ - virtual void setProgressState(TaskbarProgressState state) {} + * + * @param state The progress state + */ + virtual void setProgressState(TaskbarProgressState state) {} + + /** + * Sets the count number associated with the icon as an overlay + * + * @param count The count + * + * @note Setting a count of 0 will hide the count + */ + virtual void setCount(int count) {} + + /** + * Adds an engine to the recent items list + * + * Path is automatically set to the current executable path, + * an icon name is generated (with fallback to default icon) + * and the command line is set to start the engine on click. + * + * @param name The target name. + * @param description The description. + */ + virtual void addRecent(const String &name, const String &description) {} - /** - * Adds an engine to the recent items list - * - * Path is automatically set to the current executable path, - * an icon name is generated (with fallback to default icon) - * and the command line is set to start the engine on click. - * - * @param name The target name. - * @param description The description. - */ - virtual void addRecent(const String &name, const String &description) {} }; } // End of namespace Common |
