KWeatherCore

weatherforecastsource.h
1 /*
2  * SPDX-FileCopyrightText: 2020-2021 Han Young <[email protected]>
3  * SPDX-FileCopyrightText: 2020 Devin Lin <[email protected]>
4  *
5  * SPDX-License-Identifier: LGPL-2.0-or-later
6  */
7 #pragma once
8 #include "locationqueryresult.h"
9 #include "pendingweatherforecast.h"
10 #include "weatherforecast.h"
11 #include <QObject>
12 #include <kweathercore/kweathercore_export.h>
13 class QNetworkReply;
14 namespace KWeatherCore
15 {
16 class WeatherForecastSourcePrivate;
17 /**
18  * @short The WeatherForecastSource class is intened for query weather
19  * information about a location
20  *
21  * @see WeatherForecast, PendingWeatherForecast
22  *
23  * @author Han Young <[email protected]>
24  */
25 class KWEATHERCORE_EXPORT WeatherForecastSource : public QObject
26 {
27  Q_OBJECT
28 public:
29  WeatherForecastSource(QObject *parent = nullptr);
30  /**
31  * requestData
32  * @param latitude
33  * @param longitude
34  * @return it is the client's responsibility to delete the
35  * PendingWeatherForecast afterhand to avoid memory leak.
36  * Check isFinished() on the returned PendingWeatherForecast
37  */
38  PendingWeatherForecast *requestData(double latitude, double longitude);
39 
40  /**
41  * requestData
42  * @param result
43  * @return it is the client's responsibility to delete the
44  * PendingWeatherForecast afterhand to avoid memory leak.
45  * Check isFinished() on the returned PendingWeatherForecast
46  */
48 
49 private:
50  WeatherForecastSourcePrivate *d = nullptr;
51 };
52 }
Class represents location query result.
The PendingWeatherForecast class contains the reply to an asynchronous weather forecast request...
The WeatherForecastSource class is intened for query weather information about a location.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Oct 21 2021 23:05:33 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.