MessageComposer::ComposerViewBase
#include <composerviewbase.h>
Signals | |
void | disableHtml (MessageComposer::ComposerViewBase::Confirmation) |
void | enableHtml () |
void | failed (const QString &errorMessage, MessageComposer::ComposerViewBase::FailedType type=Sending) |
void | modified (bool isModified) |
void | sentSuccessfully (Akonadi::Item::Id id) |
void | tooManyRecipient (bool) |
Public Slots | |
void | autoSaveMessage () |
void | identityChanged (const KIdentityManagementCore::Identity &ident, const KIdentityManagementCore::Identity &oldIdent, bool msgCleared=false) |
Detailed Description
The ComposerViewBase class.
Definition at line 72 of file composerviewbase.h.
Member Enumeration Documentation
◆ Confirmation
enum MessageComposer::ComposerViewBase::Confirmation |
Definition at line 79 of file composerviewbase.h.
◆ FailedType
enum MessageComposer::ComposerViewBase::FailedType |
Definition at line 90 of file composerviewbase.h.
◆ MissingAttachment
enum MessageComposer::ComposerViewBase::MissingAttachment |
Definition at line 83 of file composerviewbase.h.
Constructor & Destructor Documentation
◆ ComposerViewBase()
|
explicit |
Definition at line 84 of file composerviewbase.cpp.
Member Function Documentation
◆ addAttachment() [1/2]
void ComposerViewBase::addAttachment | ( | const QString & | name, |
const QString & | filename, | ||
const QString & | charset, | ||
const QByteArray & | data, | ||
const QByteArray & | mimeType ) |
Definition at line 1509 of file composerviewbase.cpp.
◆ addAttachment() [2/2]
Add the given attachment to the message.
Definition at line 1498 of file composerviewbase.cpp.
◆ addAttachmentPart()
void ComposerViewBase::addAttachmentPart | ( | KMime::Content * | part | ) |
Definition at line 1524 of file composerviewbase.cpp.
◆ attachmentController()
MessageComposer::AttachmentControllerBase * ComposerViewBase::attachmentController | ( | ) |
Definition at line 1636 of file composerviewbase.cpp.
◆ attachmentModel()
MessageComposer::AttachmentModel * ComposerViewBase::attachmentModel | ( | ) |
Definition at line 1646 of file composerviewbase.cpp.
◆ autocryptEnabled()
bool ComposerViewBase::autocryptEnabled | ( | ) | const |
Definition at line 1621 of file composerviewbase.cpp.
◆ autoSaveMessage
|
slot |
Save the message.
Definition at line 1271 of file composerviewbase.cpp.
◆ bcc()
QString ComposerViewBase::bcc | ( | ) | const |
Definition at line 1590 of file composerviewbase.cpp.
◆ cc()
QString ComposerViewBase::cc | ( | ) | const |
Definition at line 1581 of file composerviewbase.cpp.
◆ checkForMissingAttachments()
ComposerViewBase::MissingAttachment ComposerViewBase::checkForMissingAttachments | ( | const QStringList & | attachmentKeywords | ) |
Check if the mail has references to attachments, but no attachments are added to it.
If missing attachments are found, a dialog to add new attachments is shown.
- Parameters
-
attachmentKeywords a list with the keywords that indicate an attachment should be present
- Returns
- NoMissingAttachmentFound, if there is attachment in email FoundMissingAttachmentAndCancelSending, if mail might miss attachment but sending FoundMissingAttachmentAndAddedAttachment, if mail might miss attachment and we added an attachment FoundMissingAttachmentAndCancel, if mail might miss attachment and cancel sending
Definition at line 1899 of file composerviewbase.cpp.
◆ cleanupAutoSave()
void ComposerViewBase::cleanupAutoSave | ( | ) |
Stop autosaving and delete the autosaved message.
Definition at line 1244 of file composerviewbase.cpp.
◆ clearFollowUp()
void ComposerViewBase::clearFollowUp | ( | ) |
Definition at line 306 of file composerviewbase.cpp.
◆ currentIdentity()
const KIdentityManagementCore::Identity & ComposerViewBase::currentIdentity | ( | ) | const |
Definition at line 1616 of file composerviewbase.cpp.
◆ dictionary()
Sonnet::DictionaryComboBox * ComposerViewBase::dictionary | ( | ) | const |
Definition at line 1216 of file composerviewbase.cpp.
◆ disableHtml
|
signal |
Enabling or disabling HTML in the editor is affected by various client options, so when that would otherwise happen, hand it off to the client to enact it for real.
◆ editor()
MessageComposer::RichTextComposerNg * ComposerViewBase::editor | ( | ) | const |
Definition at line 1749 of file composerviewbase.cpp.
◆ expiryChecker()
std::shared_ptr< Kleo::ExpiryChecker > ComposerViewBase::expiryChecker | ( | ) |
Definition at line 2258 of file composerviewbase.cpp.
◆ failed
|
signal |
Message sending failed with given error message.
◆ fccCombo()
Akonadi::CollectionComboBox * ComposerViewBase::fccCombo | ( | ) | const |
Definition at line 1803 of file composerviewbase.cpp.
◆ fillComposer()
void ComposerViewBase::fillComposer | ( | MessageComposer::Composer * | composer | ) |
Definition at line 1556 of file composerviewbase.cpp.
◆ followUpCollection()
Akonadi::Collection ComposerViewBase::followUpCollection | ( | ) | const |
Definition at line 1196 of file composerviewbase.cpp.
◆ followUpDate()
QDate ComposerViewBase::followUpDate | ( | ) | const |
Definition at line 1206 of file composerviewbase.cpp.
◆ from()
QString ComposerViewBase::from | ( | ) | const |
Definition at line 1598 of file composerviewbase.cpp.
◆ hasMissingAttachments()
bool ComposerViewBase::hasMissingAttachments | ( | const QStringList & | attachmentKeywords | ) |
Definition at line 1887 of file composerviewbase.cpp.
◆ identityChanged
|
slot |
Definition at line 1722 of file composerviewbase.cpp.
◆ identityCombo()
KIdentityManagementWidgets::IdentityCombo * ComposerViewBase::identityCombo | ( | ) |
Definition at line 1676 of file composerviewbase.cpp.
◆ identityManager()
KIdentityManagementCore::IdentityManager * ComposerViewBase::identityManager | ( | ) |
Definition at line 1769 of file composerviewbase.cpp.
◆ isComposing()
bool ComposerViewBase::isComposing | ( | ) | const |
Returns true if there is at least one composer job running.
Definition at line 98 of file composerviewbase.cpp.
◆ modified
|
signal |
The composer was modified.
This can happen behind the users' back when, for example, and autosaved message was recovered.
◆ msg()
KMime::Message::Ptr ComposerViewBase::msg | ( | ) | const |
Definition at line 2253 of file composerviewbase.cpp.
◆ recipientsEditor()
MessageComposer::RecipientsEditor * ComposerViewBase::recipientsEditor | ( | ) |
Definition at line 1656 of file composerviewbase.cpp.
◆ replyTo()
QString ComposerViewBase::replyTo | ( | ) | const |
Definition at line 1603 of file composerviewbase.cpp.
◆ requestDeleveryConfirmation()
bool ComposerViewBase::requestDeleveryConfirmation | ( | ) | const |
Definition at line 2243 of file composerviewbase.cpp.
◆ saveMailSettings()
void ComposerViewBase::saveMailSettings | ( | ) |
Definition at line 258 of file composerviewbase.cpp.
◆ send()
void ComposerViewBase::send | ( | MessageComposer::MessageSender::SendMethod | method, |
MessageComposer::MessageSender::SaveIn | saveIn, | ||
bool | checkMailDispatcher = true ) |
Send the message with the specified method, saving it in the specified folder.
Definition at line 312 of file composerviewbase.cpp.
◆ sendLaterInfo()
SendLaterInfo * ComposerViewBase::sendLaterInfo | ( | ) | const |
Definition at line 2215 of file composerviewbase.cpp.
◆ sentSuccessfully
|
signal |
Message sending completed successfully.
◆ setAttachmentController()
void ComposerViewBase::setAttachmentController | ( | MessageComposer::AttachmentControllerBase * | controller | ) |
Definition at line 1631 of file composerviewbase.cpp.
◆ setAttachmentModel()
void ComposerViewBase::setAttachmentModel | ( | MessageComposer::AttachmentModel * | model | ) |
The following are for setting the various options and widgets in the composer.
Definition at line 1641 of file composerviewbase.cpp.
◆ setAutoSaveFileName()
Sets the filename to use when autosaving something.
This is used when the client recovers the autosave files: It calls this method, so that the composer uses the same filename again. That way, the recovered autosave file is properly cleaned up in cleanupAutoSave():
Definition at line 1294 of file composerviewbase.cpp.
◆ setAutoSaveInterval()
void ComposerViewBase::setAutoSaveInterval | ( | int | interval | ) |
Definition at line 1822 of file composerviewbase.cpp.
◆ setCharsets()
void ComposerViewBase::setCharsets | ( | const QList< QByteArray > & | charsets | ) |
Definition at line 1835 of file composerviewbase.cpp.
◆ setCryptoOptions()
void ComposerViewBase::setCryptoOptions | ( | bool | sign, |
bool | encrypt, | ||
Kleo::CryptoMessageFormat | format, | ||
bool | neverEncryptDrafts = false ) |
The following are various settings the user can modify when composing a message.
If they are not set, the default values will be used.
Definition at line 1827 of file composerviewbase.cpp.
◆ setCustomHeader()
void ComposerViewBase::setCustomHeader | ( | const QMap< QByteArray, QString > & | customHeader | ) |
Definition at line 369 of file composerviewbase.cpp.
◆ setDictionary()
void ComposerViewBase::setDictionary | ( | Sonnet::DictionaryComboBox * | dictionary | ) |
Definition at line 1221 of file composerviewbase.cpp.
◆ setEditor()
void ComposerViewBase::setEditor | ( | MessageComposer::RichTextComposerNg * | editor | ) |
Definition at line 1743 of file composerviewbase.cpp.
◆ setFcc()
void ComposerViewBase::setFcc | ( | const Akonadi::Collection & | id | ) |
Definition at line 1774 of file composerviewbase.cpp.
◆ setFccCombo()
void ComposerViewBase::setFccCombo | ( | Akonadi::CollectionComboBox * | fcc | ) |
Definition at line 1798 of file composerviewbase.cpp.
◆ setFollowUpCollection()
void ComposerViewBase::setFollowUpCollection | ( | const Akonadi::Collection & | followUpCollection | ) |
Definition at line 1201 of file composerviewbase.cpp.
◆ setFollowUpDate()
Definition at line 1211 of file composerviewbase.cpp.
◆ setFrom()
Widgets for editing differ in client classes, so values are set before sending.
Definition at line 1808 of file composerviewbase.cpp.
◆ setIdentityCombo()
void ComposerViewBase::setIdentityCombo | ( | KIdentityManagementWidgets::IdentityCombo * | identCombo | ) |
Definition at line 1671 of file composerviewbase.cpp.
◆ setIdentityManager()
void ComposerViewBase::setIdentityManager | ( | KIdentityManagementCore::IdentityManager * | identMan | ) |
Definition at line 1764 of file composerviewbase.cpp.
◆ setMDNRequested()
void ComposerViewBase::setMDNRequested | ( | bool | mdnRequested | ) |
Definition at line 1840 of file composerviewbase.cpp.
◆ setMessage()
void ComposerViewBase::setMessage | ( | const KMime::Message::Ptr & | newMsg, |
bool | allowDecryption ) |
Set the message to be opened in the composer window, and set the internal data structures to keep track of it.
Definition at line 103 of file composerviewbase.cpp.
◆ setParentWidgetForGui()
Definition at line 1626 of file composerviewbase.cpp.
◆ setRecipientsEditor()
void ComposerViewBase::setRecipientsEditor | ( | MessageComposer::RecipientsEditor * | recEditor | ) |
Definition at line 1651 of file composerviewbase.cpp.
◆ setRequestDeleveryConfirmation()
void ComposerViewBase::setRequestDeleveryConfirmation | ( | bool | requestDeleveryConfirmation | ) |
Definition at line 2248 of file composerviewbase.cpp.
◆ setSendLaterInfo()
void ComposerViewBase::setSendLaterInfo | ( | SendLaterInfo * | info | ) |
Definition at line 2210 of file composerviewbase.cpp.
◆ setSignatureController()
void ComposerViewBase::setSignatureController | ( | MessageComposer::SignatureController * | sigController | ) |
Definition at line 1661 of file composerviewbase.cpp.
◆ setSubject()
Definition at line 1813 of file composerviewbase.cpp.
◆ setTransportCombo()
void ComposerViewBase::setTransportCombo | ( | MailTransport::TransportComboBox * | transpCombo | ) |
Definition at line 1754 of file composerviewbase.cpp.
◆ setUrgent()
void ComposerViewBase::setUrgent | ( | bool | urgent | ) |
Definition at line 1845 of file composerviewbase.cpp.
◆ signatureController()
MessageComposer::SignatureController * ComposerViewBase::signatureController | ( | ) |
Definition at line 1666 of file composerviewbase.cpp.
◆ subject()
QString ComposerViewBase::subject | ( | ) | const |
Definition at line 1611 of file composerviewbase.cpp.
◆ to()
QString ComposerViewBase::to | ( | ) | const |
Header fields in recipients editor.
Definition at line 1572 of file composerviewbase.cpp.
◆ transportComboBox()
MailTransport::TransportComboBox * ComposerViewBase::transportComboBox | ( | ) | const |
Definition at line 1759 of file composerviewbase.cpp.
◆ updateAutoSave()
void ComposerViewBase::updateAutoSave | ( | ) |
Enables/disables autosaving depending on the value of the autosave interval.
Definition at line 1226 of file composerviewbase.cpp.
◆ updateTemplate()
void ComposerViewBase::updateTemplate | ( | const KMime::Message::Ptr & | msg | ) |
Definition at line 232 of file composerviewbase.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:44 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.