Pimcommon

mailutil.cpp
1/*******************************************************************************
2**
3** SPDX-FileCopyrightText: 2005 Till Adam <adam@kde.org>
4**
5** SPDX-License-Identifier: GPL-2.0-or-later
6**
7*******************************************************************************/
8
9#include "mailutil.h"
10#include <PimCommon/PimUtil>
11
12#include <Akonadi/AgentInstance>
13#include <Akonadi/AgentManager>
14#include <Akonadi/ServerManager>
15
16bool PimCommon::MailUtil::isImapFolder(const Akonadi::Collection &col, bool &isOnline)
17{
19 isOnline = agentInstance.isOnline();
20
21 return PimCommon::Util::isImapResource(agentInstance.type().identifier());
22}
23
24QString PimCommon::MailUtil::indexerServiceName()
25{
26 return Akonadi::ServerManager::agentServiceName(Akonadi::ServerManager::Agent, QStringLiteral("akonadi_indexing_agent"));
27}
AgentType type() const
static AgentManager * self()
AgentInstance instance(const QString &identifier) const
QString identifier() const
QString resource() const
static QString agentServiceName(ServiceAgentType agentType, const QString &identifier)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.