KWeatherCore::LocationQueryResult
KWeatherCore::LocationQueryResult Class Reference
#include <locationqueryresult.h>
Properties | |
QString | countryCode |
QString | countryName |
QString | geonameId |
qreal | latitude |
qreal | longitude |
QString | name |
QString | toponymName |
Public Member Functions | |
LocationQueryResult (const LocationQueryResult &other) | |
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 (LocationQueryResult &&other) | |
const QString & | countryCode () const |
const QString & | countryName () const |
const QString & | geonameId () const |
double | latitude () const |
double | longitude () const |
const QString & | name () const |
LocationQueryResult & | operator= (const LocationQueryResult &other) |
LocationQueryResult & | operator= (LocationQueryResult &&other) |
const std::optional< QString > & | subdivision () const |
const QString & | toponymName () const |
Detailed Description
Class represents location query result.
This is a class to hold general information about a location
- See also
- LocationQuery
Definition at line 25 of file locationqueryresult.h.
Constructor & Destructor Documentation
◆ LocationQueryResult()
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.
- Parameters
-
latitude latitude longitude longitude toponymName toponym name of location, detailed name display name, short countryCode country code, follow no standard but should be unique countryName country name geonameId internal unique id subdivision state, province, or other country subdivision, Follows ISO 3166-2
Definition at line 24 of file locationqueryresult.cpp.
Member Function Documentation
◆ countryCode()
const QString& KWeatherCore::LocationQueryResult::countryCode | ( | ) | const |
country code, follow no standard but should be unique
◆ countryName()
const QString& KWeatherCore::LocationQueryResult::countryName | ( | ) | const |
country name
◆ geonameId()
const QString& KWeatherCore::LocationQueryResult::geonameId | ( | ) | const |
internal unique id
◆ name()
const QString& KWeatherCore::LocationQueryResult::name | ( | ) | const |
display name, short
◆ subdivision()
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.
◆ toponymName()
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-2023 The KDE developers.
Generated on Sat Dec 2 2023 03:54:22 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 2 2023 03:54:22 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.