summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/Controllers/MemoryStoragesFactory.h')
-rw-r--r--Swift/Controllers/MemoryStoragesFactory.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/Swift/Controllers/MemoryStoragesFactory.h b/Swift/Controllers/MemoryStoragesFactory.h
new file mode 100644
index 0000000..8408e10
--- /dev/null
+++ b/Swift/Controllers/MemoryStoragesFactory.h
@@ -0,0 +1,21 @@
+/*
+ * 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/StoragesFactory.h"
+#include "Swiften/Client/MemoryStorages.h"
+
+namespace Swift {
+ class MemoryStoragesFactory : public StoragesFactory {
+ public:
+ MemoryStoragesFactory() {}
+
+ virtual Storages* createStorages(const JID& profile) const {
+ return new MemoryStorages();
+ }
+ };
+}