libkpgp
#include <kpgpblock.h>
Definition at line 89 of file kpgpblock.h.
Kpgp::Block::Block |
( |
const QByteArray & |
str = QByteArray() | ) |
|
|
explicit |
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 |
the persons who can decrypt the message
Definition at line 308 of file kpgpblock.h.
QByteArray Kpgp::Block::error |
( |
| ) |
const |
|
inline |
bool Kpgp::Block::goodSignature |
( |
| ) |
const |
|
inline |
bool Kpgp::Block::isEncrypted |
( |
| ) |
const |
|
inline |
is the message encrypted ?
Definition at line 314 of file kpgpblock.h.
bool Kpgp::Block::isSigned |
( |
| ) |
const |
|
inline |
is the message signed by someone
Definition at line 322 of file kpgpblock.h.
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 |
void Kpgp::Block::reset |
( |
| ) |
|
Resets all information about this OpenPGP block.
Definition at line 40 of file kpgpblock.cpp.
void Kpgp::Block::setError |
( |
const QByteArray & |
str | ) |
|
|
inline |
void Kpgp::Block::setProcessedText |
( |
const QByteArray & |
str | ) |
|
|
inline |
void Kpgp::Block::setRequiredKey |
( |
const QByteArray & |
keyId | ) |
|
|
inline |
void Kpgp::Block::setRequiredUserId |
( |
const QString & |
userId | ) |
|
|
inline |
void Kpgp::Block::setSignatureDate |
( |
const QByteArray & |
date | ) |
|
|
inline |
void Kpgp::Block::setSignatureKeyId |
( |
const QByteArray & |
keyId | ) |
|
|
inline |
void Kpgp::Block::setSignatureUserId |
( |
const QString & |
userId | ) |
|
|
inline |
void Kpgp::Block::setStatus |
( |
const int |
status | ) |
|
|
inline |
void Kpgp::Block::setText |
( |
const QByteArray & |
str | ) |
|
|
inline |
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 |
QByteArray Kpgp::Block::text |
( |
| ) |
const |
|
inline |
bool Kpgp::Block::verify |
( |
| ) |
|
tries to verify this (clearsigned) OpenPGP block
Definition at line 103 of file kpgpblock.cpp.
The documentation for this class was generated from the following files:
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.