KWeatherCore::LocationQueryResult

Search for usage in LXR

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 geonameId=QString(), std::optional< QString > subdivision=std::nullopt)
 
 LocationQueryResult (LocationQueryResult &&other) noexcept
 
const QStringcountryCode () const
 
QString countryName () const
 
const QStringgeonameId () const
 
double latitude () const
 
double longitude () const
 
const QStringname () const
 
LocationQueryResultoperator= (const LocationQueryResult &other)
 
LocationQueryResultoperator= (LocationQueryResult &&other) noexcept
 
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
LocationQuery
Author
Han Young hanyo.nosp@m.ung@.nosp@m.proto.nosp@m.nmai.nosp@m.l.com

Definition at line 25 of file locationqueryresult.h.

Property Documentation

◆ countryCode

QString KWeatherCore::LocationQueryResult::countryCode
read

Definition at line 32 of file locationqueryresult.h.

◆ countryName

QString KWeatherCore::LocationQueryResult::countryName
read

Definition at line 33 of file locationqueryresult.h.

◆ geonameId

QString KWeatherCore::LocationQueryResult::geonameId
read

Definition at line 34 of file locationqueryresult.h.

◆ latitude

qreal KWeatherCore::LocationQueryResult::latitude
read

Definition at line 28 of file locationqueryresult.h.

◆ longitude

qreal KWeatherCore::LocationQueryResult::longitude
read

Definition at line 29 of file locationqueryresult.h.

◆ name

QString KWeatherCore::LocationQueryResult::name
read

Definition at line 31 of file locationqueryresult.h.

◆ toponymName

QString KWeatherCore::LocationQueryResult::toponymName
read

Definition at line 30 of file locationqueryresult.h.

Constructor & Destructor Documentation

◆ LocationQueryResult() [1/3]

KWeatherCore::LocationQueryResult::LocationQueryResult ( )

Definition at line 23 of file locationqueryresult.cpp.

◆ LocationQueryResult() [2/3]

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

LocationQueryResult construct location result with given data.

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

Definition at line 28 of file locationqueryresult.cpp.

◆ LocationQueryResult() [3/3]

KWeatherCore::LocationQueryResult::LocationQueryResult ( const LocationQueryResult & other)

Definition at line 45 of file locationqueryresult.cpp.

Member Function Documentation

◆ countryCode()

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

country code, follow no standard but should be unique

Definition at line 73 of file locationqueryresult.cpp.

◆ countryName()

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

Translated name of the country.

Definition at line 77 of file locationqueryresult.cpp.

◆ geonameId()

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

internal unique id

Definition at line 81 of file locationqueryresult.cpp.

◆ latitude()

double KWeatherCore::LocationQueryResult::latitude ( ) const

Definition at line 57 of file locationqueryresult.cpp.

◆ longitude()

double KWeatherCore::LocationQueryResult::longitude ( ) const

Definition at line 61 of file locationqueryresult.cpp.

◆ name()

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

display name, short

Definition at line 69 of file locationqueryresult.cpp.

◆ operator=()

LocationQueryResult & KWeatherCore::LocationQueryResult::operator= ( const LocationQueryResult & other)

Definition at line 51 of file locationqueryresult.cpp.

◆ subdivision()

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

Country subdivision such as state, province, etc.

Follows ISO 3166-2

Definition at line 85 of file locationqueryresult.cpp.

◆ toponymName()

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

toponym name of location, detailed

Definition at line 65 of file locationqueryresult.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 Fri Jul 26 2024 11:51:51 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.