Messagelib

searchcollectionindexingwarning.h
1/*
2 * SPDX-FileCopyrightText: 2016 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 *
6 */
7
8#pragma once
9
10#include "config-messagelist.h"
11#include "messagelist_private_export.h"
12#include <Akonadi/Collection>
13#include <KMessageWidget>
14class KJob;
15
16namespace Akonadi
17{
18namespace Search
19{
20namespace PIM
21{
22class IndexedItems;
23}
24}
25}
26namespace Akonadi
27{
28class CollectionFetchJob;
29}
30namespace MessageList
31{
32namespace Core
33{
34class MESSAGELIST_TESTS_EXPORT SearchCollectionIndexingWarning : public KMessageWidget
35{
36 Q_OBJECT
37public:
38 explicit SearchCollectionIndexingWarning(QWidget *parent = nullptr);
39 ~SearchCollectionIndexingWarning() override;
40
41 void setCollection(const Akonadi::Collection &collection);
42
43private:
44 MESSAGELIST_NO_EXPORT void queryRootCollectionFetchFinished(KJob *job);
45 MESSAGELIST_NO_EXPORT void queryCollectionFetchFinished(KJob *job);
46 MESSAGELIST_NO_EXPORT void queryIndexerStatus();
47 [[nodiscard]] MESSAGELIST_NO_EXPORT Akonadi::CollectionFetchJob *fetchCollections(const Akonadi::Collection::List &cols, bool recursive);
48
49 Akonadi::Collection mCollection;
50 Akonadi::Collection::List mCollections;
51#if !FORCE_DISABLE_AKONADI_SEARCH
52 Akonadi::Search::PIM::IndexedItems *const mIndexedItems;
53#endif
54};
55}
56}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:05:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.