From d9f140ec45f91a8567b6d8e2ce69fe853ae8b3a9 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Mon, 15 Sep 2014 01:53:44 +0200 Subject: minimal notifications --- src/metawatch.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'src/metawatch.h') diff --git a/src/metawatch.h b/src/metawatch.h index 6b50ead..a83ad0c 100644 --- a/src/metawatch.h +++ b/src/metawatch.h @@ -22,6 +22,8 @@ public: MessageGetDeviceType = 0x01, MessageGetDeviceTypeResponse = 0x02, + MessageSetVibrateMode = 0x23, + MessageSetRealTimeClock = 0x26, MessageWatchPropertyOperation = 0x30, @@ -29,6 +31,8 @@ public: MessageModeChangeIndication = 0x33, + MessageWriteLcdBuffer = 0x40, + MessageUpdateLcdDisplay = 0x43, MessageGetBatteryStatus = 0x56, @@ -50,7 +54,8 @@ public: }; enum WatchMode { - WatchModeIdle = 0 + WatchModeIdle = 0, + WatchModeNotification = 2 }; enum WatchProperty { @@ -72,8 +77,7 @@ public: UiGen2 = 1 }; - static QList availableClocks(); - + void setVibrateMode(bool enable, int on_duration, int off_duration, int cycles); void setDateTime(const QDateTime &dt); void configure(WatchProperties props); @@ -83,8 +87,12 @@ public: void updateLcdDisplay(); /** Goes to idle mode and a specific page */ void updateLcdDisplayPage(int page); + /** Goes to a specific mode. */ + void updateLcdDisplayMode(WatchMode mode); void updateWidgetList(const QList& widgets); + void sendModeImage(WatchMode mode, const QImage &image); + signals: void connected(); void disconnected(); @@ -97,9 +105,6 @@ public slots: void connectDevice(); void disconnectDevice(); -private: - static int clockUrlToClockId(const QUrl &url); - private slots: void handleTransportMessage(quint8 type, quint8 options, const QByteArray &payload); -- cgit v1.2.3