Kgapi

locationfetchjob.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_LOCATIONFETCHJOB_H
10 #define LIBKGAPI2_LOCATIONFETCHJOB_H
11 
12 #include "fetchjob.h"
13 #include "latitude.h"
14 #include "kgapilatitude_export.h"
15 
16 namespace KGAPI2 {
17 
25 class KGAPILATITUDE_DEPRECATED_EXPORT LocationFetchJob : public KGAPI2::FetchJob
26 {
27  Q_OBJECT
28 
39  Q_PROPERTY(Latitude::Granularity granularity READ granularity WRITE setGranularity)
40 
41  public:
42 
50  explicit LocationFetchJob(const AccountPtr &account, QObject* parent = nullptr);
51 
60  explicit LocationFetchJob(qlonglong timestamp, const AccountPtr &account, QObject* parent = nullptr);
61 
65  ~LocationFetchJob() override;
66 
72  void setGranularity(Latitude::Granularity granularity);
73 
77  Latitude::Granularity granularity() const;
78 
79  protected:
80 
84  void start() override;
85 
92  ObjectsList handleReplyWithItems(const QNetworkReply *reply,
93  const QByteArray& rawData) override;
94 
95  private:
96  class Private;
97  Private * const d;
98  friend class Private;
99 
100 };
101 
102 } // namespace KGAPI2
103 
104 #endif // LIBKGAPI2_LOCATIONFETCHJOB_H
A job to fetch current or a specific locations from user&#39;s account on Google Latitude.
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:16
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 Thu Sep 17 2020 23:09:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.