1#ifndef APPWEATHERREQUEST_H
2#define APPWEATHERREQUEST_H
4#include "MyWeatherRequest.h"
81 this->request = request;
The AppWeatherRequest class provides the weather request and implements the WeatherRequest functional...
Definition AppWeatherRequest.h:61
AppWeatherRequest(QObject *parent=nullptr)
Constructor for AppWeatherRequest.
Definition AppWeatherRequest.h:73
Q_DISABLE_COPY(AppWeatherRequest)
Disables copy constructor and copy assignment. This prevents copying of the AppWeatherRequest object.
QUrlQuery compose_request() override
Composes the URL query for the weather request.
Definition AppWeatherRequest.cpp:9
void bindAppDetailedRequest(const AppWeatherDetailedRequest &request)
Binds a detailed request.
Definition AppWeatherRequest.h:80
The AppWeatherResult class provides the weather result and implements the WeatherResult functionality...
Definition AppWeatherRequest.h:9
void parseJsonString(const QString json) override
Parses the JSON string from remote servers.
Definition AppWeatherRequest.cpp:20
AppWeatherResult(QObject *parent=nullptr)
Constructor for AppWeatherResult.
Definition AppWeatherRequest.h:15
QString cached_city
The city for which weather data is requested.
Definition AppWeatherRequest.h:44
void debugPrint() const
Prints the parsed JSON object for debugging.
Definition AppWeatherRequest.cpp:57
QList< DailyWeather > daily_weather
The list of daily weather data.
Definition AppWeatherRequest.h:45
The WeatherRequest class provides the interface to request weather data.
Definition MyWeatherRequest.h:47
The AppWeatherDetailedRequest struct provides the detailed request information for the weather,...
Definition AppWeatherRequest.h:52
unsigned short days
The number of days to request.
Definition AppWeatherRequest.h:54
QString city
The city name.
Definition AppWeatherRequest.h:55
unsigned short start
The start day offset.
Definition AppWeatherRequest.h:53
The DailyWeather struct provides the daily weather details. The JSON strings are expected to serializ...
Definition AppWeatherRequest.h:33
QString windScale
Wind scale.
Definition AppWeatherRequest.h:40
QString high
High temperature.
Definition AppWeatherRequest.h:37
QString humidity
Humidity percentage.
Definition AppWeatherRequest.h:41
QString textDay
Daytime weather description.
Definition AppWeatherRequest.h:35
QString windDirection
Wind direction.
Definition AppWeatherRequest.h:39
QString textNight
Nighttime weather description.
Definition AppWeatherRequest.h:36
QString date
The date.
Definition AppWeatherRequest.h:34
QString low
Low temperature.
Definition AppWeatherRequest.h:38
The WeatherResult class provides the weather result interfaces.
Definition MyWeatherRequest.h:13