Akonadi Mime
messagequeuejob.cpp
63 if ((addressAttribute.to().count() + addressAttribute.cc().count() + addressAttribute.bcc().count()) == 0) {
70 if (sentBehaviourAttribute.sentBehaviour() == SentBehaviourAttribute::MoveToCollection && !(sentBehaviourAttribute.moveToCollection().isValid())) {
75 } else if (sentBehaviourAttribute.sentBehaviour() == SentBehaviourAttribute::MoveToDefaultSentCollection) {
Attribute storing the From, To, Cc, Bcc addresses of a message.
Definition addressattribute.h:29
QStringList to() const
Returns the addresses of the "To:" receivers.
Definition addressattribute.cpp:88
QStringList cc() const
Returns the addresses of the "Cc:" receivers.
Definition addressattribute.cpp:98
QStringList bcc() const
Returns the addresses of the "Bcc:" receivers.
Definition addressattribute.cpp:108
bool isValid() const
Attribute determining how and when a message from the outbox should be dispatched.
Definition dispatchmodeattribute.h:30
KMime::Message::Ptr message() const
Returns the message to be sent.
Definition messagequeuejob.cpp:135
DispatchModeAttribute & dispatchModeAttribute()
Returns a reference to the dispatch mode attribute for this message.
Definition messagequeuejob.cpp:140
Akonadi::AddressAttribute & addressAttribute()
Returns a reference to the address attribute for this message.
Definition messagequeuejob.cpp:145
void slotResult(KJob *) override
Called when the ItemCreateJob subjob finishes.
Definition messagequeuejob.cpp:180
void setMessage(const KMime::Message::Ptr &message)
Sets the message to be sent.
Definition messagequeuejob.cpp:165
TransportAttribute & transportAttribute()
Returns a reference to the transport attribute for this message.
Definition messagequeuejob.cpp:150
SentBehaviourAttribute & sentBehaviourAttribute()
Returns a reference to the sent behaviour attribute for this message.
Definition messagequeuejob.cpp:155
void start() override
Creates the item and places it in the outbox.
Definition messagequeuejob.cpp:170
MessageQueueJob(QObject *parent=nullptr)
Creates a new MessageQueueJob.
Definition messagequeuejob.cpp:127
SentActionAttribute & sentActionAttribute()
Returns a reference to the sent action attribute for this message.
Definition messagequeuejob.cpp:160
An Attribute that stores the action to execute after sending.
Definition sentactionattribute.h:34
Attribute determining what will happen to a message after it is sent.
Definition sentbehaviourattribute.h:29
@ MoveToDefaultSentCollection
Move the item to the default sent-mail collection.
Definition sentbehaviourattribute.h:37
SentBehaviour sentBehaviour() const
Returns the sent-behaviour of the message.
Definition sentbehaviourattribute.cpp:92
Akonadi::Collection moveToCollection() const
Returns the collection to which the item should be moved after it is sent.
Definition sentbehaviourattribute.cpp:102
A job to request SpecialMailCollections.
Definition specialmailcollectionsrequestjob.h:61
Attribute determining which transport to use for sending a message.
Definition transportattribute.h:29
virtual bool addSubjob(KJob *job)
virtual void slotResult(KJob *job)
void setErrorText(const QString &errorText)
virtual QString errorString() const
void emitResult()
int error() const
void result(KJob *job)
void setError(int errorCode)
QString i18n(const char *text, const TYPE &arg...)
AKONADI_MIME_EXPORT void copyMessageFlags(KMime::Message &from, Akonadi::Item &to)
Copies all message flags from a KMime::Message object into an Akonadi::Item object.
Definition messageflags.cpp:33
AKONADI_MIME_EXPORT const char Queued[]
The flag for a message being marked as queued.
Definition messageflags.cpp:22
qsizetype count() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void setFlag(Flag flag, bool enabled)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:12:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:12:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.