certmanager/lib
qgpgmebackend.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
00034 #ifndef __KLEO_TQGPGMEBACKEND_H__
00035 #define __KLEO_TQGPGMEBACKEND_H__
00036
00037 #include "kleo/cryptobackend.h"
00038
00039 class CryptPlugWrapper;
00040
00041 namespace Kleo {
00042 class CryptoConfig;
00043 }
00044 class QGpgMECryptoConfig;
00045 class TQString;
00046
00047 namespace Kleo {
00048
00049 class QGpgMEBackend : public Kleo::CryptoBackend {
00050 public:
00051 QGpgMEBackend();
00052 ~QGpgMEBackend();
00053
00054 TQString name() const;
00055 TQString displayName() const;
00056
00057 CryptoConfig * config() const;
00058
00059 Protocol * openpgp() const;
00060 Protocol * smime() const;
00061 Protocol * protocol( const char * name ) const;
00062
00063 bool checkForOpenPGP( TQString * reason=0 ) const;
00064 bool checkForSMIME( TQString * reason=0 ) const;
00065 bool checkForProtocol( const char * name, TQString * reason ) const;
00066
00067 bool supportsOpenPGP() const { return true; }
00068 bool supportsSMIME() const { return true; }
00069 bool supportsProtocol( const char * name ) const;
00070
00071 const char * enumerateProtocols( int i ) const;
00072
00073 private:
00074 mutable QGpgMECryptoConfig * mCryptoConfig;
00075 mutable CryptPlugWrapper * mOpenPGPProtocol;
00076 mutable CryptPlugWrapper * mSMIMEProtocol;
00077 };
00078
00079 }
00080
00081
00082 #endif // __KLEO_TQGPGMEBACKEND_H__
|