summaryrefslogtreecommitdiff
path: root/metawatch/metawatchanalog.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-10-17 00:20:20 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-10-17 00:20:20 +0200
commit0e265ebc99a274cd4809b628a7667408a0c0a11c (patch)
treedde5595e3ea51131ed8649ee4058747dee7f2eb2 /metawatch/metawatchanalog.h
parent5db79919b3140673f66c9da5965b54671e8f4b6a (diff)
downloadsowatch-0e265ebc99a274cd4809b628a7667408a0c0a11c.tar.gz
sowatch-0e265ebc99a274cd4809b628a7667408a0c0a11c.zip
Adding stub MetaWatchAnalog plugin
Diffstat (limited to 'metawatch/metawatchanalog.h')
-rw-r--r--metawatch/metawatchanalog.h38
1 files changed, 38 insertions, 0 deletions
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<QRect>& rects = QList<QRect>());
+
+protected:
+ void handleWatchConnected();
+};
+
+}
+
+#endif // METAWATCHANALOG_H