libkpgp
Kpgp::Block Class Reference
List of all members.Detailed Description
Definition at line 93 of file kpgpblock.h.
Public Member Functions | |
Block (const QCString &str=QCString()) | |
~Block () | |
QCString | text () const |
void | setText (const QCString &str) |
void | setProcessedText (const QCString &str) |
int | status () const |
void | setStatus (const int status) |
BlockType | type () |
bool | isEncrypted () const |
bool | isSigned () const |
bool | goodSignature () const |
QString | signatureUserId () const |
void | setSignatureUserId (const QString &userId) |
QCString | signatureKeyId () const |
void | setSignatureKeyId (const QCString &keyId) |
QCString | signatureDate () const |
void | setSignatureDate (const QCString &date) |
const QStrList | encryptedFor () const |
QString | requiredKey () const |
void | setRequiredKey (const QCString &keyId) |
QString | requiredUserId () const |
void | setRequiredUserId (const QString &userId) |
QCString | error () const |
void | setError (const QCString &str) |
void | reset () |
bool | decrypt () |
bool | verify () |
Kpgp::Result | clearsign (const QCString &keyId, const QCString &charset=QCString()) |
Kpgp::Result | encrypt (const QStringList &receivers, const QCString &keyId, const bool sign, const QCString &charset=QCString()) |
Member Function Documentation
|
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. |
|
decrypts this OpenPGP block if the passphrase is good. returns false otherwise Definition at line 92 of file kpgpblock.cpp. |
|
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. |
|
the persons who can decrypt the message
Definition at line 312 of file kpgpblock.h. |
|
is the signature good ?
Definition at line 334 of file kpgpblock.h. |
|
is the message encrypted ?
Definition at line 318 of file kpgpblock.h. |
|
is the message signed by someone
Definition at line 326 of file kpgpblock.h. |
|
shows the secret key which is needed to decrypt the message
Definition at line 288 of file kpgpblock.h. |
|
Resets all information about this OpenPGP block.
Definition at line 40 of file kpgpblock.cpp. |
|
date of the signature WARNING: Will most likely be changed to QDateTime
Definition at line 276 of file kpgpblock.h. |
|
keyID of signer
Definition at line 264 of file kpgpblock.h. |
|
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 252 of file kpgpblock.h. |
|
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: