Akonadi

tagfetchjob.h
1 /*
2  SPDX-FileCopyrightText: 2014 Christian Mollekopf <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_TAGFETCHJOB_H
8 #define AKONADI_TAGFETCHJOB_H
9 
10 #include "akonadicore_export.h"
11 #include "job.h"
12 #include "tag.h"
13 
14 namespace Akonadi
15 {
16 
17 class TagFetchScope;
18 class TagFetchJobPrivate;
19 
30 class AKONADICORE_EXPORT TagFetchJob : public Job
31 {
32  Q_OBJECT
33 
34 public:
40  explicit TagFetchJob(QObject *parent = nullptr);
41 
52  explicit TagFetchJob(const Tag &tag, QObject *parent = nullptr);
53 
64  explicit TagFetchJob(const Tag::List &tags, QObject *parent = nullptr);
65 
72  explicit TagFetchJob(const QList<Tag::Id> &ids, QObject *parent = nullptr);
73 
83  void setFetchScope(const TagFetchScope &fetchScope);
84 
97  TagFetchScope &fetchScope();
98 
102  Q_REQUIRED_RESULT Tag::List tags() const;
103 
104 Q_SIGNALS:
110  void tagsReceived(const Akonadi::Tag::List &tags);
111 
112 protected:
113  void doStart() override;
114  bool doHandleResponse(qint64 tag, const Protocol::CommandPtr &response) override;
115 
116 private:
117  Q_DECLARE_PRIVATE(TagFetchJob)
118 
119  //@cond PRIVATE
120  Q_PRIVATE_SLOT(d_func(), void timeout())
121  //@endcond
122 };
123 
124 }
125 
126 #endif
Specifies which parts of a tag should be fetched from the Akonadi storage.
Definition: tagfetchscope.h:22
Base class for all actions in the Akonadi storage.
Definition: job.h:80
Helper integration between Akonadi and Qt.
An Akonadi Tag.
Definition: tag.h:26
Job that fetches tags from the Akonadi storage.
Definition: tagfetchjob.h:30
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jul 9 2020 23:15:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.