KWeatherCore
7#include "locationqueryresult.h"
12class LocationQueryResult::LocationQueryResultPrivate
15 double latitude, longitude;
16 QString toponymName, name, countryCode, countryName, geonameId;
17 std::optional<QString> subdivision;
19LocationQueryResult::LocationQueryResult()
20 : d(
std::make_unique<LocationQueryResultPrivate>())
23LocationQueryResult::LocationQueryResult(LocationQueryResult &&other) =
default;
24LocationQueryResult::LocationQueryResult(
double latitude,
31 std::optional<QString> subdivision)
32 : d(
std::make_unique<LocationQueryResultPrivate>())
34 d->latitude = latitude;
35 d->longitude = longitude;
36 d->toponymName = std::move(toponymName);
37 d->name = std::move(name);
38 d->countryCode = std::move(countryCode);
39 d->countryName = std::move(countryName);
40 d->geonameId = std::move(geonameId);
44 : d(
std::make_unique<LocationQueryResultPrivate>())
48LocationQueryResult::~LocationQueryResult() =
default;
49LocationQueryResult &LocationQueryResult::operator=(
const LocationQueryResult &other)
54LocationQueryResult &LocationQueryResult::operator=(LocationQueryResult &&other) =
default;
55double LocationQueryResult::latitude()
const
59double LocationQueryResult::longitude()
const
63const QString &LocationQueryResult::toponymName()
const
65 return d->toponymName;
67const QString &LocationQueryResult::name()
const
71const QString &LocationQueryResult::countryCode()
const
73 return d->countryCode;
75const QString &LocationQueryResult::countryName()
const
77 return d->countryName;
79const QString &LocationQueryResult::geonameId()
const
85 return d->subdivision;
89#include "moc_locationqueryresult.cpp"
Class represents location query result.
const std::optional< QString > & subdivision() const
Country subdivision such as state, province, etc.
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.