summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-11-01 12:20:48 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-11-01 12:20:48 (GMT)
commit2cff9c80434511013d56e2ee1710128edcd9de48 (patch)
tree074e0619f169d6fa9440fa889fb1b8c93e67cb35
parent6c355243a8617b29d391a9a000cdb11464bd3f60 (diff)
downloadswift-contrib-2cff9c80434511013d56e2ee1710128edcd9de48.zip
swift-contrib-2cff9c80434511013d56e2ee1710128edcd9de48.tar.bz2
Added dummy sound player & system tray.
-rw-r--r--Swift/Controllers/DummySoundPlayer.h16
-rw-r--r--Swift/Controllers/DummySystemTray.h17
2 files changed, 33 insertions, 0 deletions
diff --git a/Swift/Controllers/DummySoundPlayer.h b/Swift/Controllers/DummySoundPlayer.h
new file mode 100644
index 0000000..36dcb28
--- /dev/null
+++ b/Swift/Controllers/DummySoundPlayer.h
@@ -0,0 +1,16 @@
+/*
+ * Copyright (c) 2010 Remko Tronçon
+ * Licensed under the GNU General Public License v3.
+ * See Documentation/Licenses/GPLv3.txt for more information.
+ */
+
+#pragma once
+
+#include "Swift/Controllers/SoundPlayer.h"
+
+namespace Swift {
+ class DummySoundPlayer : public SoundPlayer {
+ public:
+ void playSound(SoundEffect sound) {};
+ };
+}
diff --git a/Swift/Controllers/DummySystemTray.h b/Swift/Controllers/DummySystemTray.h
new file mode 100644
index 0000000..1683b55
--- /dev/null
+++ b/Swift/Controllers/DummySystemTray.h
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2010 Remko Tronçon
+ * Licensed under the GNU General Public License v3.
+ * See Documentation/Licenses/GPLv3.txt for more information.
+ */
+
+#pragma once
+
+#include "Swift/Controllers/SystemTray.h"
+
+namespace Swift {
+ class DummySystemTray : public SystemTray {
+ public:
+ void setUnreadMessages(bool some) {};
+ void setStatusType(StatusShow::Type type) {};
+ };
+}