kgpg
caff.cpp
Go to the documentation of this file.
37 KGpgCaffPrivate::KGpgCaffPrivate(KGpgCaff *parent, const KGpgSignableNode::List &ids, const QStringList &signers,
114 KGpgSignUid *signuid = new KGpgSignUid(this, m_signers.first(), m_allids.first(), false, m_checklevel);
153 ids << i18nc("%1 is the key id, %2 is the name and comment of the key or uid, %3 is the email address of the uid",
157 i18np("No mail was sent for the following user id because it belongs to a key without encryption capability:",
158 "No mail was sent for the following user ids because they belong to keys without encryption capability:",
171 ids << i18nc("%1 is the key id, %2 is the name and comment of the key or uid, %3 is the email address of the uid",
193 if ((result == KGpgSignTransactionHelper::TS_ALREADY_SIGNED) && (m_flags & KGpgCaff::IgnoreAlreadySigned)) {
308 body.replace(QLatin1Char( '%' ) + i18nc("Email template placeholder for key id", "KEYID") + QLatin1Char( '%' ), key->getId());
309 body.replace(QLatin1Char( '%' ) + i18nc("Email template placeholder for key id", "UIDNAME") + QLatin1Char( '%' ), uid->getNameComment());
313 KGpgEncrypt *enc = new KGpgEncrypt(this, QStringList(key->getId()), body, KGpgEncrypt::AsciiArmored | KGpgEncrypt::AllowUntrustedEncryption);
357 KGpgCaff::KGpgCaff(QObject *parent, const KGpgSignableNode::List &ids, const QStringList &signids,
360 d_ptr(new KGpgCaffPrivate(this, ids, signids, flags, static_cast<KGpgSignTransactionHelper::carefulCheck>(checklevel)))
void clear()
KGpgCaffPrivate(KGpgCaff *parent, const KGpgSignableNode::List &ids, const QStringList &signers, const KGpgCaff::OperationFlags flags, const KGpgSignTransactionHelper::carefulCheck checklevel)
Definition: caff.cpp:37
QString toNativeSeparators(const QString &pathName)
helper class for key signing transactions
Definition: kgpgsigntransactionhelper.h:25
const KGpgSignableNode * getUid(const unsigned int index) const
get the user id or user attribute with the given number
Definition: KGpgKeyNode.cpp:312
KGpgExpandableNode * getParentKeyNode() const
Returns the parent node in the key hierarchy.
Definition: KGpgNode.cpp:330
const QByteArray & getOutputData() const
return the data read from standard output
Definition: kgpgexport.cpp:117
static QString gpgConfigPath()
Get The path of the gpg configuration file.
Definition: kgpgsettings.h:288
output the data as printable ASCII as opposed to binary data
Definition: kgpgencrypt.h:38
QObject * sender() const
void setFile(const QString &file)
void removeFirst()
remove only those other uids that have an email address
Definition: kgpgdeluid.h:40
QString join(const QString &separator) const
Definition: kgpgdeluid.h:27
void reset(T *other)
virtual KgpgCore::KgpgItemType getType() const =0
Returns the item type of this object.
int count(const T &value) const
virtual KGpgKeyNode * getKeyNode(void)=0
returns the key node this node belongs to
static QString emailTemplate()
Get This is the text of the email sent by the "Sign and Mail User ID" action.
Definition: kgpgsettings.h:953
uids that are already signed will not be mailed again
Definition: caff.h:35
user id is alredy signed by given key
Definition: kgpgsigntransactionhelper.h:46
int toInt(bool *ok, int base) const
bool isEmpty() const
QString absoluteFilePath() const
bool isEmpty() const
QDir dir() const
void deleteLater()
T & first()
Definition: caff_p.h:29
bool isNull() const
QString & replace(int position, int n, QChar after)
KGpgSignableNode::const_List m_noEncIds
keys without encryption capability that were skipped
Definition: caff_p.h:51
void setSecringFile(const QString &filename)
add a secret keyring file
Definition: kgpgsigntransactionhelper.cpp:136
T takeFirst()
KGpgCaff(QObject *parent, const KGpgSignableNode::List &ids, const QStringList &signids, const int checklevel=0, const OperationFlags flags=DefaultMode)
create a new object to sign and mail key ids
Definition: caff.cpp:357
static QStringList getImportedIds(const QStringList &log, const int reason=-1)
get the full fingerprints of the imported keys
Definition: kgpgimport.cpp:59
void setOutputTransaction(KGpgTransaction *outt)
set the transaction the output is sent to
Definition: kgpgexport.cpp:102
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setGnuPGHome(const QString &home)
sets the home directory of GnuPG called for this transaction
Definition: kgpgtransaction.cpp:663
QString getGpgSetting(const QString &name, const QString &configfile)
Definition: kgpginterface.cpp:38
allow encryption with untrusted keys, ignored for symmetric encryption
Definition: kgpgencrypt.h:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:08 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:42:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.