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

libkpgp

  • Kpgp
  • Base
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Kpgp::Base Class Reference

#include <kpgpbase.h>

Inheritance diagram for Kpgp::Base:
Inheritance graph
[legend]

Public Member Functions

 Base ()
 
virtual ~Base ()
 
virtual int clearsign (Block &, const char *)
 
virtual int decrypt (Block &, const char *=0)
 
virtual int encrypt (Block &, const KeyIDList &)
 
virtual int encsign (Block &, const KeyIDList &, const char *=0)
 
virtual QByteArray getAsciiPublicKey (const KeyID &)
 
virtual QString lastErrorMessage () const
 
virtual KeyList publicKeys (const QStringList &=QStringList())
 
virtual Key * readPublicKey (const KeyID &, const bool=false, Key *=0)
 
virtual KeyList secretKeys (const QStringList &=QStringList())
 
virtual int signKey (const KeyID &, const char *)
 
virtual int verify (Block &block)
 

Protected Member Functions

QByteArray addUserId ()
 
virtual void clear ()
 
virtual int run (const char *cmd, const char *passphrase=0, bool onlyReadFromPGP=false)
 
virtual int runGpg (const char *cmd, const char *passphrase=0, bool onlyReadFromGnuPG=false)
 

Protected Attributes

QString errMsg
 
QByteArray error
 
QByteArray input
 
QByteArray mVersion
 
QByteArray output
 
int status
 

Detailed Description

Definition at line 30 of file kpgpbase.h.

Constructor & Destructor Documentation

Kpgp::Base::Base ( )

virtual class used internally by kpgp

Definition at line 44 of file kpgpbase.cpp.

Kpgp::Base::~Base ( )
virtual

Definition at line 50 of file kpgpbase.cpp.

Member Function Documentation

QByteArray Kpgp::Base::addUserId ( )
protected

Definition at line 688 of file kpgpbase.cpp.

void Kpgp::Base::clear ( )
protectedvirtual

Definition at line 56 of file kpgpbase.cpp.

virtual int Kpgp::Base::clearsign ( Block &  ,
const char *   
)
inlinevirtual

Clearsigns the message with the currently set key.

Reimplemented in Kpgp::Base5, Kpgp::BaseG, and Kpgp::Base2.

Definition at line 43 of file kpgpbase.h.

virtual int Kpgp::Base::decrypt ( Block &  ,
const char *  = 0 
)
inlinevirtual

Decrypts the message.

Reimplemented in Kpgp::Base6, Kpgp::Base5, Kpgp::BaseG, and Kpgp::Base2.

Definition at line 50 of file kpgpbase.h.

virtual int Kpgp::Base::encrypt ( Block &  ,
const KeyIDList &   
)
inlinevirtual

Encrypts the message with the given keys.

Reimplemented in Kpgp::Base5, Kpgp::BaseG, and Kpgp::Base2.

Definition at line 40 of file kpgpbase.h.

virtual int Kpgp::Base::encsign ( Block &  ,
const KeyIDList &  ,
const char *  = 0 
)
inlinevirtual

Encrypts and signs the message with the given keys.

Reimplemented in Kpgp::Base5, Kpgp::BaseG, and Kpgp::Base2.

Definition at line 46 of file kpgpbase.h.

virtual QByteArray Kpgp::Base::getAsciiPublicKey ( const KeyID &  )
inlinevirtual

Returns the ascii armored data of the public key with the given key id.

Reimplemented in Kpgp::Base5, Kpgp::BaseG, and Kpgp::Base2.

Definition at line 75 of file kpgpbase.h.

QString Kpgp::Base::lastErrorMessage ( ) const
inlinevirtual

Returns an error message if an error occurred during the last operation.

Definition at line 230 of file kpgpbase.h.

virtual KeyList Kpgp::Base::publicKeys ( const QStringList &  = QStringList())
inlinevirtual

Returns the list of public keys in the users public keyring.

Reimplemented in Kpgp::Base6, Kpgp::Base5, Kpgp::BaseG, and Kpgp::Base2.

Definition at line 66 of file kpgpbase.h.

virtual Key* Kpgp::Base::readPublicKey ( const KeyID &  ,
const bool  = false,
Key *  = 0 
)
inlinevirtual

Reads the key data for the given key and returns it.

If readTrust is true then the trust of this key will be determined. If key is not null then the key data will be stored in given key.

Reimplemented in Kpgp::Base6, Kpgp::Base5, Kpgp::BaseG, and Kpgp::Base2.

Definition at line 61 of file kpgpbase.h.

int Kpgp::Base::run ( const char *  cmd,
const char *  passphrase = 0,
bool  onlyReadFromPGP = false 
)
protectedvirtual

Definition at line 67 of file kpgpbase.cpp.

int Kpgp::Base::runGpg ( const char *  cmd,
const char *  passphrase = 0,
bool  onlyReadFromGnuPG = false 
)
protectedvirtual

Definition at line 390 of file kpgpbase.cpp.

virtual KeyList Kpgp::Base::secretKeys ( const QStringList &  = QStringList())
inlinevirtual

Returns the list of secret keys in the users secret keyring.

Reimplemented in Kpgp::Base6, Kpgp::Base5, Kpgp::BaseG, and Kpgp::Base2.

Definition at line 70 of file kpgpbase.h.

virtual int Kpgp::Base::signKey ( const KeyID &  ,
const char *   
)
inlinevirtual

Signs the given key with the currently set user key.

This is currently not implemented.

Reimplemented in Kpgp::Base5, Kpgp::BaseG, and Kpgp::Base2.

Definition at line 79 of file kpgpbase.h.

virtual int Kpgp::Base::verify ( Block &  block)
inlinevirtual

Verifies the message.

Reimplemented in Kpgp::Base6, Kpgp::Base5, Kpgp::BaseG, and Kpgp::Base2.

Definition at line 53 of file kpgpbase.h.

Member Data Documentation

QString Kpgp::Base::errMsg
protected

Definition at line 99 of file kpgpbase.h.

QByteArray Kpgp::Base::error
protected

Definition at line 98 of file kpgpbase.h.

QByteArray Kpgp::Base::input
protected

Definition at line 96 of file kpgpbase.h.

QByteArray Kpgp::Base::mVersion
protected

Definition at line 101 of file kpgpbase.h.

QByteArray Kpgp::Base::output
protected

Definition at line 97 of file kpgpbase.h.

int Kpgp::Base::status
protected

Definition at line 103 of file kpgpbase.h.


The documentation for this class was generated from the following files:
  • kpgpbase.h
  • kpgpbase.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkpgp

Skip menu "libkpgp"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal