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

The LocalWeatherLightFetcher class is the interface level class if later, the projects using C++23, we shell try to use the concept to redefined the class Interface for the lower cost in performance. More...

#include <localweathercard.h>

Inheritance diagram for LocalWeatherLightFetcher:
LocalFetcher PesudoLocalFetcher

Public Member Functions

 LocalWeatherLightFetcher ()=default
 Construct a new Local Weather Light Fetcher object.
 
 Q_DISABLE_COPY (LocalWeatherLightFetcher)
 disable copy
 
virtual float fetch_local_tempature ()=0
 fetch_local_tempature is the main function to fetch the local temperature
 
virtual QString makeup_toast_message ()=0
 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
 

Detailed Description

The LocalWeatherLightFetcher class is the interface level class if later, the projects using C++23, we shell try to use the concept to redefined the class Interface for the lower cost in performance.

Member Function Documentation

◆ fetch_local_tempature()

virtual float LocalWeatherLightFetcher::fetch_local_tempature ( )
pure virtual

fetch_local_tempature is the main function to fetch the local temperature

Returns
temperature value

Implemented in PesudoLocalFetcher, and LocalFetcher.

◆ makeup_toast_message()

virtual QString LocalWeatherLightFetcher::makeup_toast_message ( )
pure virtual

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

Implemented in PesudoLocalFetcher, and LocalFetcher.


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