From 2ec3dbaf8d73baae8827863c5ff1f0b6f9c726c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Wed, 25 Aug 2010 15:32:37 +0200 Subject: Added VCardMemoryStorageFactory. diff --git a/Swiften/VCards/VCardMemoryStorageFactory.h b/Swiften/VCards/VCardMemoryStorageFactory.h new file mode 100644 index 0000000..4b4d2c0 --- /dev/null +++ b/Swiften/VCards/VCardMemoryStorageFactory.h @@ -0,0 +1,24 @@ +/* + * 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 + +#include "Swiften/VCards/VCardStorageFactory.h" +#include "Swiften/VCards/VCardMemoryStorage.h" + +namespace Swift { + class VCardMemoryStorageFactory : public VCardStorageFactory { + public: + VCardMemoryStorageFactory() { + } + + virtual VCardStorage* createVCardStorage(const String& profile) { + return new VCardMemoryStorage(); + } + }; +} \ No newline at end of file -- cgit v0.10.2-6-g49f6