libkpgp
Kpgp::Base Class Reference
#include <kpgpbase.h>

Detailed Description
Definition at line 30 of file kpgpbase.h.
Public Member Functions | |
| 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) |
| virtual | ~Base () |
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 |
Constructor & Destructor Documentation
| Kpgp::Base::Base | ( | ) |
| Kpgp::Base::~Base | ( | ) | [virtual] |
Definition at line 50 of file kpgpbase.cpp.
Member Function Documentation
| QByteArray Kpgp::Base::addUserId | ( | ) | [protected] |
Definition at line 686 of file kpgpbase.cpp.
| void Kpgp::Base::clear | ( | ) | [protected, virtual] |
Definition at line 56 of file kpgpbase.cpp.
| virtual int Kpgp::Base::clearsign | ( | Block & | , | |
| const char * | ||||
| ) | [inline, virtual] |
Clearsigns the message with the currently set key.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, and Kpgp::Base5.
Definition at line 43 of file kpgpbase.h.
| virtual int Kpgp::Base::decrypt | ( | Block & | , | |
| const char * | = 0 | |||
| ) | [inline, virtual] |
Decrypts the message.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, Kpgp::Base5, and Kpgp::Base6.
Definition at line 50 of file kpgpbase.h.
Encrypts the message with the given keys.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, and Kpgp::Base5.
Definition at line 40 of file kpgpbase.h.
| virtual int Kpgp::Base::encsign | ( | Block & | , | |
| const KeyIDList & | , | |||
| const char * | = 0 | |||
| ) | [inline, virtual] |
Encrypts and signs the message with the given keys.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, and Kpgp::Base5.
Definition at line 46 of file kpgpbase.h.
| virtual QByteArray Kpgp::Base::getAsciiPublicKey | ( | const KeyID & | ) | [inline, virtual] |
Returns the ascii armored data of the public key with the given key id.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, and Kpgp::Base5.
Definition at line 75 of file kpgpbase.h.
| QString Kpgp::Base::lastErrorMessage | ( | ) | const [inline, virtual] |
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() |
) | [inline, virtual] |
Returns the list of public keys in the users public keyring.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, Kpgp::Base5, and Kpgp::Base6.
Definition at line 66 of file kpgpbase.h.
| virtual Key* Kpgp::Base::readPublicKey | ( | const KeyID & | , | |
| const | bool = false, |
|||
| Key * | = 0 | |||
| ) | [inline, virtual] |
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::Base2, Kpgp::BaseG, Kpgp::Base5, and Kpgp::Base6.
Definition at line 61 of file kpgpbase.h.
| int Kpgp::Base::run | ( | const char * | cmd, | |
| const char * | passphrase = 0, |
|||
| bool | onlyReadFromPGP = false | |||
| ) | [protected, virtual] |
Definition at line 67 of file kpgpbase.cpp.
| int Kpgp::Base::runGpg | ( | const char * | cmd, | |
| const char * | passphrase = 0, |
|||
| bool | onlyReadFromGnuPG = false | |||
| ) | [protected, virtual] |
Definition at line 389 of file kpgpbase.cpp.
| virtual KeyList Kpgp::Base::secretKeys | ( | const QStringList & | = QStringList() |
) | [inline, virtual] |
Returns the list of secret keys in the users secret keyring.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, Kpgp::Base5, and Kpgp::Base6.
Definition at line 70 of file kpgpbase.h.
| virtual int Kpgp::Base::signKey | ( | const KeyID & | , | |
| const char * | ||||
| ) | [inline, virtual] |
Signs the given key with the currently set user key.
This is currently not implemented.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, and Kpgp::Base5.
Definition at line 79 of file kpgpbase.h.
| virtual int Kpgp::Base::verify | ( | Block & | block | ) | [inline, virtual] |
Verifies the message.
Reimplemented in Kpgp::Base2, Kpgp::BaseG, Kpgp::Base5, and Kpgp::Base6.
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:
KDE 4.1 API Reference