diff options
Diffstat (limited to 'Swift/Controllers/CertificateFileStorageFactory.h')
-rw-r--r-- | Swift/Controllers/CertificateFileStorageFactory.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Swift/Controllers/CertificateFileStorageFactory.h b/Swift/Controllers/CertificateFileStorageFactory.h deleted file mode 100644 index 7ed8287..0000000 --- a/Swift/Controllers/CertificateFileStorageFactory.h +++ /dev/null @@ -1,28 +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 <Swift/Controllers/CertificateStorageFactory.h> -#include <Swift/Controllers/CertificateFileStorage.h> - -namespace Swift { - class CertificateFactory; - - class CertificateFileStorageFactory : public CertificateStorageFactory { - public: - CertificateFileStorageFactory(const boost::filesystem::path& basePath, CertificateFactory* certificateFactory) : basePath(basePath), certificateFactory(certificateFactory) {} - - virtual CertificateStorage* createCertificateStorage(const JID& profile) const { - boost::filesystem::path profilePath = basePath / profile.toString(); - return new CertificateFileStorage(profilePath / "certificates", certificateFactory); - } - - private: - boost::filesystem::path basePath; - CertificateFactory* certificateFactory; - }; -} |