#ifndef HARMACCUWEATHER_H #define HARMACCUWEATHER_H #include #include #include namespace sowatch { class HarmAccuWeather : public WeatherNotification { Q_OBJECT public: explicit HarmAccuWeather(int updateTime, QObject *parent = 0); static QSettings* getAccuweatherData(); Type type() const; uint count() const; QDateTime dateTime() const; QString title() const; QString body() const; WeatherType forecast(); int temperature(); Unit temperatureUnits(); void activate(); void dismiss(); private slots: void update(); private: QTimer* _updateTimer; bool _metric; QDateTime _lastUpdate; QString _lastLocation; int _lastTemp; int _lastWxCode; }; } #endif // HARMACCUWEATHER_H