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
19class LocationQueryResult;
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
Asynchronous reply for a location query.
Class locates current location and search locations by name.
Base class for all asynchronous jobs.
Definition reply.h:24
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.