From e42e7dca8df8d1e4966545894e2dde228f19b6f0 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Mon, 17 Oct 2011 15:33:23 +0200 Subject: Some weather related fixes --- metawatch/metawatchdigital.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'metawatch/metawatchdigital.h') diff --git a/metawatch/metawatchdigital.h b/metawatch/metawatchdigital.h index a528eb2..7ce195b 100644 --- a/metawatch/metawatchdigital.h +++ b/metawatch/metawatchdigital.h @@ -31,14 +31,19 @@ public: void update(Mode mode, const QList& rects = QList()); protected: - // Notifications: Unread count - uint _nMails, _nCalls, _nIms, _nSms, _nMms; + // Idle screen: notifications unread count + ushort _nMails, _nCalls, _nIms, _nSms, _nMms; + // Idle screen: weather information + WeatherNotification::WeatherType _wForecast; + QString _wBody; + short _wTemperature; + bool _wMetric; void handleWatchConnected(); void renderIdleScreen(); - void renderIdleWeather(WeatherNotification *w = 0); - QImage iconForWeather(WeatherNotification *w); + void renderIdleWeather(); + QImage iconForWeather(WeatherNotification::WeatherType w); void renderIdleCounts(); void renderNotification(Notification *n); -- cgit v1.2.3