CCIMXDesktop
 
Loading...
Searching...
No Matches
PesudoLocalFetcher Struct Reference

The PesudoLocalFetcher class works in upper machines this is using in preview and test the ui behaviours. More...

Inheritance diagram for PesudoLocalFetcher:
LocalWeatherLightFetcher

Public Member Functions

 Q_DISABLE_COPY (PesudoLocalFetcher)
 disable copy
 
float fetch_local_tempature () override
 fetch_local_tempature is the main function to fetch the local temperature
 
QString makeup_toast_message () override
 makeup_toast_message is the message that will be displayed in the toast, so this functions is using in indicating how to format the message
 
- Public Member Functions inherited from LocalWeatherLightFetcher
 LocalWeatherLightFetcher ()=default
 Construct a new Local Weather Light Fetcher object.
 
 Q_DISABLE_COPY (LocalWeatherLightFetcher)
 disable copy
 

Static Public Attributes

static constexpr float temp_min = 20.0
 temp_min matters the rand gen's minimals
 
static constexpr float temp_max = 25.0
 temp_max matters the rand gen's maximals
 

Detailed Description

The PesudoLocalFetcher class works in upper machines this is using in preview and test the ui behaviours.

Member Function Documentation

◆ fetch_local_tempature()

float PesudoLocalFetcher::fetch_local_tempature ( )
inlineoverridevirtual

fetch_local_tempature is the main function to fetch the local temperature

Returns
temperature value

Implements LocalWeatherLightFetcher.

◆ makeup_toast_message()

QString PesudoLocalFetcher::makeup_toast_message ( )
inlineoverridevirtual

makeup_toast_message is the message that will be displayed in the toast, so this functions is using in indicating how to format the message

Returns

Implements LocalWeatherLightFetcher.


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