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 Q_SLOTS:
43  void queryRootCollectionFetchFinished(KJob *job);
44  void queryCollectionFetchFinished(KJob *job);
45 
46 private:
47  Akonadi::CollectionFetchJob *fetchCollections(const Akonadi::Collection::List &cols, bool recursive);
48  void queryIndexerStatus();
49 
50  Akonadi::Collection mCollection;
51  Akonadi::Collection::List mCollections;
52  Akonadi::Search::PIM::IndexedItems *const mIndexedItems;
53 };
54 }
55 }
56 
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Dec 2 2021 23:06:09 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.