aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLittleboy2011-08-06 15:25:32 -0400
committerLittleboy2011-08-06 15:25:32 -0400
commit539bf5317feadcf34578dee953dce89ef4bdef4a (patch)
tree869e891b5df28219de82711c8dd20a88661b2ade
parentbcd07d35bb0c5307dfb0864afa3586deba96132c (diff)
downloadscummvm-rg350-539bf5317feadcf34578dee953dce89ef4bdef4a.tar.gz
scummvm-rg350-539bf5317feadcf34578dee953dce89ef4bdef4a.tar.bz2
scummvm-rg350-539bf5317feadcf34578dee953dce89ef4bdef4a.zip
COMMON: Add notifyError() and clearError() to the TaskbarManager, used to notify the user that an error happened through the taskbar icon
-rw-r--r--common/taskbar.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/taskbar.h b/common/taskbar.h
index 36d5e33820..ba99d4e487 100644
--- a/common/taskbar.h
+++ b/common/taskbar.h
@@ -122,6 +122,18 @@ public:
*/
virtual void addRecent(const String &name, const String &description) {}
+ /**
+ * Notifies the user an error occured through the taskbar icon
+ *
+ * This will for example show the taskbar icon as red (using progress of 100% and an error state)
+ * on Windows, and set the launcher icon in the urgent state on Unity
+ */
+ virtual void notifyError() {}
+
+ /**
+ * Clears the error notification
+ */
+ virtual void clearError() {}
};
} // End of namespace Common