certmanager/lib
cryptplugfactory.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef __KLEO_CRYPTPLUGFACTORY_H__
00034 #define __KLEO_CRYPTPLUGFACTORY_H__
00035
00036 #include "kleo/cryptobackendfactory.h"
00037
00038 #include <kdepimmacros.h>
00039
00040 #ifndef LIBKLEOPATRA_NO_COMPAT
00041 namespace Kleo {
00042
00043 }
00044
00045 class CryptPlugWrapper;
00046 class CryptPlugWrapperList;
00047
00048 namespace KMail {
00049
00050 class KDE_EXPORT CryptPlugFactory : public Kleo::CryptoBackendFactory {
00051 Q_OBJECT
00052 protected:
00053 CryptPlugFactory();
00054 ~CryptPlugFactory();
00055
00056 public:
00057 static CryptPlugFactory * instance();
00058
00059 CryptPlugWrapper * active() const;
00060 CryptPlugWrapper * smime() const;
00061 CryptPlugWrapper * openpgp() const;
00062
00063 CryptPlugWrapperList & list() const { return *mCryptPlugWrapperList; }
00064
00065 CryptPlugWrapper * createForProtocol( const QString & proto ) const;
00066
00067 void scanForBackends( QStringList * reason );
00068
00069 private:
00070 void updateCryptPlugWrapperList();
00071
00072 private:
00073 CryptPlugFactory( const CryptPlugFactory & );
00074 void operator=( const CryptPlugFactory & );
00075 CryptPlugWrapperList * mCryptPlugWrapperList;
00076
00077 static CryptPlugFactory * mSelf;
00078 };
00079
00080 }
00081 #endif
00082
00083 #endif // __KLEO_CRYPTPLUGFACTORY_H__
|