• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
PositionProviderPluginInterface.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2009 Eckhart Wörner <ewoerner@kde.org>
9 //
10 
11 #ifndef MARBLE_POSITIONPROVIDERPLUGININTERFACE_H
12 #define MARBLE_POSITIONPROVIDERPLUGININTERFACE_H
13 
14 #include <QDateTime>
15 
16 #include "PluginInterface.h"
17 #include "GeoDataCoordinates.h"
18 #include "GeoDataAccuracy.h"
19 
20 
21 
22 namespace Marble
23 {
24 
25 enum PositionProviderStatus {
26  PositionProviderStatusError = 0,
27  PositionProviderStatusUnavailable,
28  PositionProviderStatusAcquiring,
29  PositionProviderStatusAvailable
30 };
31 
36 class MARBLE_EXPORT PositionProviderPluginInterface: public PluginInterface
37 {
38  public:
39  virtual ~PositionProviderPluginInterface();
40 
41  virtual void initialize() = 0;
42 
43  virtual bool isInitialized() const = 0;
44 
45  virtual PositionProviderStatus status() const = 0;
46  virtual GeoDataCoordinates position() const = 0;
47  virtual GeoDataAccuracy accuracy() const = 0;
48 
52  virtual qreal speed() const = 0;
53 
58  virtual qreal direction() const = 0;
59 
60  virtual QDateTime timestamp() const = 0;
61 
67  virtual QString error() const;
68 };
69 
70 }
71 
72 Q_DECLARE_INTERFACE( Marble::PositionProviderPluginInterface, "org.kde.Marble.PositionProviderPluginInterface/1.02" )
73 
74 Q_DECLARE_METATYPE( Marble::PositionProviderStatus )
75 
76 #endif
PluginInterface.h
GeoDataCoordinates.h
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::PositionProviderPluginInterface
The interface for position provider plugins.
Definition: PositionProviderPluginInterface.h:36
Marble::PositionProviderStatusUnavailable
Definition: PositionProviderPluginInterface.h:27
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
GeoDataAccuracy.h
QString
Marble::PluginInterface
This class specifies interface of a Marble plugin.
Definition: PluginInterface.h:45
Marble::PositionProviderStatus
PositionProviderStatus
Definition: PositionProviderPluginInterface.h:25
direction
qreal direction
Definition: tools/osm-addresses/OsmParser.cpp:40
Marble::PositionProviderStatusError
Definition: PositionProviderPluginInterface.h:26
Marble::PositionProviderStatusAvailable
Definition: PositionProviderPluginInterface.h:29
Marble::GeoDataAccuracy
Definition: GeoDataAccuracy.h:22
Marble::PositionProviderStatusAcquiring
Definition: PositionProviderPluginInterface.h:28
QDateTime
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal