Akonadi

recursiveitemfetchjob.h
1 /*
2  SPDX-FileCopyrightText: 2009 Tobias Koenig <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_RECURSIVEITEMFETCHJOB_H
8 #define AKONADI_RECURSIVEITEMFETCHJOB_H
9 
10 #include "akonadicore_export.h"
11 #include "item.h"
12 
13 #include <KJob>
14 
15 namespace Akonadi
16 {
17 
18 class Collection;
19 class ItemFetchScope;
20 
72 class AKONADICORE_EXPORT RecursiveItemFetchJob : public KJob
73 {
74  Q_OBJECT
75 
76 public:
84  explicit RecursiveItemFetchJob(const Akonadi::Collection &collection,
85  const QStringList &mimeTypes,
86  QObject *parent = nullptr);
87 
91  ~RecursiveItemFetchJob() override;
92 
104  void setFetchScope(const Akonadi::ItemFetchScope &fetchScope);
105 
118  Akonadi::ItemFetchScope &fetchScope();
119 
123  Q_REQUIRED_RESULT Akonadi::Item::List items() const;
124 
128  void start() override;
129 
130 private:
131  //@cond PRIVATE
132  class Private;
133  Private *const d;
134  //@endcond
135 };
136 
137 }
138 
139 #endif
Represents a collection of PIM items.
Definition: collection.h:63
Specifies which parts of an item should be fetched from the Akonadi storage.
Helper integration between Akonadi and Qt.
Job that fetches all items of a collection recursive.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jul 4 2020 23:16:51 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.