webdata: Removed code for autoconfiguration of proxy.
[apps/thermostat-demo.git] / webdata.h
1 #ifndef WEBDATA_H
2 #define WEBDATA_H
4 #include <QObject>
5 #include <QtNetwork>
6 #include <QUrl>
8 class GlobalSettings;
9 class ForecastData;
10 class WeatherData;
11 class WebDataEngine;
13 class WebData : public QObject
14 {
15     Q_OBJECT
16 public:
18     explicit WebData(QObject *parent = 0);
20     void changeCity(QString);
21     void loadLocalData();
22     QString licenseString();
24 signals:
25     void dataAvailable(WeatherData* weatherData);
26     void networkTimeout();
27     
28 public slots:
29     void configureProxy();
31     void processDataAvailable(WeatherData* weatherData);
32     void processNetworkTimeout();
34 private:
36     void configureNoProxy();
37     void configureSetProxy();
39     GlobalSettings *m_globalSettings;
40     QNetworkAccessManager *manager;
41     WebDataEngine* webDataEngine;
43 };
45 #endif // WEBDATA_H