KWeatherCore

locationqueryreply.h
1/*
2 * SPDX-FileCopyrightText: 2020-2021 Han Young <hanyoung@protonmail.com>
3 * SPDX-FileCopyrightText: 2020 Devin Lin <espidev@gmail.com>
4 * SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org>
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7
8#ifndef KWEATHERCORE_LOCATIONQUERYREPLY_H
9#define KWEATHERCORE_LOCATIONQUERYREPLY_H
10
11#include "reply.h"
12
15
16namespace KWeatherCore
17{
18
20class LocationQueryReplyPrivate;
21
22/** Asynchronous reply for a location query.
23 * @see LocationQuery
24 * @since 0.6
25 */
26class KWEATHERCORE_EXPORT LocationQueryReply : public Reply
27{
28public:
29 ~LocationQueryReply() override;
30
31 /** Result of the location query.
32 * Can be none, one or multiple elements.
33 */
34 const std::vector<LocationQueryResult> &result() const;
35
36private:
37 friend class LocationQuery;
38 explicit LocationQueryReply(const QString &name, int number, QNetworkAccessManager *nam, QObject *parent = nullptr);
39 explicit LocationQueryReply(QGeoPositionInfoSource *source, QNetworkAccessManager *nam, QObject *parent = nullptr);
40 Q_DECLARE_PRIVATE(LocationQueryReply)
41};
42
43}
44
45#endif // KWEATHERCORE_LOCATIONQUERYREPLY_H
const std::vector< LocationQueryResult > & result() const
Result of the location query.
Class represents location query result.
QObject(QObject *parent)
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:57 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.