Messagelib
signaturecontroller.cpp
57 const KIdentityManagementCore::Identity &newIdentity = d->m_identityCombo->identityManager()->identityForUoid(id);
62 const KIdentityManagementCore::Identity &oldIdentity = d->m_identityCombo->identityManager()->identityForUoidOrDefault(d->m_currentIdentityId);
64 const KIdentityManagementCore::Signature oldSig = const_cast<KIdentityManagementCore::Identity &>(oldIdentity).signature();
65 const KIdentityManagementCore::Signature newSig = const_cast<KIdentityManagementCore::Identity &>(newIdentity).signature();
79 disconnect(d->m_identityCombo, &KIdentityManagementWidgets::IdentityCombo::identityChanged, this, &SignatureController::identityChanged);
86 connect(d->m_identityCombo, &KIdentityManagementWidgets::IdentityCombo::identityChanged, this, &SignatureController::identityChanged);
110 const KIdentityManagementCore::Identity &ident = d->m_identityCombo->identityManager()->identityForUoidOrDefault(d->m_identityCombo->currentIdentity());
111 const KIdentityManagementCore::Signature signature = const_cast<KIdentityManagementCore::Identity &>(ident).signature();
115void SignatureController::insertSignatureHelper(KIdentityManagementCore::Signature::Placement placement)
124 const_cast<KIdentityManagementCore::Identity &>(d->m_identityCombo->identityManager()->identityForUoidOrDefault(d->m_identityCombo->currentIdentity()));
127 if (signature.isInlinedHtml() && signature.type() == KIdentityManagementCore::Signature::Inlined) {
131 KIdentityManagementCore::Signature::AddedText addedText = KIdentityManagementCore::Signature::AddNewLines;
136 if ((placement == KIdentityManagementCore::Signature::Start) || (placement == KIdentityManagementCore::Signature::End)) {
147 if (MessageComposer::MessageComposerSettings::self()->autoTextSignature() == QLatin1StringView("auto")) {
bool isNull() const
Signature & signature()
bool isInlinedHtml() const
AddSeparator
QString rawText(bool *ok=nullptr, QString *errorMessage=nullptr) const
Type type() const
void identityChanged(KIdentityManagementCore::Identity::Id uoid)
KIdentityManagementCore::Identity::Id currentIdentity() const
void insertSignatureAtCursor()
Insert signature at the cursor position of the text in the editor.
Definition signaturecontroller.cpp:100
void appendSignature()
Append signature to the end of the text in the editor.
Definition signaturecontroller.cpp:90
void resume()
Resume identity change tracking after a previous call to suspend().
Definition signaturecontroller.cpp:83
void suspend()
Temporarily disable identity tracking, useful for initial loading for example.
Definition signaturecontroller.cpp:76
void prependSignature()
Prepend signature at the beginning of the text in the editor.
Definition signaturecontroller.cpp:95
void applySignature(const KIdentityManagementCore::Signature &signature)
Adds the given signature to the editor, taking user preferences into account.
Definition signaturecontroller.cpp:141
void enableHtml()
A HTML signature is about to be inserted, so enable HTML support in the editor.
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
Definition attachmentcontrollerbase.h:27
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool disconnect(const QMetaObject::Connection &connection)
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.