From 0e265ebc99a274cd4809b628a7667408a0c0a11c Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Mon, 17 Oct 2011 00:20:20 +0200 Subject: Adding stub MetaWatchAnalog plugin --- metawatch/metawatchanalog.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 metawatch/metawatchanalog.h (limited to 'metawatch/metawatchanalog.h') diff --git a/metawatch/metawatchanalog.h b/metawatch/metawatchanalog.h new file mode 100644 index 0000000..ff941c5 --- /dev/null +++ b/metawatch/metawatchanalog.h @@ -0,0 +1,38 @@ +#ifndef METAWATCHANALOG_H +#define METAWATCHANALOG_H + +#include "metawatch.h" + +namespace sowatch +{ + +class MetaWatchAnalog : public MetaWatch +{ + Q_OBJECT +public: + explicit MetaWatchAnalog(const QBluetoothAddress& address, QSettings* settings = 0, QObject *parent = 0); + + static const int screenWidth = 80; + static const int screenHeight = 16*2; + + int metric(PaintDeviceMetric metric) const; + + QString model() const; + + void updateNotificationCount(Notification::Type type, int count); + void updateWeather(WeatherNotification *weather); + + void displayIdleScreen(); + void displayNotification(Notification *notification); + void displayApplication(); + + void clear(Mode mode, bool black = false); + void update(Mode mode, const QList& rects = QList()); + +protected: + void handleWatchConnected(); +}; + +} + +#endif // METAWATCHANALOG_H -- cgit v1.2.3