CCIMXDesktop
 
Loading...
Searching...
No Matches
WeatherResult Struct Referenceabstract

The WeatherResult class provides the weather result interfaces. More...

#include <MyWeatherRequest.h>

Inheritance diagram for WeatherResult:
AppWeatherResult

Signals

void finish_parse ()
 Emitted when the parsing is finished.
 
void error_occurs (QString cached_error_string)
 Emitted when an error occurs.
 

Public Member Functions

 WeatherResult (QObject *obj=nullptr)
 Constructor for WeatherResult.
 
virtual void parseJsonString (const QString json)=0
 Parses the JSON string.
 

Detailed Description

The WeatherResult class provides the weather result interfaces.

Note
WeatherResult is an abstract class that defines how to parse JSON strings retrieved from the web apps.

Constructor & Destructor Documentation

◆ WeatherResult()

WeatherResult::WeatherResult ( QObject *  obj = nullptr)
inlineexplicit

Constructor for WeatherResult.

Parameters
objThe parent QObject.

Member Function Documentation

◆ error_occurs

void WeatherResult::error_occurs ( QString  cached_error_string)
signal

Emitted when an error occurs.

Parameters
cached_error_stringThe error string.

◆ parseJsonString()

virtual void WeatherResult::parseJsonString ( const QString  json)
pure virtual

Parses the JSON string.

Parameters
jsonThe JSON string to parse.

Implemented in AppWeatherResult.


The documentation for this struct was generated from the following file: