summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordknn <yoann.blein@free.fr>2012-08-29 11:14:36 (GMT)
committerdknn <yoann.blein@free.fr>2012-09-22 09:34:49 (GMT)
commit56b5b129c2fbea3828faaf0cdf882534c2433eff (patch)
tree14022983fdcd54c7bcc61f77f12dbe1d7e13f973 /Swiften/ScreenSharing/UnitTest/DummyScreenSharingManager.h
parent6247ed394302ff2cf1f33a71df808bebf7241242 (diff)
downloadswift-contrib-56b5b129c2fbea3828faaf0cdf882534c2433eff.zip
swift-contrib-56b5b129c2fbea3828faaf0cdf882534c2433eff.tar.bz2
Better error resilience
Diffstat (limited to 'Swiften/ScreenSharing/UnitTest/DummyScreenSharingManager.h')
-rw-r--r--Swiften/ScreenSharing/UnitTest/DummyScreenSharingManager.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/Swiften/ScreenSharing/UnitTest/DummyScreenSharingManager.h b/Swiften/ScreenSharing/UnitTest/DummyScreenSharingManager.h
new file mode 100644
index 0000000..f8c963c
--- /dev/null
+++ b/Swiften/ScreenSharing/UnitTest/DummyScreenSharingManager.h
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2012 Yoann Blein
+ * Licensed under the simplified BSD license.
+ * See Documentation/Licenses/BSD-simplified.txt for more information.
+ */
+
+#pragma once
+
+#include <Swiften/ScreenSharing/ScreenSharingManager.h>
+
+namespace Swift {
+ class DummyScreenSharingManager : public ScreenSharingManager {
+ public:
+ DummyScreenSharingManager() : ScreenSharingManager() {}
+
+ virtual boost::shared_ptr<OutgoingScreenSharing> createOutgoingScreenSharing(const JID& to) {
+ return boost::shared_ptr<OutgoingScreenSharing>();
+ }
+
+ virtual void handleInputEvent(const JID& from, boost::shared_ptr<InputEventPayload> payload) {}
+ };
+}