diff options
Diffstat (limited to 'Swiften/VCards')
-rw-r--r-- | Swiften/VCards/SConscript | 1 | ||||
-rw-r--r-- | Swiften/VCards/VCardFileStorageFactory.h | 27 | ||||
-rw-r--r-- | Swiften/VCards/VCardMemoryStorageFactory.h | 24 | ||||
-rw-r--r-- | Swiften/VCards/VCardStorageFactory.cpp | 14 | ||||
-rw-r--r-- | Swiften/VCards/VCardStorageFactory.h | 19 |
5 files changed, 0 insertions, 85 deletions
diff --git a/Swiften/VCards/SConscript b/Swiften/VCards/SConscript index e83e633..13be7d3 100644 --- a/Swiften/VCards/SConscript +++ b/Swiften/VCards/SConscript @@ -4,6 +4,5 @@ objects = swiften_env.StaticObject([ "VCardManager.cpp", "VCardStorage.cpp", "VCardFileStorage.cpp", - "VCardStorageFactory.cpp", ]) swiften_env.Append(SWIFTEN_OBJECTS = [objects]) diff --git a/Swiften/VCards/VCardFileStorageFactory.h b/Swiften/VCards/VCardFileStorageFactory.h deleted file mode 100644 index 27e50af..0000000 --- a/Swiften/VCards/VCardFileStorageFactory.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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/VCardFileStorage.h" - -namespace Swift { - class VCardFileStorageFactory : public VCardStorageFactory { - public: - VCardFileStorageFactory(boost::filesystem::path base) : base(base) { - } - - virtual VCardStorage* createVCardStorage(const String& profile) { - return new VCardFileStorage(base / profile.getUTF8String() / "vcards"); - } - - private: - boost::filesystem::path base; - }; -} diff --git a/Swiften/VCards/VCardMemoryStorageFactory.h b/Swiften/VCards/VCardMemoryStorageFactory.h deleted file mode 100644 index d48794d..0000000 --- a/Swiften/VCards/VCardMemoryStorageFactory.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - * 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(); - } - }; -} diff --git a/Swiften/VCards/VCardStorageFactory.cpp b/Swiften/VCards/VCardStorageFactory.cpp deleted file mode 100644 index 64a3e88..0000000 --- a/Swiften/VCards/VCardStorageFactory.cpp +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright (c) 2010 Remko Tronçon - * Licensed under the GNU General Public License v3. - * See Documentation/Licenses/GPLv3.txt for more information. - */ - -#include "Swiften/VCards/VCardStorageFactory.h" - -namespace Swift { - -VCardStorageFactory::~VCardStorageFactory() { -} - -} diff --git a/Swiften/VCards/VCardStorageFactory.h b/Swiften/VCards/VCardStorageFactory.h deleted file mode 100644 index 7bef87b..0000000 --- a/Swiften/VCards/VCardStorageFactory.h +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) 2010 Remko Tronçon - * Licensed under the GNU General Public License v3. - * See Documentation/Licenses/GPLv3.txt for more information. - */ - -#pragma once - -namespace Swift { - class VCardStorage; - class String; - - class VCardStorageFactory { - public: - virtual ~VCardStorageFactory(); - - virtual VCardStorage* createVCardStorage(const String& profile) = 0; - }; -} |