KWeatherCore

geotimezone.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
8#pragma once
9
10#include "reply.h"
11
13namespace KWeatherCore
14{
15class 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 <hanyoung@protonmail.com>
23 */
24class KWEATHERCORE_EXPORT GeoTimezone : public Reply
25{
26 Q_OBJECT
27public:
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
38private:
39 Q_DECLARE_PRIVATE(GeoTimezone)
40};
41}
Class to obtain timezone via coordinate.
Definition geotimezone.h:25
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 Fri Dec 27 2024 11:55:53 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.