Search for usage in LXR

KWeatherCore::LocationQueryResult Class Reference

#include <locationqueryresult.h>


QString countryCode
QString countryName
QString geonameId
qreal latitude
qreal longitude
QString name
QString toponymName

Public Member Functions

 LocationQueryResult (double latitude, double longitude, QString toponymName=QString(), QString name=QString(), QString countryCode=QString(), QString countryName=QString(), QString geonameId=QString(), std::optional< QString > subdivision=std::nullopt)
 LocationQueryResult (const LocationQueryResult &other)
 LocationQueryResult (LocationQueryResult &&other)
const QStringcountryCode () const
const QStringcountryName () const
const QStringgeonameId () const
double latitude () const
double longitude () const
const QStringname () const
LocationQueryResultoperator= (const LocationQueryResult &other)
LocationQueryResultoperator= (LocationQueryResult &&other)
const std::optional< QString > & subdivision () const
const QStringtoponymName () const

Detailed Description

Class represents location query result.

This is a class to hold general information about a location

See also
Han Young hanyo[email protected][email protected][email protected]proto[email protected]nmai[email protected]

Definition at line 25 of file locationqueryresult.h.

Constructor & Destructor Documentation

KWeatherCore::LocationQueryResult::LocationQueryResult ( double  latitude,
double  longitude,
QString  toponymName = QString(),
QString  name = QString(),
QString  countryCode = QString(),
QString  countryName = QString(),
QString  geonameId = QString(),
std::optional< QString subdivision = std::nullopt 

LocationQueryResult construct location result with given data.

toponymNametoponym name of location, detailed
namedisplay name, short
countryCodecountry code, follow no standard but should be unique
countryNamecountry name
geonameIdinternal unique id
subdivisionstate, province, or other country subdivision, Follows ISO 3166-2

Definition at line 24 of file locationqueryresult.cpp.

Member Function Documentation

const QString& KWeatherCore::LocationQueryResult::countryCode ( ) const

country code, follow no standard but should be unique

const QString& KWeatherCore::LocationQueryResult::countryName ( ) const

country name

const QString& KWeatherCore::LocationQueryResult::geonameId ( ) const

internal unique id

const QString& KWeatherCore::LocationQueryResult::name ( ) const

display name, short

const std::optional< QString > & KWeatherCore::LocationQueryResult::subdivision ( ) const

Country subdivision such as state, province, etc.

Follows ISO 3166-2

Definition at line 83 of file locationqueryresult.cpp.

const QString& KWeatherCore::LocationQueryResult::toponymName ( ) const

toponym name of location, detailed

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Oct 24 2021 23:03:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.