-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathweatherData.h
75 lines (55 loc) · 1.03 KB
/
weatherData.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#ifndef WEATHERDATA_H
#define WEATHERDATA_H
#include<QString>
class Today{
public:
Today()
{
date = "2023-03-07";
city = "深圳";
ganmao = "感冒指数";
wendu = 0;
shidu = "0%";
pm25 = 0;
quality = "无数据";
type = "多云";
fl = "2级";
fx = "南风";
high = 20;
low = 18;
}
QString date;
QString city;
QString ganmao;
QString shidu;
int wendu;
int pm25;
QString quality;
QString type;
QString fl;
QString fx;
int high;
int low;
};
class Day{
public:
Day(){
date = "2023-03-07";
week = "周二";
type = "多云";
high = 0;
low = 0;
fl = "2级";
fx = "南风";
aqi = 0;
}
QString date;
QString week;
QString type;
int high;
int low;
QString fl;
QString fx;
int aqi;
};
#endif // WEATHERDATA_H