diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-08-25 13:32:37 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-08-25 13:32:37 (GMT) |
commit | 2ec3dbaf8d73baae8827863c5ff1f0b6f9c726c8 (patch) | |
tree | a534fdb0af076ba09561b003b56e6245804b391c | |
parent | 042c12c31cda77b3d57ed41d5c121a2b4383e69a (diff) | |
download | swift-2ec3dbaf8d73baae8827863c5ff1f0b6f9c726c8.zip swift-2ec3dbaf8d73baae8827863c5ff1f0b6f9c726c8.tar.bz2 |
Added VCardMemoryStorageFactory.
-rw-r--r-- | Swiften/VCards/VCardMemoryStorageFactory.h | 24 |
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 |