Marble::GeoUriParser

Search for usage in LXR

Marble::GeoUriParser Class Reference

#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()

Marble::GeoUriParser::GeoUriParser ( const QString & geoUri = QString())
explicit

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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.