summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/VCards')
-rw-r--r--Swiften/VCards/VCardMemoryStorageFactory.h24
1 files changed, 24 insertions, 0 deletions
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 <boost/filesystem.hpp>
+
+#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