#ifndef WEBDATA_H #define WEBDATA_H #include #include #include class GlobalSettings; class ForecastData; class WeatherData; class WebDataEngine; class WebData : public QObject { Q_OBJECT public: explicit WebData(QObject *parent = 0); void changeCity(QString); void loadLocalData(); QString licenseString(); signals: void dataAvailable(WeatherData* weatherData); void networkTimeout(); public slots: void configureProxy(); void processDataAvailable(WeatherData* weatherData); void processNetworkTimeout(); private: void configureNoProxy(); void configureSetProxy(); GlobalSettings *m_globalSettings; QNetworkAccessManager *manager; WebDataEngine* webDataEngine; }; #endif // WEBDATA_H