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 countryName=QString(), QString geonameId=QString(), std::optional< QString > subdivision=std::nullopt)
 
 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
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 19 of file locationqueryresult.cpp.

◆ LocationQueryResult() [2/3]

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
latitudelatitude
longitudelongitude
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.

◆ LocationQueryResult() [3/3]

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

Definition at line 43 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 71 of file locationqueryresult.cpp.

◆ countryName()

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

country name

Definition at line 75 of file locationqueryresult.cpp.

◆ geonameId()

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

internal unique id

Definition at line 79 of file locationqueryresult.cpp.

◆ latitude()

double KWeatherCore::LocationQueryResult::latitude ( ) const

Definition at line 55 of file locationqueryresult.cpp.

◆ longitude()

double KWeatherCore::LocationQueryResult::longitude ( ) const

Definition at line 59 of file locationqueryresult.cpp.

◆ name()

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

display name, short

Definition at line 67 of file locationqueryresult.cpp.

◆ operator=()

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

Definition at line 49 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 83 of file locationqueryresult.cpp.

◆ toponymName()

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

toponym name of location, detailed

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

KDE's Doxygen guidelines are available online.