• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

libkleo

CryptPlugWrapper Class Reference

#include <cryptplugwrapper.h>

Inheritance diagram for CryptPlugWrapper:

Inheritance graph
[legend]

List of all members.


Detailed Description

This class provides C++ access to the CRYPTPLUG API.

Definition at line 446 of file cryptplugwrapper.h.


Public Types

enum  {
  SigStatus_UNKNOWN = 0x0000, SigStatus_VALID = SigStat_VALID, SigStatus_GREEN = SigStat_GREEN, SigStatus_RED = SigStat_RED,
  SigStatus_KEY_REVOKED = SigStat_KEY_REVOKED, SigStatus_KEY_EXPIRED = SigStat_KEY_EXPIRED, SigStatus_SIG_EXPIRED = SigStat_SIG_EXPIRED, SigStatus_KEY_MISSING = SigStat_KEY_MISSING,
  SigStatus_CRL_MISSING = SigStat_CRL_MISSING, SigStatus_CRL_TOO_OLD = SigStat_CRL_TOO_OLD, SigStatus_BAD_POLICY = SigStat_BAD_POLICY, SigStatus_SYS_ERROR = SigStat_SYS_ERROR,
  SigStatus_NUMERICAL_CODE = 0x8000
}
enum  { CertStatus_EXPIRES_NEVER = CRYPTPLUG_CERT_DOES_NEVER_EXPIRE }
enum  InitStatus {
  InitStatus_undef = 0, InitStatus_Ok = 1, InitStatus_NoLibName = 2, InitStatus_LoadError = 0x1000,
  InitStatus_InitError = 0x2000
}
typedef unsigned long SigStatusFlags

Public Member Functions

bool active () const
bool checkMessageSignature (char **cleartext, const char *signaturetext, bool signatureIsBinary, int signatureLen, CryptPlug::SignatureMetaData *sigmeta)
CryptPlug * cryptPlug () const
 CryptPlugWrapper (const QString &name=QString(), const QString &libName=QString(), const QString &update=QString(), bool active=false)
bool decryptAndCheckMessage (const char *ciphertext, bool cipherIsBinary, int cipherLen, char **cleartext, const char *certificate, bool *signatureFound, CryptPlug::SignatureMetaData *sigmeta, int *errId, char **errTxt)
Kleo::DecryptJob * decryptJob () const
bool decryptMessage (const char *ciphertext, bool cipherIsBinary, int cipherLen, char **cleartext, const char *certificate, int *errId, char **errTxt)
Kleo::DecryptVerifyJob * decryptVerifyJob (bool textmode=false) const
void deinitialize ()
Kleo::DeleteJob * deleteJob () const
QString displayName () const
Kleo::DownloadJob * downloadJob (bool armor=false) const
Kleo::EncryptJob * encryptJob (bool armor=false, bool textmode=false) const
void freeSignatureMetaData (CryptPlug::SignatureMetaData *)
bool hasFeature (Feature)
GpgME::ImportResult importCertificate (const char *data, size_t length)
Kleo::ImportJob * importJob () const
InitStatus initStatus (QString *errorMsg) const
Kleo::KeyGenerationJob * keyGenerationJob () const
Kleo::KeyListJob * keyListJob (bool remote=false, bool includeSigs=false, bool validate=true) const
QString libName () const
QString name () const
QString protocol () const
Kleo::ExportJob * publicKeyExportJob (bool armor=false) const
Kleo::RefreshKeysJob * refreshKeysJob () const
Kleo::ExportJob * secretKeyExportJob (bool armor=false, const QString &charset=QString()) const
void setActive (bool active)
void setDisplayName (const QString &name)
bool setLibName (const QString &libName)
Kleo::SignEncryptJob * signEncryptJob (bool armor=false, bool textmode=false) const
Kleo::SignJob * signJob (bool armor=false, bool textMode=false) const
Kleo::SpecialJob * specialJob (const char *, const QMap< QString, QVariant > &) const
Kleo::VerifyDetachedJob * verifyDetachedJob (bool textmode=false) const
Kleo::VerifyOpaqueJob * verifyOpaqueJob (bool textmode=false) const
 ~CryptPlugWrapper ()

Static Public Member Functions

static QString errorIdToText (int errId, bool &isPassphraseError)

Member Typedef Documentation

typedef unsigned long CryptPlugWrapper::SigStatusFlags

Definition at line 510 of file cryptplugwrapper.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
CertStatus_EXPIRES_NEVER 

Definition at line 513 of file cryptplugwrapper.h.


Member Function Documentation

CryptPlug* CryptPlugWrapper::cryptPlug (  )  const [inline]

Definition at line 813 of file cryptplugwrapper.h.

Kleo::DecryptJob * CryptPlugWrapper::decryptJob (  )  const [virtual]

Implements Kleo::CryptoBackend::Protocol.

