diff options
Diffstat (limited to 'weather/src/forecastsource.h')
| -rw-r--r-- | weather/src/forecastsource.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/weather/src/forecastsource.h b/weather/src/forecastsource.h new file mode 100644 index 0000000..8c7cfbe --- /dev/null +++ b/weather/src/forecastsource.h @@ -0,0 +1,18 @@ +#ifndef FORECASTSOURCE_H +#define FORECASTSOURCE_H + +#include <QObject> +#include "forecastdata.h" + +class ForecastSource : public QObject +{ + Q_OBJECT +public: + ForecastSource(QObject *parent = 0) : QObject(parent) {} + virtual int getForecast(const QString &key, bool locationId) = 0; + +signals: + void forecastReceived(int id, const ForecastData &data); +}; + +#endif // FORECASTSOURCE_H |
