diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-16 20:51:27 +0200 |
---|---|---|
committer | Javier <javier@pcjavier.(none)> | 2011-09-16 20:51:27 +0200 |
commit | b6060852c4b317cd73043cdc82b652d187d952fd (patch) | |
tree | a5795eb33379e7172cd16962c131b8bac8db16da /metawatch.h | |
parent | aa1c0fd3146b4ed055d181c99d52463afa6bedbb (diff) | |
download | sowatch-b6060852c4b317cd73043cdc82b652d187d952fd.tar.gz sowatch-b6060852c4b317cd73043cdc82b652d187d952fd.zip |
Fixing some bugs in damage tracking on real N950
Diffstat (limited to 'metawatch.h')
-rw-r--r-- | metawatch.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/metawatch.h b/metawatch.h index 2ec56f9..80a1894 100644 --- a/metawatch.h +++ b/metawatch.h @@ -16,7 +16,7 @@ namespace sowatch class MetaWatch : public Watch { Q_OBJECT - Q_ENUMS(MessageType) + Q_ENUMS(MessageType Mode) public: explicit MetaWatch(const QBluetoothAddress& address, QObject *parent = 0); @@ -62,6 +62,11 @@ public: Accelerometer = 0xea }; + enum Mode { + IdleMode = 0, + ApplicationMode = 1 + }; + protected: QBluetoothSocket* _socket; @@ -90,12 +95,12 @@ protected: void send(const Message& msg); void handleMessage(const Message& msg); - void updateLine(int mode, const QImage& image, int line); - void updateLines(int mode, const QImage& image, int lineA, int lineB); - void updateLines(int mode, const QImage& image, const QVector<bool>& lines); - void configureWatchMode(int mode, int timeout = 10, bool invert = false); - void updateDisplay(int mode, bool copy = true); - void loadTemplate(int mode, int templ); + void updateLine(Mode mode, const QImage& image, int line); + void updateLines(Mode mode, const QImage& image, int lineA, int lineB); + void updateLines(Mode mode, const QImage& image, const QVector<bool>& lines); + void configureWatchMode(Mode mode, int timeout = 10, bool invert = false); + void updateDisplay(Mode mode, bool copy = true); + void loadTemplate(Mode mode, int templ); void handleStatusChange(const Message& msg); void handleButtonEvent(const Message& msg); |