• 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
GeoUriParser.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 2014 Levente Kurusa <levex@linux.com>
9 //
10 
11 #ifndef MARBLE_GEOURIPARSER_H
12 #define MARBLE_GEOURIPARSER_H
13 
14 
15 #include <QChar>
16 #include "Planet.h"
17 #include "GeoDataCoordinates.h"
18 #include "marble_export.h"
19 
20 namespace Marble {
21 
27 class MARBLE_EXPORT GeoUriParser {
28 
29 public:
33  explicit GeoUriParser( const QString& geoUri = QString() );
34 
38  QString geoUri() const;
42  void setGeoUri( const QString& geoUri );
43 
48  GeoDataCoordinates coordinates() const;
49 
53  Planet planet() const;
54 
60  bool parse();
61 
62 private:
63  static QString queryValue( const QUrl& url, const QString& key, const QString& secondaryKey=QString() );
64 
65  QString m_geoUri;
66  GeoDataCoordinates m_coordinates;
67  Planet m_planet;
68 };
69 
70 }
71 
72 #endif
GeoDataCoordinates.h
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Planet.h
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
Marble::Planet
Definition: Planet.h:25
QString
Marble::GeoUriParser
A class for parsing Geo: URIs.
Definition: GeoUriParser.h:27
QUrl
marble_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 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