Kgapi

contactfetchjob.h
1 /*
2  * This file is part of LibKGAPI library
3  *
4  * SPDX-FileCopyrightText: 2013 Daniel Vrátil <[email protected]>
5  *
6  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7  */
8 
9 #ifndef LIBKGAPI2_CONTACTFETCHJOB_H
10 #define LIBKGAPI2_CONTACTFETCHJOB_H
11 
12 #include "fetchjob.h"
13 #include "kgapicontacts_export.h"
14 
15 namespace KGAPI2 {
16 
23 class KGAPICONTACTS_EXPORT ContactFetchJob : public KGAPI2::FetchJob
24 {
25  Q_OBJECT
26 
41  Q_PROPERTY(bool fetchDeleted READ fetchDeleted WRITE setFetchDeleted)
42 
43 
56  Q_PROPERTY(quint64 fetchOnlyUpdated READ fetchOnlyUpdated WRITE setFetchOnlyUpdated)
57 
58 
69  Q_PROPERTY(QString filter READ filter WRITE setFilter)
70 
71  public:
72 
83  explicit ContactFetchJob(const AccountPtr &account, QObject* parent = nullptr);
84 
95  ContactFetchJob(const QString &contactId, const AccountPtr &account, QObject* parent = nullptr);
96 
100  ~ContactFetchJob() override;
101 
105  bool fetchDeleted() const;
106 
112  void setFetchDeleted(bool fetchDeleted);
113 
119  void setFetchOnlyUpdated(quint64 timestamp);
120 
127  quint64 fetchOnlyUpdated();
128 
134  void setFilter(const QString &query);
135 
139  QString filter() const;
140 
141  protected:
142 
146  void start() override;
147 
154  ObjectsList handleReplyWithItems(const QNetworkReply *reply,
155  const QByteArray &rawData) override;
156 
157  private:
158  class Private;
159  Private * const d;
160  friend class Private;
161 
162 };
163 
164 } // namespace KGAPI2
165 
166 #endif // LIBKGAPI2_CONTACTFETCHJOB_H
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:16
A job to fetch contacts from user&#39;s addressbook on Google Contacts.
Abstract superclass for all jobs that fetch resources from Google.
Definition: fetchjob.h:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Sep 21 2020 23:10:53 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.