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
- WeatherForecastSource
- PendingWeatherForecast
- SunriseSource
- WeatherForecastSource
- LocationQuery
- GeoTimezone
Minimal Example
#include <KWeatherCore/WeatherForecastSource>
using namespace KWeatherCore;
//...
// Get the weatherforecast of Paris
WeatherForecastSource m_source;
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.
Definition weatherforecastsource.h:33
PendingWeatherForecast * requestData(double latitude, double longitude)
requestData
Definition weatherforecastsource.cpp:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:12:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:12:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.