Mailcommon

filterimporterpathcache.h
1 /*
2  SPDX-FileCopyrightText: 2017-2022 Laurent Montel <[email protected]>
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>
13 namespace MailCommon
14 {
15 /**
16  * @brief The FilterImporterPathCache class
17  * @author Laurent Montel <[email protected]>
18  */
19 class MAILCOMMON_EXPORT FilterImporterPathCache : public QObject
20 {
21  Q_OBJECT
22 public:
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  Q_REQUIRED_RESULT Akonadi::Collection convertedFilterPath(const QString &original);
30  void clear();
31  Q_REQUIRED_RESULT int count() const;
32 
33 private:
35 };
36 }
The FilterImporterPathCache class.
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Sep 24 2022 03:58:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.