Messagelib
signaturecontroller.cpp
57 const KIdentityManagement::Identity &newIdentity = d->m_identityCombo->identityManager()->identityForUoid(id);
62 const KIdentityManagement::Identity &oldIdentity = d->m_identityCombo->identityManager()->identityForUoidOrDefault(d->m_currentIdentityId);
64 const KIdentityManagement::Signature oldSig = const_cast<KIdentityManagement::Identity &>(oldIdentity).signature();
65 const KIdentityManagement::Signature newSig = const_cast<KIdentityManagement::Identity &>(newIdentity).signature();
79 disconnect(d->m_identityCombo, &KIdentityManagement::IdentityCombo::identityChanged, this, &SignatureController::identityChanged);
86 connect(d->m_identityCombo, &KIdentityManagement::IdentityCombo::identityChanged, this, &SignatureController::identityChanged);
110 const KIdentityManagement::Identity &ident = d->m_identityCombo->identityManager()->identityForUoidOrDefault(d->m_identityCombo->currentIdentity());
111 const KIdentityManagement::Signature signature = const_cast<KIdentityManagement::Identity &>(ident).signature();
115 void SignatureController::insertSignatureHelper(KIdentityManagement::Signature::Placement placement)
124 const_cast<KIdentityManagement::Identity &>(d->m_identityCombo->identityManager()->identityForUoidOrDefault(d->m_identityCombo->currentIdentity()));
131 KIdentityManagement::Signature::AddedText addedText = KIdentityManagement::Signature::AddNewLines;
136 if ((placement == KIdentityManagement::Signature::Start) || (placement == KIdentityManagement::Signature::End)) {
147 if (MessageComposer::MessageComposerSettings::self()->autoTextSignature() == QLatin1String("auto")) {
void resume()
Resume identity change tracking after a previous call to suspend().
Definition: signaturecontroller.cpp:83
bool isNull() const
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
Definition: attachmentcontrollerbase.h:25
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
Q_EMITQ_EMIT
void identityChanged(uint uoid)
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
bool isInlinedHtml() const
void appendSignature()
Append signature to the end of the text in the editor.
Definition: signaturecontroller.cpp:90
AddNewLines
bool isEmpty() const const
void insertSignatureAtCursor()
Insert signature at the cursor position of the text in the editor.
Definition: signaturecontroller.cpp:100
void applySignature(const KIdentityManagement::Signature &signature)
Adds the given signature to the editor, taking user preferences into account.
Definition: signaturecontroller.cpp:141
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
AddSeparator
Type type() const
void enableHtml()
A HTML signature is about to be inserted, so enable HTML support in the editor.
QString rawText(bool *ok=nullptr, QString *errorMessage=nullptr) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:01:57 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:01:57 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.