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";});
//...
void finished()
Emitted once the job has been finished, either successfully or with an 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-2025 The KDE developers.
Generated on Fri May 2 2025 12:04:54 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
          Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 12:04:54 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.