70 void onCacheTimeout();
75 bool weatherCacheNeedsUpdate {
true };
Defines data structures for weather information and geographical location.
Manages a cache of WeatherData with an automatic timeout mechanism.
Definition QueryCached.h:25
void setTimeoutInterval(int interval)
Sets the timeout interval for the cached data.
Definition QueryCached.cpp:10
std::optional< WeatherData > requestWeatherData()
Requests the cached WeatherData.
Definition QueryCached.cpp:24
void installWeatherData(const WeatherData &data)
Installs new WeatherData into the cache.
Definition QueryCached.cpp:18
void weatherCacheOutdated()
Signal emitted when the cached weather data becomes outdated.
Represents a snapshot of weather conditions for a specific location and time.
Definition WeatherData.h:19