summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/Controllers/Storages')
-rw-r--r--Swift/Controllers/Storages/MemoryStoragesFactory.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/Swift/Controllers/Storages/MemoryStoragesFactory.h b/Swift/Controllers/Storages/MemoryStoragesFactory.h
index 0dea349..e18f9fc 100644
--- a/Swift/Controllers/Storages/MemoryStoragesFactory.h
+++ b/Swift/Controllers/Storages/MemoryStoragesFactory.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010 Remko Tronçon
+ * Copyright (c) 2010-2013 Remko Tronçon
* Licensed under the GNU General Public License v3.
* See Documentation/Licenses/GPLv3.txt for more information.
*/
@@ -11,13 +11,16 @@
namespace Swift {
class JID;
+ class CryptoProvider;
class MemoryStoragesFactory : public StoragesFactory {
public:
- MemoryStoragesFactory() {}
+ MemoryStoragesFactory(CryptoProvider* cryptoProvider) : cryptoProvider_(cryptoProvider) {}
virtual Storages* createStorages(const JID& profile) const {
- return new MemoryStorages();
+ return new MemoryStorages(cryptoProvider_);
}
+ private:
+ CryptoProvider* cryptoProvider_;
};
}