diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-12 03:49:38 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-12 03:49:38 +0200 |
commit | 3ca9235ddb93b52730099164a0dc387f7a301280 (patch) | |
tree | aa6e74210ce6075fc9e974dd275d28adf5f5d0c5 /testnotification/testweathernotification.h | |
parent | ac182bd9bf076b4d03d4812e85b989edae32d756 (diff) | |
download | sowatch-3ca9235ddb93b52730099164a0dc387f7a301280.tar.gz sowatch-3ca9235ddb93b52730099164a0dc387f7a301280.zip |
weather rendering in metawatchwatchlets
Diffstat (limited to 'testnotification/testweathernotification.h')
-rw-r--r-- | testnotification/testweathernotification.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testnotification/testweathernotification.h b/testnotification/testweathernotification.h new file mode 100644 index 0000000..1236f31 --- /dev/null +++ b/testnotification/testweathernotification.h @@ -0,0 +1,34 @@ +#ifndef TESTWEATHERNOTIFICATION_H +#define TESTWEATHERNOTIFICATION_H + +#include <sowatch.h> + +namespace sowatch +{ + +class TestWeatherNotification : public WeatherNotification +{ + Q_OBJECT + +public: + explicit TestWeatherNotification(QObject *parent = 0); + + Type type() const; + uint count() const; + QDateTime dateTime() const; + QString title() const; + QString body() const; + + WeatherType forecast() const; + int temperature() const; + Unit temperatureUnits() const; + + void activate(); + void dismiss(); +}; + +} + +QML_DECLARE_TYPE(sowatch::TestWeatherNotification) + +#endif // TESTWEATHERNOTIFICATION_H |