KWeatherCore

kweathercore

Introduction

Get weather forecast and alerts anywhere on the earth easy. LibKWeather provides you a highly abstracted library for things related to weather.

Main Components

Minimal Example

#include <KWeatherCore/WeatherForecastSource>
using namespace KWeatherCore;
//...
// Get the weatherforecast of Paris
auto m_pendingForecast = m_source.requestData(48.86, 2.34);
connect(m_pendingForecast, &PendingWeatherForecast::finished, [m_pendingForecast]{auto m_weatherData = m_pendingForecast->value();
m_pendingForecast->deleteLater();});
connect(m_pendingForecast, &PendingWeatherForecast::networkError, []{qDebug() << "network error";});
//...
The WeatherForecastSource class is intended for query weather information about a location.
PendingWeatherForecast * requestData(double latitude, double longitude)
requestData
Author(s)
Han Young <hanyo.nosp@m.ung@.nosp@m.proto.nosp@m.nmai.nosp@m.l.com>
Devin Lin <espid.nosp@m.ev@g.nosp@m.mail..nosp@m.com>
License(s)
GPLv2
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:06:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.