diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-11 16:10:50 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-11 16:10:50 +0200 |
commit | bc899047089079dde323e84a57efe46ce6af653d (patch) | |
tree | c88ef2bc6d1876518b285db15e5a400c6c4795a4 /liveview/liveview.h | |
parent | 4b5bbdea7bdb6defc88023ba65f7aec1a7439977 (diff) | |
download | sowatch-bc899047089079dde323e84a57efe46ce6af653d.tar.gz sowatch-bc899047089079dde323e84a57efe46ce6af653d.zip |
add the liveview paint engine
Diffstat (limited to 'liveview/liveview.h')
-rw-r--r-- | liveview/liveview.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/liveview/liveview.h b/liveview/liveview.h index e150797..4a2e165 100644 --- a/liveview/liveview.h +++ b/liveview/liveview.h @@ -7,6 +7,8 @@ namespace sowatch { +class LiveViewPaintEngine; + class LiveView : public BluetoothWatch { Q_OBJECT @@ -39,6 +41,13 @@ public: void vibrate(int msecs); + // Only for application mode + QImage* image(); + /** Render a image in a certain position. */ + void renderImage(int x, int y, const QImage& image); + /** Clear the current display to black. */ + void clear(); + protected: static const int DelayBetweenMessages = 5; @@ -134,8 +143,14 @@ private: bool _24hMode : 1; + int _screenWidth; + int _screenHeight; QStringList _buttons; + // Required by QPaintDevice + mutable LiveViewPaintEngine* _paintEngine; + QImage _image; + /** Message outbox queue. */ QQueue<Message> _sendingMsgs; QTimer* _sendTimer; |