From bc899047089079dde323e84a57efe46ce6af653d Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sat, 11 May 2013 16:10:50 +0200 Subject: add the liveview paint engine --- liveview/liveview.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'liveview/liveview.h') 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 _sendingMsgs; QTimer* _sendTimer; -- cgit v1.2.3