Akonadi Mime
dispatcherinterface.cpp
37 AgentInstance a = AgentManager::self()->instance(QStringLiteral("akonadi_maildispatcher_agent"));
46 Collection outbox = SpecialMailCollections::self()->defaultCollection(SpecialMailCollections::Outbox);
53 QObject::connect(mjob, &KJob::result, sInstance(), &DispatcherInterfacePrivate::massModifyResult);
58 Collection outbox = SpecialMailCollections::self()->defaultCollection(SpecialMailCollections::Outbox);
65 QObject::connect(mjob, &KJob::result, sInstance(), &DispatcherInterfacePrivate::massModifyResult);
70 Collection outbox = SpecialMailCollections::self()->defaultCollection(SpecialMailCollections::Outbox);
76 auto mjob = new FilterActionJob(outbox, new DispatchManualTransportAction(transportId), sInstance);
77 QObject::connect(mjob, &KJob::result, sInstance(), &DispatcherInterfacePrivate::massModifyResult);
bool isValid() const
static AgentManager * self()
AgentInstance instance(const QString &identifier) const
bool isValid() const
DispatcherInterface()
Creates a new dispatcher interface.
void retryDispatching()
Looks for messages in the outbox with ErrorAttribute, and clears them and queues them again for sendi...
Definition dispatcherinterface.cpp:56
void dispatchManualTransport(int transportId)
Looks for messages in the outbox with DispatchMode::Manual and changes the Transport for them to the ...
Definition dispatcherinterface.cpp:68
void dispatchManually()
Looks for messages in the outbox with DispatchMode::Manual and marks them DispatchMode::Automatic for...
Definition dispatcherinterface.cpp:44
Akonadi::AgentInstance dispatcherInstance() const
Returns the current instance of the mail dispatcher agent.
Definition dispatcherinterface.cpp:35
static SpecialMailCollections * self()
Returns the global SpecialMailCollections instance.
Definition specialmailcollections.cpp:76
Akonadi::Collection defaultCollection(Type type) const
Returns the special mail collection of given type in the default resource, or an invalid collection i...
Definition specialmailcollections.cpp:110
virtual QString errorString() const
int error() const
void result(KJob *job)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.