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

The AppWeatherRequest class provides the weather request and implements the WeatherRequest functionality. More...

#include <AppWeatherRequest.h>

Inheritance diagram for AppWeatherRequest:
WeatherRequest

Public Member Functions

 Q_DISABLE_COPY (AppWeatherRequest)
 Disables copy constructor and copy assignment. This prevents copying of the AppWeatherRequest object.
 
 AppWeatherRequest (QObject *parent=nullptr)
 Constructor for AppWeatherRequest.
 
void bindAppDetailedRequest (const AppWeatherDetailedRequest &request)
 Binds a detailed request.
 
QUrlQuery compose_request () override
 Composes the URL query for the weather request.
 
- Public Member Functions inherited from WeatherRequest
 Q_DISABLE_COPY (WeatherRequest)
 Disables copy constructor and copy assignment. This prevents copying of the WeatherRequest object.
 
 WeatherRequest (QObject *parent=nullptr)
 Constructor for WeatherRequest.
 
void async_request (const char *base_url)
 Sends the request asynchronously.
 

Additional Inherited Members

- Signals inherited from WeatherRequest
void errorOccurs (QNetworkReply *reply)
 Emitted when an error occurs in the request.
 
void result_available (const QString json)
 Emitted when the result is available.
 
- Protected Attributes inherited from WeatherRequest
QNetworkAccessManager manager
 The network manager handling requests.
 
- Static Protected Attributes inherited from WeatherRequest
static constexpr const char * private_key = _DEF_WEATHER_PRIVATE_KEY
 Private key for accessing the weather service.
 

Detailed Description

The AppWeatherRequest class provides the weather request and implements the WeatherRequest functionality.

Constructor & Destructor Documentation

◆ AppWeatherRequest()

AppWeatherRequest::AppWeatherRequest ( QObject *  parent = nullptr)
inline

Constructor for AppWeatherRequest.

Parameters
parentThe parent QObject.

Member Function Documentation

◆ bindAppDetailedRequest()

void AppWeatherRequest::bindAppDetailedRequest ( const AppWeatherDetailedRequest request)
inline

Binds a detailed request.

Parameters
requestThe AppWeatherDetailedRequest structure to bind.

◆ compose_request()

QUrlQuery AppWeatherRequest::compose_request ( )
overridevirtual

Composes the URL query for the weather request.

Returns
The composed QUrlQuery.

Implements WeatherRequest.


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