Marble::GeoUriParser
#include <GeoUriParser.h>
Public Member Functions | |
GeoUriParser (const QString &geoUri=QString()) | |
GeoDataCoordinates | coordinates () const |
QString | geoUri () const |
bool | parse () |
Planet | planet () const |
void | setGeoUri (const QString &geoUri) |
Detailed Description
A class for parsing Geo: URIs.
Wikipage: https://en.wikipedia.org/wiki/Geo_URI RFC: 5870 (8 June 2010)
Definition at line 21 of file GeoUriParser.h.
Constructor & Destructor Documentation
◆ GeoUriParser()
Constructs a new GeoUriParser with the given Geo URI.
Definition at line 19 of file GeoUriParser.cpp.
Member Function Documentation
◆ coordinates()
GeoDataCoordinates Marble::GeoUriParser::coordinates | ( | ) | const |
Returns the coordinates parsed.
null is returned when parsing was not successful.
Definition at line 38 of file GeoUriParser.cpp.
◆ geoUri()
QString Marble::GeoUriParser::geoUri | ( | ) | const |
Returns the Geo URI stored in this parser.
Definition at line 33 of file GeoUriParser.cpp.
◆ parse()
bool Marble::GeoUriParser::parse | ( | ) |
Parse the given Geo URI.
- Returns
- true iff the GeoURI is valid and was successfully parsed
Definition at line 60 of file GeoUriParser.cpp.
◆ planet()
Planet Marble::GeoUriParser::planet | ( | ) | const |
Returns the Planet on which the coordinates are valid.
Definition at line 43 of file GeoUriParser.cpp.
◆ setGeoUri()
void Marble::GeoUriParser::setGeoUri | ( | const QString & | geoUri | ) |
Set the Geo URI to be parsed.
Definition at line 26 of file GeoUriParser.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.