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 20 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 17 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 36 of file GeoUriParser.cpp.

◆ geoUri()

QString Marble::GeoUriParser::geoUri ( ) const

Returns the Geo URI stored in this parser.

Definition at line 31 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 58 of file GeoUriParser.cpp.

◆ planet()

Planet Marble::GeoUriParser::planet ( ) const

Returns the Planet on which the coordinates are valid.

Definition at line 41 of file GeoUriParser.cpp.

◆ setGeoUri()

void Marble::GeoUriParser::setGeoUri ( const QString & geoUri)

Set the Geo URI to be parsed.

Definition at line 24 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 Tue Mar 26 2024 11:18:18 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.