|
virtual | ~Module () |
|
bool | changePassPhrase () |
|
void | clear (const bool erasePassPhrase=false) |
|
Kpgp::Result | clearsign (Block &block, const KeyID &keyId, const QByteArray &charset=0) |
|
bool | decrypt (Block &block) |
|
Kpgp::Result | encrypt (Block &block, const QStringList &receivers, const KeyID &keyId, bool sign, const QByteArray &charset=0) |
|
int | encryptionPossible (const QStringList &recipients) |
|
EncryptPref | encryptionPreference (const QString &address) |
|
bool | encryptToSelf (void) const |
|
QByteArray | getAsciiPublicKey (const KeyID &keyID) |
|
Kpgp::Result | getEncryptionKeys (KeyIDList &encryptionKeyIds, const QStringList &recipients, const KeyID &keyId) |
|
bool | havePGP (void) const |
|
virtual void | init () |
|
bool | isTrusted (const KeyID &keyID) |
|
Validity | keyTrust (const KeyID &keyID) |
|
Validity | keyTrust (const QString &userID) |
|
const QString | lastErrorMsg (void) const |
|
Key * | publicKey (const KeyID &keyID) |
|
Key * | publicKey (const QString &userID) |
|
const KeyList | publicKeys () |
|
virtual void | readConfig () |
|
void | readPublicKeys (bool reread=false) |
|
void | readSecretKeys (bool reread=false) |
|
Key * | rereadKey (const KeyID &keyID, const bool readTrust=true) |
|
Key * | secretKey (const KeyID &keyID) |
|
const KeyList | secretKeys () |
|
KeyID | selectPublicKey (const QString &title, const QString &text=QString(), const KeyID &oldKeyId=KeyID(), const QString &address=QString(), const unsigned int allowedKeys=AllKeys) |
|
KeyIDList | selectPublicKeys (const QString &title, const QString &text=QString(), const KeyIDList &oldKeyIds=KeyIDList(), const QString &address=QString(), const unsigned int allowedKeys=AllKeys) |
|
KeyID | selectSecretKey (const QString &title, const QString &text=QString(), const KeyID &keyId=KeyID()) |
|
void | setEncryptionPreference (const QString &address, const EncryptPref pref) |
|
void | setEncryptToSelf (bool flag) |
|
void | setShowCipherText (const bool flag) |
|
void | setShowKeyApprovalDlg (const bool flag) |
|
void | setStorePassPhrase (bool) |
|
void | setUser (const KeyID &keyID) |
|
bool | showCipherText (void) const |
|
bool | showKeyApprovalDlg (void) const |
|
bool | signKey (const KeyID &keyID) |
|
bool | storePassPhrase (void) const |
|
bool | usePGP (void) const |
|
const KeyID | user () const |
|
bool | verify (Block &block) |
|
virtual void | writeConfig (bool sync) |
|
Definition at line 75 of file kpgp.h.
int Kpgp::Module::encryptionPossible |
( |
const QStringList & |
recipients | ) |
|
checks if encrypting to the given list of persons is possible and desired, i.e.
if we have a (trusted) key for every recipient and if encryption to all keys is allowed. Returns 0 if encryption is not possible or not desired, 1 if encryption is possible and desired, 2 if encryption is possible, but the user wants to be asked and -1 if there is a conflict which can't be automatically resolved.
Definition at line 682 of file kpgp.cpp.
bool Kpgp::Module::prepareMessageForDecryption |
( |
const QByteArray & |
msg, |
|
|
QList< Block > & |
pgpBlocks, |
|
|
QList< QByteArray > & |
nonPgpBlocks |
|
) |
| |
|
static |
Parses the given message and splits it into OpenPGP blocks and Non-OpenPGP blocks.
Returns TRUE if the message contains at least one OpenPGP block and FALSE otherwise. The format is then:
1st Non-OpenPGP block
1st OpenPGP block
2nd Non-OpenPGP block
...
n-th OpenPGP block
(n+1)-th Non-OpenPGP block
Definition at line 1085 of file kpgp.cpp.
KeyID Kpgp::Module::selectPublicKey |
( |
const QString & |
title, |
|
|
const QString & |
text = QString() , |
|
|
const KeyID & |
oldKeyId = KeyID() , |
|
|
const QString & |
address = QString() , |
|
|
const unsigned int |
allowedKeys = AllKeys |
|
) |
| |
Shows a key selection dialog with all public keys and the given title and the (optional) text.
If oldKeyId is given, then the corresponding key is selected. If address is given, then the chosen key will be stored (if the user wants it to be stored). mode specifies which keys can be selected.
Definition at line 993 of file kpgp.cpp.