Kgapi

locationfetchhistoryjob.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_LOCATIONFETCHHISTORYJOB_H
10 #define LIBKGAPI2_LOCATIONFETCHHISTORYJOB_H
11 
12 #include "fetchjob.h"
13 #include "latitude.h"
14 #include "kgapilatitude_export.h"
15 
16 namespace KGAPI2 {
17 
24 class KGAPILATITUDE_DEPRECATED_EXPORT LocationFetchHistoryJob : public KGAPI2::FetchJob
25 {
26  Q_OBJECT
27 
38  Q_PROPERTY(Latitude::Granularity granularity READ granularity WRITE setGranularity)
39 
40 
50  Q_PROPERTY(int maxResults READ maxResults WRITE setMaxResults)
51 
61  Q_PROPERTY(qlonglong minTimestamp READ minTimestamp WRITE setMinTimestamp)
62 
72  Q_PROPERTY(qlonglong maxTimestamp READ maxTimestamp WRITE setMaxTimestamp)
73 
74  public:
75 
83  explicit LocationFetchHistoryJob(const AccountPtr &account, QObject* parent = nullptr);
84 
88  ~LocationFetchHistoryJob() override;
89 
93  Latitude::Granularity granularity() const;
94 
100  void setGranularity(Latitude::Granularity granularity);
101 
105  int maxResults() const;
106 
112  void setMaxResults(int results);
113 
117  qlonglong minTimestamp() const;
118 
124  void setMinTimestamp(qlonglong minTimestamp);
125 
129  qlonglong maxTimestamp() const;
130 
136  void setMaxTimestamp(qlonglong maxTimestamp);
137 
138  protected:
139 
143  void start() override;
144 
151  ObjectsList handleReplyWithItems(const QNetworkReply *reply,
152  const QByteArray& rawData) override;
153 
154  private:
155  class Private;
156  Private * const d;
157  friend class Private;
158 
159 };
160 
161 } // namespace KGAPI2
162 
163 #endif // LIBKGAPI2_LOCATIONFETCHHISTORYJOB_H
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:16
A Helper QObject.
Definition: latitude.h:21
A job to fetch all past locations from user&#39;s account on Google Latitude.
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 Sat Sep 19 2020 23:09:42 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.