MailCommon::Util

MailCommon::Util Namespace Reference

Functions

MAILCOMMON_EXPORT Akonadi::AgentInstance::List agentInstances (bool excludeMailTransport=true)
 
MAILCOMMON_EXPORT Akonadi::Collection::Id convertFolderPathToCollectionId (const QString &folder)
 
MAILCOMMON_EXPORT QString convertFolderPathToCollectionStr (const QString &folder)
 
MAILCOMMON_EXPORT OrgKdeAkonadiPOP3SettingsInterface * createPop3SettingsInterface (const QString &ident)
 
MAILCOMMON_EXPORT void expireOldMessages (const Akonadi::Collection &collection, bool immediate)
 
MAILCOMMON_EXPORT uint folderIdentity (const Akonadi::Item &item)
 
MAILCOMMON_EXPORT QStringList foundMailer ()
 
MAILCOMMON_EXPORT void foundMailer (QStringList &lst, const QString &name)
 
MAILCOMMON_EXPORT QString fullCollectionPath (const Akonadi::Collection &collection, bool addAccountName=true)
 
MAILCOMMON_EXPORT QString fullCollectionRemoveIdPath (const Akonadi::Collection &collection, bool addAccountName=true)
 
MAILCOMMON_EXPORT bool isLocalCollection (const QString &resource)
 
MAILCOMMON_EXPORT bool isMailAgent (const Akonadi::AgentInstance &instance, bool excludeMailTransport=true)
 
MAILCOMMON_EXPORT bool isUnifiedMailboxesAgent (const Akonadi::Collection &col)
 
MAILCOMMON_EXPORT bool isVirtualCollection (const Akonadi::Collection &col)
 
MAILCOMMON_EXPORT bool isVirtualCollection (const QString &resource)
 
MAILCOMMON_EXPORT QString realFolderPath (const QString &path)
 
MAILCOMMON_EXPORT bool showJobErrorMessage (KJob *job)
 

Detailed Description

The Util namespace contains a collection of helper functions use in various places.

Function Documentation

◆ agentInstances()

Akonadi::AgentInstance::List MailCommon::Util::agentInstances ( bool excludeMailTransport = true)

Definition at line 145 of file mailutil.cpp.

◆ convertFolderPathToCollectionId()

Akonadi::Collection::Id MailCommon::Util::convertFolderPathToCollectionId ( const QString & folder)

Definition at line 219 of file mailutil.cpp.

◆ convertFolderPathToCollectionStr()

QString MailCommon::Util::convertFolderPathToCollectionStr ( const QString & folder)

Definition at line 236 of file mailutil.cpp.

◆ createPop3SettingsInterface()

OrgKdeAkonadiPOP3SettingsInterface * MailCommon::Util::createPop3SettingsInterface ( const QString & ident)

Definition at line 49 of file mailutil.cpp.

◆ expireOldMessages()

void MailCommon::Util::expireOldMessages ( const Akonadi::Collection & collection,
bool immediate )

Definition at line 213 of file mailutil.cpp.

◆ folderIdentity()

uint MailCommon::Util::folderIdentity ( const Akonadi::Item & item)

Returns the identity of the folder that contains the given Akonadi::Item.

Definition at line 177 of file mailutil.cpp.

◆ foundMailer() [1/2]

QStringList MailCommon::Util::foundMailer ( )

Definition at line 252 of file mailutil.cpp.

◆ foundMailer() [2/2]

void MailCommon::Util::foundMailer ( QStringList & lst,
const QString & name )

Definition at line 245 of file mailutil.cpp.

◆ fullCollectionPath()

QString MailCommon::Util::fullCollectionPath ( const Akonadi::Collection & collection,
bool addAccountName = true )

Definition at line 76 of file mailutil.cpp.

◆ fullCollectionRemoveIdPath()

QString MailCommon::Util::fullCollectionRemoveIdPath ( const Akonadi::Collection & collection,
bool addAccountName = true )

Definition at line 104 of file mailutil.cpp.

◆ isLocalCollection()

bool MailCommon::Util::isLocalCollection ( const QString & resource)

Definition at line 70 of file mailutil.cpp.

◆ isMailAgent()

bool MailCommon::Util::isMailAgent ( const Akonadi::AgentInstance & instance,
bool excludeMailTransport = true )

Definition at line 155 of file mailutil.cpp.

◆ isUnifiedMailboxesAgent()

bool MailCommon::Util::isUnifiedMailboxesAgent ( const Akonadi::Collection & col)

Definition at line 172 of file mailutil.cpp.

◆ isVirtualCollection() [1/2]

bool MailCommon::Util::isVirtualCollection ( const Akonadi::Collection & col)

Definition at line 55 of file mailutil.cpp.

◆ isVirtualCollection() [2/2]

bool MailCommon::Util::isVirtualCollection ( const QString & resource)

Definition at line 60 of file mailutil.cpp.

◆ realFolderPath()

QString MailCommon::Util::realFolderPath ( const QString & path)

Definition at line 202 of file mailutil.cpp.

◆ showJobErrorMessage()

bool MailCommon::Util::showJobErrorMessage ( KJob * job)

Definition at line 132 of file mailutil.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:39:23 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.