KWeatherCore

pendingweatherforecast.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 
9 #include "reply.h"
10 #include "weatherforecast.h"
11 
13 
14 namespace KWeatherCore
15 {
16 class PendingWeatherForecastPrivate;
17 /**
18  * @short The PendingWeatherForecast class contains the reply to an asynchronous
19  * weather forecast request.
20  *
21  * @see WeatherForecastSource
22  *
23  * @author Han Young <[email protected]>
24  */
25 class KWEATHERCORE_EXPORT PendingWeatherForecast : public Reply
26 {
27  Q_OBJECT
28 public:
29  ~PendingWeatherForecast() override;
30 
31  /**
32  * value pointer to the shared weather data
33  * the pointer is nullptr until finished() raised
34  * @return
35  */
36  WeatherForecast value() const;
37 
38 private:
39  friend class WeatherForecastSource;
40  explicit PendingWeatherForecast(double latitude,
41  double longitude,
42  const QString &timezone,
44  QObject *parent = nullptr);
45  explicit PendingWeatherForecast(WeatherForecast data, QObject *parent = nullptr);
46  Q_DECLARE_PRIVATE(PendingWeatherForecast)
47 };
48 }
Base class for all asynchronous jobs.
Definition: reply.h:23
The WeatherForecast class contains the weather information of one location for days.
The WeatherForecastSource class is intended for query weather information about a location.
The PendingWeatherForecast class contains the reply to an asynchronous weather forecast request.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 11 2023 03:51:54 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.