CCIMXDesktop
 
Loading...
Searching...
No Matches
WeatherData.h
Go to the documentation of this file.
1
6#ifndef WEATHERDATA_H
7#define WEATHERDATA_H
8
9#include <QString> // For QString to hold text data
10
20 QString city;
21 QString time;
23 double temperature;
24 double windspeed;
26 int isDay;
29};
30
39 double latitude;
40 double longitude;
41};
42
43#endif // WEATHERDATA_H
Represents geographical coordinates (latitude and longitude).
Definition WeatherData.h:38
double longitude
The longitude coordinate (degrees, typically -180 to +180).
Definition WeatherData.h:40
double latitude
The latitude coordinate (degrees, typically -90 to +90).
Definition WeatherData.h:39
Represents a snapshot of weather conditions for a specific location and time.
Definition WeatherData.h:19
int isDay
Indicates if it's currently daytime (1) or nighttime (0).
Definition WeatherData.h:26
QString city
The name of the city for which the weather data is provided.
Definition WeatherData.h:20
QString time
The local time of the weather observation (e.g., "HH:MM AM/PM" or "YYYY-MM-DD HH:MM").
Definition WeatherData.h:21
int winddirection
The wind direction in degrees (0-359, where 0 is North, 90 is East, etc.).
Definition WeatherData.h:25
QString weatherDescription
A textual description of the weather condition (e.g., "Clear sky", "Partly cloudy").
Definition WeatherData.h:28
int weatherCode
A numerical code representing the weather condition (e.g., WMO weather codes).
Definition WeatherData.h:27
double windspeed
The wind speed (unit implicitly defined by context, e.g., m/s, km/h, mph).
Definition WeatherData.h:24
int interval
The forecast interval in seconds (e.g., 900 for 15 minutes, 3600 for 1 hour).
Definition WeatherData.h:22
double temperature
The temperature in Celsius or Fahrenheit (unit implicitly defined by context).
Definition WeatherData.h:23