KWeatherCore

pendingweatherforecast.h
1/*
2 * SPDX-FileCopyrightText: 2020-2021 Han Young <hanyoung@protonmail.com>
3 * SPDX-FileCopyrightText: 2020 Devin Lin <espidev@gmail.com>
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
14namespace KWeatherCore
15{
16class 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 <hanyoung@protonmail.com>
24 */
25class KWEATHERCORE_EXPORT PendingWeatherForecast : public Reply
26{
27 Q_OBJECT
28public:
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
38private:
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}
The PendingWeatherForecast class contains the reply to an asynchronous weather forecast request.
Base class for all asynchronous jobs.
Definition reply.h:24
The WeatherForecastSource class is intended for query weather information about a location.
The WeatherForecast class contains the weather information of one location for days.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:51:51 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.