summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2013-11-16 22:37:05 (GMT)
committerSwift Review <review@swift.im>2013-11-18 17:57:00 (GMT)
commitec57e1f727d3b8d64ca5bf60f2bd277cd0f23f21 (patch)
tree3ae5f19a032358b55153da5ccbfcfdff48df8554 /Swift/Controllers/Storages
parent3f8ff1c0e154dcb9959906e6865053dbe975892f (diff)
downloadswift-ec57e1f727d3b8d64ca5bf60f2bd277cd0f23f21.zip
swift-ec57e1f727d3b8d64ca5bf60f2bd277cd0f23f21.tar.bz2
Update dummy implementations to current API
Change-Id: Iff64972fc9127851d4cc81e1177d78132f27ad3b
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_;
};
}