Messagelib

searchcollectionindexingwarning.h
1 /*
2  * SPDX-FileCopyrightText: 2016 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
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>
13 class KJob;
14 
15 namespace Akonadi
16 {
17 namespace Search
18 {
19 namespace PIM
20 {
21 class IndexedItems;
22 }
23 }
24 }
25 namespace Akonadi
26 {
27 class CollectionFetchJob;
28 }
29 namespace MessageList
30 {
31 namespace Core
32 {
33 class MESSAGELIST_TESTS_EXPORT SearchCollectionIndexingWarning : public KMessageWidget
34 {
35  Q_OBJECT
36 public:
37  explicit SearchCollectionIndexingWarning(QWidget *parent = nullptr);
38  ~SearchCollectionIndexingWarning() override;
39 
40  void setCollection(const Akonadi::Collection &collection);
41 
42 private:
43  void queryRootCollectionFetchFinished(KJob *job);
44  void queryCollectionFetchFinished(KJob *job);
45  Akonadi::CollectionFetchJob *fetchCollections(const Akonadi::Collection::List &cols, bool recursive);
46  void queryIndexerStatus();
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-2023 The KDE developers.
Generated on Wed Mar 22 2023 04:07:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.