diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-11 01:18:40 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-11 01:18:40 +0200 |
commit | d0cfdca133a6dff4d6e62ff98126aa94c833a59a (patch) | |
tree | 6843d2e4478cc0a6c7ed813632c60646ab0f1c2a /liveview/liveview.h | |
parent | 08d66614584019d9d05942b917aae494727e2dfb (diff) | |
download | sowatch-d0cfdca133a6dff4d6e62ff98126aa94c833a59a.tar.gz sowatch-d0cfdca133a6dff4d6e62ff98126aa94c833a59a.zip |
add some menuitems for notifications
Diffstat (limited to 'liveview/liveview.h')
-rw-r--r-- | liveview/liveview.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/liveview/liveview.h b/liveview/liveview.h index b993ee2..17819bc 100644 --- a/liveview/liveview.h +++ b/liveview/liveview.h @@ -48,6 +48,15 @@ protected: GetDisplayPropertiesResponse = 2, DeviceStatusChange = 7, DeviceStatusChangeResponse = 8, + SetMenuSize = 23, + SetMenuSizeResponse = 24, + MenuItemRequest = 25, + MenuItemResponse = 26, + NotificationRequest = 27, + NotificationResponse = 28, + Navigation = 29, + NavigationResponse = 30, + MenuItemsRequest = 35, DateTimeRequest = 38, DateTimeResponse = 39, EnableLed = 40, @@ -82,15 +91,25 @@ protected: void setupBluetoothWatch(); void desetupBluetoothWatch(); + /** Update the device menu (after a power on, etc.) */ + void refreshMenu(); + +protected: void send(const Message& msg); void sendResponse(MessageType type, ResponseType response); void updateDisplayProperties(); void updateSoftwareVersion(); - void enableLed(const QColor& color, int delay, int time); + void setMenuSize(unsigned char size); + void sendMenuItem(unsigned char id, bool alert, unsigned short unread, const QString& text, const QByteArray& image); + void enableLed(const QColor& color, unsigned short delay, unsigned short time); void handleMessage(const Message& msg); void handleDeviceStatusChange(const Message& msg); + void handleMenuItemRequest(const Message& msg); + void handleNotificationRequest(const Message& msg); + void handleNavigation(const Message& msg); + void handleMenuItemsRequest(const Message& msg); void handleDateTimeRequest(const Message& msg); void handleDisplayProperties(const Message& msg); void handleSoftwareVersion(const Message& msg); @@ -104,6 +123,8 @@ private: bool _24hMode : 1; + QStringList _buttons; + /** Message outbox queue. */ QQueue<Message> _sendingMsgs; QTimer* _sendTimer; |