summaryrefslogtreecommitdiff
path: root/liveview/liveview.h
diff options
context:
space:
mode:
Diffstat (limited to 'liveview/liveview.h')
-rw-r--r--liveview/liveview.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/liveview/liveview.h b/liveview/liveview.h
index 4a2e165..65ce523 100644
--- a/liveview/liveview.h
+++ b/liveview/liveview.h
@@ -41,6 +41,8 @@ public:
void vibrate(int msecs);
+ void setWatchletsModel(WatchletsModel *model);
+
// Only for application mode
QImage* image();
/** Render a image in a certain position. */
@@ -98,6 +100,11 @@ protected:
MenuOther = 1
};
+ enum Mode {
+ RootMenuMode = 0,
+ ApplicationMode
+ };
+
struct Message {
MessageType type;
QByteArray data;
@@ -137,9 +144,11 @@ protected:
private slots:
void handleDataReceived();
void handleSendTimerTick();
+ void handleWatchletsChanged();
private:
ConfigKey *_settings;
+ WatchletsModel *_watchlets;
bool _24hMode : 1;
@@ -147,6 +156,8 @@ private:
int _screenHeight;
QStringList _buttons;
+ Mode _mode;
+
// Required by QPaintDevice
mutable LiveViewPaintEngine* _paintEngine;
QImage _image;