summaryrefslogtreecommitdiff
path: root/liveview/liveview.h
diff options
context:
space:
mode:
Diffstat (limited to 'liveview/liveview.h')
-rw-r--r--liveview/liveview.h15
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;