KIdentityManagement
signature.h
25KIDENTITYMANAGEMENTCORE_EXPORT QDataStream &operator<<(QDataStream &stream, const KIdentityManagementCore::Signature &sig);
26KIDENTITYMANAGEMENTCORE_EXPORT QDataStream &operator>>(QDataStream &stream, KIdentityManagementCore::Signature &sig);
41 * in a directory. You must set that directory with setImageLocation(), before calling addImage().
64 friend KIDENTITYMANAGEMENTCORE_EXPORT QDataStream &operator<<(QDataStream &stream, const Signature &sig);
65 friend KIDENTITYMANAGEMENTCORE_EXPORT QDataStream &operator>>(QDataStream &stream, Signature &sig);
110 @param errorMessage If available, contains a human readable explanation for @p ok being @c false.
117 @param errorMessage If available, contains a human readable explanation for @p ok being @c false.
Abstraction of a signature (aka "footer").
Definition signature.h:61
void setPath(const QString &path, bool isExecutable=false)
Set the signature URL and mark this signature as being of "from file" resp.
Definition signature.cpp:288
void setText(const QString &text)
Set the signature text and mark this signature as being of "inline text" type.
Definition signature.cpp:499
void setImageLocation(const QString &path)
Sets the location where the copies of the signature images will be stored.
Definition signature.cpp:470
Placement
Describes the placement of the signature text when it is to be inserted into a text edit.
Definition signature.h:80
void setInlinedHtml(bool isHtml)
Sets the inlined signature to text or html.
Definition signature.cpp:294
bool isInlinedHtml() const
Definition signature.cpp:299
QFlags< AddedTextFlag > AddedText
Describes which additional parts should be added to the signature.
Definition signature.h:203
QString rawText(bool *ok=nullptr, QString *errorMessage=nullptr) const
Definition signature.cpp:240
QString withSeparator(bool *ok=nullptr, QString *errorMessage=nullptr) const
Definition signature.cpp:262
void addImage(const QImage &image, const QString &imageName)
Adds the given image to the signature.
Definition signature.cpp:461
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:51:27 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:51:27 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.