6#ifndef WEATHERREQUESTENGINE_H
7#define WEATHERREQUESTENGINE_H
11#include <QNetworkReply>
15class QNetworkAccessManager;
75 void onGeoReply(QNetworkReply* reply);
84 void onWeatherReply(QNetworkReply* reply);
91 void forceQueryWeatherData();
94 QNetworkAccessManager* manager;
104 static QMap<QString, LocationData> s_locationCache;
107 bool locationFound {
false };
Defines data structures for weather information and geographical location.
Manages a cache of WeatherData with an automatic timeout mechanism.
Definition QueryCached.h:25
Handles the logic for requesting geographical and weather data from network services.
Definition WeatherRequestEngine.h:28
void errorOccurred(const QString &errorMessage)
Signal emitted when an error occurs during the data request process.
void weatherDataReady(const WeatherData data)
Signal emitted when new weather data is successfully retrieved and ready.
~WeatherRequestEngine()=default
Destroys the WeatherRequestEngine object.
void queryWeatherData()
Initiates a request for weather data.
Definition WeatherRequestEngine.cpp:83
Represents geographical coordinates (latitude and longitude).
Definition WeatherData.h:38
Represents a snapshot of weather conditions for a specific location and time.
Definition WeatherData.h:19