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 "messagelist_private_export.h"
11#include <Akonadi/Collection>
12#include <KMessageWidget>
13class KJob;
14
15namespace Akonadi
16{
17namespace Search
18{
19namespace PIM
20{
21class IndexedItems;
22}
23}
24}
25namespace Akonadi
26{
27class CollectionFetchJob;
28}
29namespace MessageList
30{
31namespace Core
32{
33class MESSAGELIST_TESTS_EXPORT SearchCollectionIndexingWarning : public KMessageWidget
34{
35 Q_OBJECT
36public:
37 explicit SearchCollectionIndexingWarning(QWidget *parent = nullptr);
38 ~SearchCollectionIndexingWarning() override;
39
40 void setCollection(const Akonadi::Collection &collection);
41
42private:
43 MESSAGELIST_NO_EXPORT void queryRootCollectionFetchFinished(KJob *job);
44 MESSAGELIST_NO_EXPORT void queryCollectionFetchFinished(KJob *job);
45 MESSAGELIST_NO_EXPORT void queryIndexerStatus();
46 [[nodiscard]] MESSAGELIST_NO_EXPORT Akonadi::CollectionFetchJob *fetchCollections(const Akonadi::Collection::List &cols, bool recursive);
47
48 Akonadi::Collection mCollection;
49 Akonadi::Collection::List mCollections;
50 Akonadi::Search::PIM::IndexedItems *const mIndexedItems;
51};
52}
53}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.