summaryrefslogtreecommitdiff
path: root/liveview/liveview.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-11 19:17:07 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-11 19:17:07 +0200
commitbf083973efd101e05d75882b63aad9bdfa37dfbc (patch)
treec07769c2a82e4b5bba8d3d02558eb4c69a531001 /liveview/liveview.h
parentbc899047089079dde323e84a57efe46ce6af653d (diff)
downloadsowatch-bf083973efd101e05d75882b63aad9bdfa37dfbc.tar.gz
sowatch-bf083973efd101e05d75882b63aad9bdfa37dfbc.zip
store watchlets in model
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;