mailcommon
mailkernel.cpp
Go to the documentation of this file.
163 // we don't connect to the job directly: it will register stuff into SpecialMailCollections, which will emit signals.
200 Akonadi::SpecialMailCollections::self()->verifyI18nDefaultCollection( Akonadi::SpecialMailCollections::Inbox );
201 Akonadi::SpecialMailCollections::self()->verifyI18nDefaultCollection( Akonadi::SpecialMailCollections::Outbox );
202 Akonadi::SpecialMailCollections::self()->verifyI18nDefaultCollection( Akonadi::SpecialMailCollections::SentMail );
203 Akonadi::SpecialMailCollections::self()->verifyI18nDefaultCollection( Akonadi::SpecialMailCollections::Drafts );
204 Akonadi::SpecialMailCollections::self()->verifyI18nDefaultCollection( Akonadi::SpecialMailCollections::Trash );
205 Akonadi::SpecialMailCollections::self()->verifyI18nDefaultCollection( Akonadi::SpecialMailCollections::Templates );
243 if ( col == Akonadi::SpecialMailCollections::self()->defaultCollection( Akonadi::SpecialMailCollections::Outbox ) ) {
252 if ( col == Akonadi::SpecialMailCollections::self()->defaultCollection( Akonadi::SpecialMailCollections::Drafts ) ) {
274 if ( col == Akonadi::SpecialMailCollections::self()->defaultCollection( Akonadi::SpecialMailCollections::Templates ) ) {
299 trashCol = Akonadi::SpecialMailCollections::self()->collection(Akonadi::SpecialMailCollections::Trash, agent);
306 if ( col == Akonadi::SpecialMailCollections::self()->defaultCollection( Akonadi::SpecialMailCollections::Trash ) ) {
312 const Akonadi::Collection trash = Akonadi::SpecialMailCollections::self()->collection(Akonadi::SpecialMailCollections::Trash, agent);
322 if ( col == Akonadi::SpecialMailCollections::self()->defaultCollection( Akonadi::SpecialMailCollections::SentMail ) ) {
342 bool Kernel::folderIsInbox( const Akonadi::Collection &collection, bool withoutPop3InboxSetting )
350 if ( collection == Akonadi::SpecialMailCollections::self()->defaultCollection( Akonadi::SpecialMailCollections::Inbox ) ) {
bool folderIsTrash(const Akonadi::Collection &collection)
Returns true if the folder is a trash folder.
Definition: mailkernel.cpp:304
MAILCOMMON_EXPORT Akonadi::AgentInstance::List agentInstances(bool excludeMailTransport=true)
Definition: mailutil.cpp:147
bool isMainFolderCollection(const Akonadi::Collection &col)
Returns true if this folder is the inbox on the local disk.
Definition: mailkernel.cpp:144
bool folderIsTemplates(const Akonadi::Collection &collection)
Definition: mailkernel.cpp:272
bool folderIsSentMailFolder(const Akonadi::Collection &)
Returns true if the folder is one of the sent-mail folders.
Definition: mailkernel.cpp:320
Akonadi::Collection sentCollectionFolder()
Definition: mailkernel.cpp:113
void emergencyExit(const QString &reason)
Definition: mailkernel.cpp:218
Akonadi::Collection trashCollectionFolder()
Definition: mailkernel.cpp:92
Akonadi::Collection inboxCollectionFolder()
Definition: mailkernel.cpp:99
T value() const
static bool folderIsInbox(const Akonadi::Collection &, bool withoutPop3InboxSetting=false)
Definition: mailkernel.cpp:342
Akonadi::Collection templatesCollectionFolder()
Definition: mailkernel.cpp:127
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QString number(int n, int base)
Akonadi::Collection trashCollectionFromResource(const Akonadi::Collection &col)
Returns the trash folder for the resource which col belongs to.
Definition: mailkernel.cpp:294
bool isEmpty() const
bool folderIsDrafts(const Akonadi::Collection &)
Definition: mailkernel.cpp:250
Deals with common mail application related operations.
Definition: mailkernel.h:44
Akonadi::Collection collectionFromId(const Akonadi::Collection::Id &id) const
Returns the collection associated with the given id, or an invalid collection if not found...
Definition: mailkernel.cpp:83
bool folderIsDraftOrOutbox(const Akonadi::Collection &collection)
Returns true if the folder is either the outbox or one of the drafts-folders.
Definition: mailkernel.cpp:241
QVariant data(int role) const
bool isSystemFolderCollection(const Akonadi::Collection &col)
Definition: mailkernel.cpp:134
Akonadi::Collection outboxCollectionFolder()
Definition: mailkernel.cpp:106
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Akonadi::Collection draftsCollectionFolder()
Definition: mailkernel.cpp:120
PimCommon::ImapResourceCapabilitiesManager * imapResourceManager() const
Definition: mailkernel.cpp:78
MAILCOMMON_EXPORT OrgKdeAkonadiPOP3SettingsInterface * createPop3SettingsInterface(const QString &ident)
Definition: mailutil.cpp:89
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.