summaryrefslogtreecommitdiff
path: root/src/metawatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/metawatch.h')
-rw-r--r--src/metawatch.h17
1 files changed, 11 insertions, 6 deletions
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<QUrl> 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<WidgetInfo>& 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);