qgpgmebackend.h
00001
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_QGPGMEBACKEND_H__
00035
#define __KLEO_QGPGMEBACKEND_H__
00036
00037
#include "kleo/cryptobackend.h"
00038
00039
class CryptPlugWrapper;
00040
00041
namespace Kleo {
00042
class CryptoConfig;
00043 }
00044
class QGpgMECryptoConfig;
00045
class QString;
00046
00047
namespace Kleo {
00048
00049
class QGpgMEBackend :
public Kleo::CryptoBackend {
00050
public:
00051 QGpgMEBackend();
00052 ~QGpgMEBackend();
00053
00054
QString name() const;
00055
QString displayName() const;
00056
00057 CryptoConfig * config() const;
00058 Protocol * openpgp() const;
00059 Protocol * smime() const;
00060
00061
bool checkForOpenPGP(
QString * reason=0 ) const;
00062
bool checkForSMIME(
QString * reason=0 ) const;
00063
00064
bool supportsOpenPGP()
const {
return true; }
00065
bool supportsSMIME()
const {
return true; }
00066
00067
private:
00068
mutable QGpgMECryptoConfig * mCryptoConfig;
00069
mutable CryptPlugWrapper * mOpenPGPProtocol;
00070
mutable CryptPlugWrapper * mSMIMEProtocol;
00071 };
00072
00073 }
00074
00075
00076
#endif // __KLEO_QGPGMEBACKEND_H__
This file is part of the documentation for certmanager Library Version 3.3.0.