diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-27 04:51:30 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-09-27 04:51:30 +0200 |
commit | a644a7cc6749f8dd5ca20589ee6e59acc2892b3e (patch) | |
tree | b995528dc14d1f58d9d7c958d1eaad855b2a2412 /metawatch/metawatch.h | |
parent | 0822b88738e00625efd27ccca9119885272924d2 (diff) | |
download | sowatch-a644a7cc6749f8dd5ca20589ee6e59acc2892b3e.tar.gz sowatch-a644a7cc6749f8dd5ca20589ee6e59acc2892b3e.zip |
new qmafw watchlet
Diffstat (limited to 'metawatch/metawatch.h')
-rw-r--r-- | metawatch/metawatch.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/metawatch/metawatch.h b/metawatch/metawatch.h index 0a9123a..9a25134 100644 --- a/metawatch/metawatch.h +++ b/metawatch/metawatch.h @@ -93,15 +93,17 @@ public: QDateTime dateTime(); void setDateTime(const QDateTime& dateTime); - void displayIdleScreen(); - void displayNotification(Notification *n); - void displayApplication(); - void grabButton(int button); void ungrabButton(int button); void updateNotificationCount(Notification::Type type, int count); + void displayIdleScreen(); + void displayNotification(Notification *notification); + void displayApplication(); + + void vibrate(int msecs); + Mode currentMode() const; Mode paintTargetMode() const; QImage* imageFor(Mode mode); @@ -121,6 +123,9 @@ protected: // Some configurable stuff. bool _24hMode : 1; bool _dayMonthOrder : 1; + bool _invertedIdle : 1; + bool _invertedNotifications : 1; + bool _invertedApplications : 1; short _notificationTimeout; // Notifications: Unread count @@ -131,7 +136,6 @@ protected: QTimer* _ringTimer; // Buttons - static const char watchToBtn[8]; static const char btnToWatch[8]; QStringList _buttonNames; @@ -181,7 +185,7 @@ protected: void updateLine(Mode mode, const QImage& image, int line); void updateLines(Mode mode, const QImage& image, int lineA, int lineB); void updateLines(Mode mode, const QImage& image, const QVector<bool>& lines); - void configureWatchMode(Mode mode, int timeout, bool invert = false); + void configureWatchMode(Mode mode, int timeout, bool invert); void configureIdleSystemArea(bool entireScreen); void updateDisplay(Mode mode, bool copy = true); void loadTemplate(Mode mode, int templ); @@ -203,6 +207,7 @@ protected slots: private: void realSend(const Message& msg); + void realReceive(bool block); }; } |