libkpgp
kpgpbaseG.cpp
Go to the documentation of this file.
389 exitStatus = runGpg( QByteArray(QByteArray("--batch --list-public-keys --with-fingerprint --with-colons --fixed-list-mode 0x") + keyID), 0, true );
391 exitStatus = runGpg( QByteArray(QByteArray("--batch --list-public-keys --with-fingerprint --with-colons --fixed-list-mode --no-expensive-trust-checks 0x") + keyID), 0, true );
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
virtual KeyList publicKeys(const QStringList &patterns=QStringList())
Returns the list of public keys in the users public keyring.
Definition: kpgpbaseG.cpp:417
short toShort(bool *ok, int base) const
void setFingerprint(const KeyID &keyID, const QByteArray &fpr)
Sets the fingerprint of the given subkey to fpr .
Definition: kpgpkey.cpp:252
void setSignatureDate(const QByteArray &date)
Definition: kpgpblock.h:278
virtual int signKey(const KeyID &keyID, const char *passphrase)
Signs the given key with the currently set user key.
Definition: kpgpbaseG.cpp:481
QByteArray trimmed() const
Definition: kpgpblock.h:56
int lastIndexOf(char ch, int from) const
const KeyID user() const
Returns the actual key ID of the currently set key.
Definition: kpgp.cpp:160
virtual int encrypt(Block &block, const KeyIDList &recipients)
Encrypts the message with the given keys.
Definition: kpgpbaseG.cpp: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
virtual KeyList secretKeys(const QStringList &patterns=QStringList())
Returns the list of secret keys in the users secret keyring.
Definition: kpgpbaseG.cpp:449
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: kpgpbaseG.cpp:381
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
int count(const T &value) const
QString fromUtf8(const char *str, int size)
virtual int decrypt(Block &block, const char *passphrase=0)
Decrypts the message.
Definition: kpgpbaseG.cpp:206
void setSignatureUserId(const QString &userId)
Definition: kpgpblock.h:254
void setInvalid(const bool invalid)
Sets the flag if the key is invalid to invalid .
Definition: kpgpkey.h:747
Definition: kpgpblock.h:58
bool isEmpty() const
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)
Definition: kpgpkey.h:35
Definition: kpgpkey.h:57
Definition: kpgpblock.h:49
Definition: kpgpblock.h:46
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
QByteArray & append(char ch)
iterator end()
Definition: kpgpkey.h:37
virtual int clearsign(Block &block, const char *passphrase)
Clearsigns the message with the currently set key.
Definition: kpgpbaseG.cpp:63
long toLong(bool *ok, int base) const
void setSignatureKeyId(const QByteArray &keyId)
Definition: kpgpblock.h:266
Definition: kpgpblock.h:57
virtual int runGpg(const char *cmd, const char *passphrase=0, bool onlyReadFromGnuPG=false)
Definition: kpgpbase.cpp:390
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
Definition: kpgpbase.h:30
void setExpired(const bool expired)
Sets the flag if the key has expired to expired .
Definition: kpgpkey.h:737
QTextCodec * codecForName(const QByteArray &name)
void setProcessedText(const QByteArray &str)
Definition: kpgpblock.h:209
typedef ConstIterator
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
Definition: kpgpkey.h:36
int length() const
char * data()
Definition: kpgpblock.h:48
QString fromLatin1(const char *str, int size)
Definition: kpgpblock.h:53
virtual int encsign(Block &block, const KeyIDList &recipients, const char *passphrase=0)
Encrypts and signs the message with the given keys.
Definition: kpgpbaseG.cpp:70
Definition: kpgpblock.h:50
virtual QByteArray getAsciiPublicKey(const KeyID &keyID)
Returns the ascii armored data of the public key with the given key id.
Definition: kpgpbaseG.cpp:502
void setCanSign(const bool canSign)
Sets the flag if the key can be used to sign data to canSign .
Definition: kpgpkey.h:757
Definition: kpgpblock.h:52
iterator begin()
QString toUnicode(const QByteArray &a) const
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.