00001
00007 #ifndef __WEATHER_H__
00008 #define __WEATHER_H__
00009
00010 #include <stdio.h>
00011 #include <stdlib.h>
00012 #include <time.h>
00013
00018 class Weather {
00019
00020 time_t cur_time_t;
00021
00022 char* picture;
00023 char* descrip;
00024 char* url;
00025
00026 char* daysOfWeek[7];
00027
00028 bool parsePage(FILE* page, int daysFromToday);
00029 bool checkTime(time_t time, int* daysFromToday);
00030
00031 public:
00032
00033 Weather();
00034 ~Weather();
00035
00069 bool getWeather(char* zip, time_t time, char* weatherLink,
00070 char* pictureLink, char* weatherDescription);
00071
00072 };
00073
00074 #endif