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 TQ_OBJECT
00053 protected:
00054 CryptPlugFactory();
00055 ~CryptPlugFactory();
00056
00057 public:
00058 static CryptPlugFactory * instance();
00059
00060 CryptPlugWrapper * active() const;
00061 CryptPlugWrapper * smime() const;
00062 CryptPlugWrapper * openpgp() const;
00063
00064 CryptPlugWrapperList & list() const { return *mCryptPlugWrapperList; }
00065
00066 CryptPlugWrapper * createForProtocol( const TQString & proto ) const;
00067
00068 void scanForBackends( TQStringList * reason );
00069
00070 private:
00071 void updateCryptPlugWrapperList();
00072
00073 private:
00074 CryptPlugFactory( const CryptPlugFactory & );
00075 void operator=( const CryptPlugFactory & );
00076 CryptPlugWrapperList * mCryptPlugWrapperList;
00077
00078 static CryptPlugFactory * mSelf;
00079 };
00080
00081 }
00082 #endif
00083
00084 #endif // __KLEO_CRYPTPLUGFACTORY_H__
|