Mailcommon

filterimporterpathcache.h
1/*
2 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "mailcommon_export.h"
10#include <Akonadi/Collection>
11#include <QHash>
12#include <QObject>
13namespace MailCommon
14{
15/**
16 * @brief The FilterImporterPathCache class
17 * @author Laurent Montel <montel@kde.org>
18 */
19class MAILCOMMON_EXPORT FilterImporterPathCache : public QObject
20{
21 Q_OBJECT
22public:
23 static FilterImporterPathCache *self();
24
25 explicit FilterImporterPathCache(QObject *parent = nullptr);
26 ~FilterImporterPathCache() override;
27
28 void insert(const QString &original, const Akonadi::Collection &newValue);
29 [[nodiscard]] Akonadi::Collection convertedFilterPath(const QString &original);
30 void clear();
31 [[nodiscard]] int count() const;
32
33private:
35};
36}
The FilterImporterPathCache class.
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.