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