libkpgp
kpgpbase6.cpp
Go to the documentation of this file.
189 int exitStatus = run( QByteArray(QByteArray(PGP6 " +batchmode -compatible +verbose=0 +language=C -kvvc "
206 exitStatus = run( QByteArray(QByteArray(PGP6 " +batchmode -compatible +verbose=0 +language=C -kc "
Validity
These are the possible validity values for a PGP user id and for the owner trust. ...
Definition: kpgpkey.h:32
uint toUInt(bool *ok, int base) const
void setCanCertify(const bool canCertify)
Sets the flag if the key can be used to certify keys to canCertify .
Definition: kpgpkey.h:762
int toInt(bool *ok, int base) const
void setSignatureDate(const QByteArray &date)
Definition: kpgpblock.h:278
Definition: kpgpblock.h:56
Definition: kpgpkey.h:39
void setCanEncrypt(const bool canEncrypt)
Sets the flag if the key can be used to encrypt data to canEncrypt .
Definition: kpgpkey.h:752
bool isEmpty() const
Definition: kpgpkey.h:38
Definition: kpgpblock.h:89
int length() const
Definition: kpgpblock.h:54
void setRequiredUserId(const QString &userId)
Definition: kpgpblock.h:302
void setSecret(const bool secret)
Sets the flag if the key is a secret key to secret .
Definition: kpgpkey.h:727
void setDisabled(const bool disabled)
Sets the flag if the key has been disabled to disabled .
Definition: kpgpkey.h:742
int indexOf(char ch, int from) const
void append(const T &value)
virtual KeyList secretKeys(const QStringList &patterns=QStringList())
Returns the list of secret keys in the users secret keyring.
Definition: kpgpbase6.cpp:339
virtual int run(const char *cmd, const char *passphrase=0, bool onlyReadFromPGP=false)
Definition: kpgpbase.cpp:67
virtual int decrypt(Block &block, const char *passphrase=0)
Decrypts the message.
Definition: kpgpbase6.cpp:45
virtual KeyList publicKeys(const QStringList &patterns=QStringList())
Returns the list of public keys in the users public keyring.
Definition: kpgpbase6.cpp:222
void setSignatureUserId(const QString &userId)
Definition: kpgpblock.h:254
Definition: kpgpblock.h:51
void addUserID(const QString &uid, const Validity validity=KPGP_VALIDITY_UNKNOWN, const bool revoked=false, const bool invalid=false)
Adds a user ID with the given values to the key if uid isn't an empty string.
Definition: kpgpkey.cpp:200
QByteArray & replace(int pos, int len, const char *after)
typedef Iterator
Definition: kpgpkey.h:35
KeyList doGetPublicKeys(const QByteArray &cmd, const QStringList &patterns)
Definition: kpgpbase2.cpp:511
Definition: kpgpblock.h:49
QByteArray mid(int pos, int len) const
QByteArray signatureDate() const
date of the signature WARNING: Will most likely be changed to QDateTime
Definition: kpgpblock.h:272
iterator end()
Definition: kpgpkey.h:37
void setSignatureKeyId(const QByteArray &keyId)
Definition: kpgpblock.h:266
virtual KeyList parseKeyList(const QByteArray &, bool)
Definition: kpgpbase6.cpp:727
void addSubkey(const KeyID &keyID, const bool secret=false)
Adds a subkey with the given values to the key if keyID isn't an empty string.
Definition: kpgpkey.cpp:222
virtual Key * readPublicKey(const KeyID &keyID, const bool readTrust=false, Key *key=0)
Reads the key data for the given key and returns it.
Definition: kpgpbase6.cpp:184
void setExpired(const bool expired)
Sets the flag if the key has expired to expired .
Definition: kpgpkey.h:737
void setProcessedText(const QByteArray &str)
Definition: kpgpblock.h:209
bool contains(char ch) const
void setRevoked(const bool revoked)
Sets the flag if the key has been revoked to revoked .
Definition: kpgpkey.h:732
char * data()
Definition: kpgpblock.h:48
Definition: kpgpkey.h:34
Definition: kpgpblock.h:53
Definition: kpgpbase.h:109
Definition: kpgpblock.h:50
void setCanSign(const bool canSign)
Sets the flag if the key can be used to sign data to canSign .
Definition: kpgpkey.h:757
iterator begin()
KeyID primaryKeyID() const
Returns the key ID of the primary key or a null string if there are no subkeys.
Definition: kpgpkey.h:787
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.