summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Queries/IQHandler.cpp')
-rw-r--r--Swiften/Queries/IQHandler.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Swiften/Queries/IQHandler.cpp b/Swiften/Queries/IQHandler.cpp
new file mode 100644
index 0000000..b5e7e49
--- /dev/null
+++ b/Swiften/Queries/IQHandler.cpp
@@ -0,0 +1,14 @@
+#include "Swiften/Queries/IQHandler.h"
+#include "Swiften/Queries/IQRouter.h"
+
+namespace Swift {
+
+IQHandler::IQHandler(IQRouter* router) : router_(router) {
+ router_->addHandler(this);
+}
+
+IQHandler::~IQHandler() {
+ router_->removeHandler(this);
+}
+
+}