Definition at line 696 of file cryptplugwrapper.cpp.

Kleo::DecryptVerifyJob * CryptPlugWrapper::decryptVerifyJob ( bool  textmode = false  )  const [virtual]

Implements Kleo::CryptoBackend::Protocol.

Definition at line 828 of file cryptplugwrapper.cpp.

Kleo::DeleteJob * CryptPlugWrapper::deleteJob (  )  const [virtual]

Implements Kleo::CryptoBackend::Protocol.

Definition at line 805 of file cryptplugwrapper.cpp.

Kleo::DownloadJob * CryptPlugWrapper::downloadJob ( bool  armor = false  )  const [virtual]

Implements Kleo::CryptoBackend::Protocol.

Definition at line 791 of file cryptplugwrapper.cpp.

Kleo::EncryptJob * CryptPlugWrapper::encryptJob ( bool  armor = false,
bool  textmode = false 
) const [virtual]

Implements Kleo::CryptoBackend::Protocol.

Definition at line 683 of file cryptplugwrapper.cpp.

QString CryptPlugWrapper::errorIdToText ( int  errId,
bool &  isPassphraseError 
) [static]

Definition at line 406 of file cryptplugwrapper.cpp.

void CryptPlugWrapper::freeSignatureMetaData ( CryptPlug::SignatureMetaData *  sigmeta  ) 

Definition at line 628 of file cryptplugwrapper.cpp.

GpgME::ImportResult CryptPlugWrapper::importCertificate ( const char *  data,
size_t  length 
)

Definition at line 652 of file cryptplugwrapper.cpp.

Kleo::ImportJob * CryptPlugWrapper::importJob (  )  const [virtual]

Implements Kleo::CryptoBackend::Protocol.

Definition at line 753 of file cryptplugwrapper.cpp.

Kleo::KeyGenerationJob * CryptPlugWrapper::keyGenerationJob (  )  const [virtual]

Implements Kleo::CryptoBackend::Protocol.

Definition at line 743 of file cryptplugwrapper.cpp.

Kleo::KeyListJob * CryptPlugWrapper::keyListJob ( bool  remote = false,
bool  includeSigs = false,
bool  validate = true 
) const [virtual]

Implements Kleo::CryptoBackend::Protocol.

Definition at line 661 of file cryptplugwrapper.cpp.

QString CryptPlugWrapper::name (  )  const [inline, virtual]

Implements Kleo::CryptoBackend::Protocol.

Definition at line 559 of file cryptplugwrapper.h.

QString CryptPlugWrapper::protocol (  )  const

Definition at line 467 of file cryptplugwrapper.cpp.

Kleo::ExportJob * CryptPlugWrapper::publicKeyExportJob ( bool  armor = false  )  const [virtual]

Implements Kleo::CryptoBackend::Protocol.

Definition at line 763 of file cryptplugwrapper.cpp.

Kleo::RefreshKeysJob * CryptPlugWrapper::refreshKeysJob (  )  const [virtual]

Implements Kleo::CryptoBackend::Protocol.

Definition at line 783 of file cryptplugwrapper.cpp.

Kleo::ExportJob * CryptPlugWrapper::secretKeyExportJob ( bool  armor = false,
const QString &  charset = QString() 
) const [virtual]

Implements Kleo::CryptoBackend::Protocol.

Definition at line 775 of file cryptplugwrapper.cpp.

Kleo::SignEncryptJob * CryptPlugWrapper::signEncryptJob ( bool  armor = false,
bool  textmode = false 
) const [virtual]

Implements Kleo::CryptoBackend::Protocol.

Definition at line 815 of file cryptplugwrapper.cpp.

Kleo::SignJob * CryptPlugWrapper::signJob ( bool  armor = false,
bool  textMode = false 
) const [virtual]

Implements Kleo::CryptoBackend::Protocol.

Definition at line 706 of file cryptplugwrapper.cpp.

Kleo::SpecialJob* CryptPlugWrapper::specialJob ( const char *  ,
const QMap< QString, QVariant > &   
) const [inline, virtual]

Implements Kleo::CryptoBackend::Protocol.

Definition at line 809 of file cryptplugwrapper.h.

Kleo::VerifyDetachedJob * CryptPlugWrapper::verifyDetachedJob ( bool  textmode = false  )  const [virtual]

Implements Kleo::CryptoBackend::Protocol.

Definition at line 719 of file cryptplugwrapper.cpp.

Kleo::VerifyOpaqueJob * CryptPlugWrapper::verifyOpaqueJob ( bool  textmode = false  )  const [virtual]

Implements Kleo::CryptoBackend::Protocol.

Definition at line 731 of file cryptplugwrapper.cpp.


The documentation for this class was generated from the following files:
  • cryptplugwrapper.h
  • cryptplugwrapper.cpp

libkleo

Skip menu "libkleo"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal