libkpgp
Kpgp::Block Class Reference
#include <kpgpblock.h>
Detailed Description
Definition at line 89 of file kpgpblock.h.
Constructor & Destructor Documentation
| Kpgp::Block::Block | ( | const QByteArray & | str = QByteArray() |
) |
Definition at line 27 of file kpgpblock.cpp.
| Kpgp::Block::~Block | ( | ) |
Definition at line 35 of file kpgpblock.cpp.
Member Function Documentation
| Kpgp::Result Kpgp::Block::clearsign | ( | const QByteArray & | keyId, | |
| const QByteArray & | charset = QByteArray() | |||
| ) |
clearsigns this OpenPGP block with the key corresponding to the given key id.
The charset is needed to display the text correctly. Returns false if there was an unresolvable error or if signing was canceled true if everything is o.k.
Definition at line 114 of file kpgpblock.cpp.
| bool Kpgp::Block::decrypt | ( | ) |
decrypts this OpenPGP block if the passphrase is good.
returns false otherwise
Definition at line 92 of file kpgpblock.cpp.
| Kpgp::Result Kpgp::Block::encrypt | ( | const QStringList & | receivers, | |
| const QByteArray & | keyId, | |||
| const bool | sign, | |||
| const QByteArray & | charset = QByteArray() | |||
| ) |
encrypts this OpenPGP block for a list of persons.
if sign is true then the message is signed with the key corresponding to the given key id. Returns false if there was an unresolvable error or if encryption was canceled true if everything is o.k.
Definition at line 125 of file kpgpblock.cpp.
| const QStringList Kpgp::Block::encryptedFor | ( | ) | const [inline] |
| QByteArray Kpgp::Block::error | ( | ) | const [inline] |
Definition at line 216 of file kpgpblock.h.
| bool Kpgp::Block::goodSignature | ( | ) | const [inline] |
| bool Kpgp::Block::isEncrypted | ( | ) | const [inline] |
| bool Kpgp::Block::isSigned | ( | ) | const [inline] |
| QByteArray Kpgp::Block::requiredKey | ( | ) | const [inline] |
shows the secret key which is needed to decrypt the message
Definition at line 284 of file kpgpblock.h.
| QString Kpgp::Block::requiredUserId | ( | ) | const [inline] |
Definition at line 296 of file kpgpblock.h.
| void Kpgp::Block::reset | ( | ) |
| void Kpgp::Block::setError | ( | const QByteArray & | str | ) | [inline] |
Definition at line 222 of file kpgpblock.h.
| void Kpgp::Block::setProcessedText | ( | const QByteArray & | str | ) | [inline] |
Definition at line 209 of file kpgpblock.h.
| void Kpgp::Block::setRequiredKey | ( | const QByteArray & | keyId | ) | [inline] |
Definition at line 290 of file kpgpblock.h.
| void Kpgp::Block::setRequiredUserId | ( | const QString & | userId | ) | [inline] |
Definition at line 302 of file kpgpblock.h.
| void Kpgp::Block::setSignatureDate | ( | const QByteArray & | date | ) | [inline] |
Definition at line 278 of file kpgpblock.h.
| void Kpgp::Block::setSignatureKeyId | ( | const QByteArray & | keyId | ) | [inline] |
Definition at line 266 of file kpgpblock.h.
| void Kpgp::Block::setSignatureUserId | ( | const QString & | userId | ) | [inline] |
Definition at line 254 of file kpgpblock.h.
| void Kpgp::Block::setStatus | ( | const int | status | ) | [inline] |
Definition at line 234 of file kpgpblock.h.
| void Kpgp::Block::setText | ( | const QByteArray & | str | ) | [inline] |
Definition at line 202 of file kpgpblock.h.
| QByteArray Kpgp::Block::signatureDate | ( | ) | const [inline] |
date of the signature WARNING: Will most likely be changed to QDateTime
Definition at line 272 of file kpgpblock.h.
| QByteArray Kpgp::Block::signatureKeyId | ( | ) | const [inline] |
| QString Kpgp::Block::signatureUserId | ( | ) | const [inline] |
returns the primary user id of the signer or a null string if we don't have the public key of the signer
Definition at line 248 of file kpgpblock.h.
| int Kpgp::Block::status | ( | ) | const [inline] |
Definition at line 228 of file kpgpblock.h.
| QByteArray Kpgp::Block::text | ( | ) | const [inline] |
Definition at line 193 of file kpgpblock.h.
| BlockType Kpgp::Block::type | ( | ) | const [inline] |
Definition at line 240 of file kpgpblock.h.
| bool Kpgp::Block::verify | ( | ) |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference