CCIMXDesktop
 
Loading...
Searching...
No Matches
AppWeatherResult Class Reference

The AppWeatherResult class provides the weather result and implements the WeatherResult functionality. More...

#include <AppWeatherRequest.h>

Inheritance diagram for AppWeatherResult:
WeatherResult

Classes

struct  DailyWeather
 The DailyWeather struct provides the daily weather details. The JSON strings are expected to serialize into this struct. More...
 

Public Member Functions

 AppWeatherResult (QObject *parent=nullptr)
 Constructor for AppWeatherResult.
 
void parseJsonString (const QString json) override
 Parses the JSON string from remote servers.
 
void debugPrint () const
 Prints the parsed JSON object for debugging.
 
- Public Member Functions inherited from WeatherResult
 WeatherResult (QObject *obj=nullptr)
 Constructor for WeatherResult.
 

Public Attributes

QString cached_city
 The city for which weather data is requested.
 
QList< DailyWeatherdaily_weather
 The list of daily weather data.
 

Additional Inherited Members

- Signals inherited from WeatherResult
void finish_parse ()
 Emitted when the parsing is finished.
 
void error_occurs (QString cached_error_string)
 Emitted when an error occurs.
 

Detailed Description

The AppWeatherResult class provides the weather result and implements the WeatherResult functionality.

Constructor & Destructor Documentation

◆ AppWeatherResult()

AppWeatherResult::AppWeatherResult ( QObject *  parent = nullptr)
inlineexplicit

Constructor for AppWeatherResult.

Parameters
parentThe parent QObject.

Member Function Documentation

◆ parseJsonString()

void AppWeatherResult::parseJsonString ( const QString  json)
overridevirtual

Parses the JSON string from remote servers.

Parameters
jsonThe JSON string to parse.

Implements WeatherResult.


The documentation for this class was generated from the following files: