KWeatherCore

geotimezone.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 
8 #pragma once
9 
10 #include "reply.h"
11 
13 namespace KWeatherCore
14 {
15 class GeoTimezonePrivate;
16 /**
17  * @short Class to obtain timezone via coordinate
18  *
19  * This is a class to obtain timezone via coordinate and signals finished() with
20  * a QString
21  *
22  * @author Han Young <[email protected]>
23  */
24 class KWEATHERCORE_EXPORT GeoTimezone : public Reply
25 {
26  Q_OBJECT
27 public:
28  /**
29  * GeoTimezone
30  * @param latitude latitude for the request location
31  * @param longitude longitude for the request location
32  */
33  GeoTimezone(QNetworkAccessManager *nam, double latitude, double longitude, QObject *parent = nullptr);
34 
35  /** The result IANA timezone string. */
36  QString timezone() const;
37 
38 private:
39  Q_DECLARE_PRIVATE(GeoTimezone)
40 };
41 }
Base class for all asynchronous jobs.
Definition: reply.h:23
Class to obtain timezone via coordinate.
Definition: geotimezone.h:24
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.