Kgapi

location.h
1 /*
2  SPDX-FileCopyrightText: 2012 Jan Grulich <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 
8 #ifndef LIBKGAPI2_OBJECTS_LOCATION_H
9 #define LIBKGAPI2_OBJECTS_LOCATION_H
10 
11 #include "object.h"
12 #include "types.h"
13 #include "kgapilatitude_export.h"
14 
15 #include <KContacts/Geo>
16 
17 #include <QSharedPointer>
18 
19 namespace KGAPI2
20 {
21 
29 class KGAPILATITUDE_DEPRECATED_EXPORT Location : public KGAPI2::Object,
30  public KContacts::Geo
31 {
32  public:
33 
37  Location();
38 
45  Location(float latitude, float longitude);
46 
50  Location(const Location &other);
51 
55  ~Location() override;
56 
62  qulonglong timestamp() const;
63 
67  void setTimestamp(qulonglong timestamp);
68 
74  qint32 accuracy() const;
75 
79  void setAccuracy(qint32 accuracy);
80 
87  qint32 speed() const;
88 
92  void setSpeed(qint32 speed);
93 
100  qint32 heading() const;
101 
105  void setHeading(qint32 heading);
106 
112  qint32 altitude() const;
113 
117  void setAltitude(qint32 altitude);
118 
124  qint32 altitudeAccuracy() const;
125 
129  void setAltitudeAccuracy(qint32 altitudeAccuracy);
130 
131  private:
132  class Private;
133  Private * const d;
134  friend class Private;
135 
136 };
137 
138 } // namespace KGAPI2
139 
140 #endif // LOCATION_H
Base class for all objects.
Definition: object.h:31
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:16
Represents a single record about geographical location provided by Google Latitude service...
Definition: location.h:29
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.