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);
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
void result(KJob *job)
DispatcherInterface()
Creates a new dispatcher interface.
Akonadi::AgentInstance dispatcherInstance() const
Returns the current instance of the mail dispatcher agent.
Definition: dispatcherinterface.cpp:35
void dispatchManually()
Looks for messages in the outbox with DispatchMode::Manual and marks them DispatchMode::Automatic for...
Definition: dispatcherinterface.cpp:44
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
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
Q_GLOBAL_STATIC(Internal::StaticControl, s_instance) class ControlPrivate
AgentInstance instance(const QString &identifier) const
static SpecialMailCollections * self()
Returns the global SpecialMailCollections instance.
Definition: specialmailcollections.cpp:76
static AgentManager * self()
void retryDispatching()
Looks for messages in the outbox with ErrorAttribute, and clears them and queues them again for sendi...
Definition: dispatcherinterface.cpp:56
bool isValid() const
virtual QString errorString() const
int error() const
bool isValid() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 03:53:46 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 03:53:46 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.