aboutsummaryrefslogtreecommitdiff
path: root/backends/taskbar/win32
diff options
context:
space:
mode:
authorLittleboy2011-08-06 15:26:49 -0400
committerLittleboy2011-08-06 15:26:49 -0400
commitf702cb5695dcec2e14b4ef7f18971cc0b12ebe0e (patch)
tree783925bbfad987eb2474e58246c8ed82ef976d77 /backends/taskbar/win32
parent539bf5317feadcf34578dee953dce89ef4bdef4a (diff)
downloadscummvm-rg350-f702cb5695dcec2e14b4ef7f18971cc0b12ebe0e.tar.gz
scummvm-rg350-f702cb5695dcec2e14b4ef7f18971cc0b12ebe0e.tar.bz2
scummvm-rg350-f702cb5695dcec2e14b4ef7f18971cc0b12ebe0e.zip
BACKENDS: Implement notifyError() and clearError() for Win32TaskbarManager
Diffstat (limited to 'backends/taskbar/win32')
-rw-r--r--backends/taskbar/win32/win32-taskbar.cpp9
-rw-r--r--backends/taskbar/win32/win32-taskbar.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/backends/taskbar/win32/win32-taskbar.cpp b/backends/taskbar/win32/win32-taskbar.cpp
index b1afdf6dee..046ddb1cd0 100644
--- a/backends/taskbar/win32/win32-taskbar.cpp
+++ b/backends/taskbar/win32/win32-taskbar.cpp
@@ -317,6 +317,15 @@ void Win32TaskbarManager::addRecent(const Common::String &name, const Common::St
}
}
+void Win32TaskbarManager::notifyError() {
+ setProgressState(Common::TaskbarManager::kTaskbarError);
+ setProgressValue(1, 1);
+}
+
+void Win32TaskbarManager::clearError() {
+ setProgressState(kTaskbarNoProgress);
+}
+
Common::String Win32TaskbarManager::getIconPath(Common::String target) {
// We first try to look for a iconspath configuration variable then
// fallback to the extra path
diff --git a/backends/taskbar/win32/win32-taskbar.h b/backends/taskbar/win32/win32-taskbar.h
index d005b0fea8..36415c1c57 100644
--- a/backends/taskbar/win32/win32-taskbar.h
+++ b/backends/taskbar/win32/win32-taskbar.h
@@ -40,6 +40,8 @@ public:
virtual void setProgressState(TaskbarProgressState state);
virtual void setCount(int count);
virtual void addRecent(const Common::String &name, const Common::String &description);
+ virtual void notifyError();
+ virtual void clearError();
private:
ITaskbarList3 *_taskbar;