summaryrefslogtreecommitdiffstats
path: root/weather/src/forecastsource.h
blob: 8c7cfbedb24a3b69da58bc5dd4ff689884a5cdcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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