Akonadi

partfetcher.h
1 /*
2  SPDX-FileCopyrightText: 2009 Stephen Kelly <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_PARTFETCHER_H
8 #define AKONADI_PARTFETCHER_H
9 
10 #include <KJob>
11 
12 #include "akonadicore_export.h"
13 
14 class QModelIndex;
15 
16 namespace Akonadi
17 {
18 
19 class Item;
20 class PartFetcherPrivate;
21 
60 class AKONADICORE_EXPORT PartFetcher : public KJob
61 {
62  Q_OBJECT
63 
64 public:
72  PartFetcher(const QModelIndex &index, const QByteArray &partName, QObject *parent = nullptr);
73 
77  ~PartFetcher() override;
78 
82  void start() override;
83 
87  QModelIndex index() const;
88 
92  QByteArray partName() const;
93 
97  Item item() const;
98 
99 private:
100  //@cond PRIVATE
101  Q_DECLARE_PRIVATE(Akonadi::PartFetcher)
102  PartFetcherPrivate *const d_ptr;
103 
104  //@endcond
105 };
106 
107 }
108 
109 #endif
Helper integration between Akonadi and Qt.
Convenience class for getting payload parts from an Akonadi Model.
Definition: partfetcher.h:60
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 12 2020 23:16:10 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.