summaryrefslogtreecommitdiff
path: root/liveview/liveview.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-11 02:16:27 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-11 02:16:27 +0200
commit4b5bbdea7bdb6defc88023ba65f7aec1a7439977 (patch)
treef709ed48c4d48662f03000e2f59ff78baacd6222 /liveview/liveview.h
parentd0cfdca133a6dff4d6e62ff98126aa94c833a59a (diff)
downloadsowatch-4b5bbdea7bdb6defc88023ba65f7aec1a7439977.tar.gz
sowatch-4b5bbdea7bdb6defc88023ba65f7aec1a7439977.zip
test drawing some bitmaps on the liveview
Diffstat (limited to 'liveview/liveview.h')
-rw-r--r--liveview/liveview.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/liveview/liveview.h b/liveview/liveview.h
index 17819bc..e150797 100644
--- a/liveview/liveview.h
+++ b/liveview/liveview.h
@@ -48,6 +48,10 @@ protected:
GetDisplayPropertiesResponse = 2,
DeviceStatusChange = 7,
DeviceStatusChangeResponse = 8,
+ DisplayBitmap = 19,
+ DisplayBitmapResponse = 20,
+ DisplayClear = 21,
+ DisplayClearResponse = 22,
SetMenuSize = 23,
SetMenuSizeResponse = 24,
MenuItemRequest = 25,
@@ -80,6 +84,11 @@ protected:
DeviceMenu = 2
};
+ enum MenuItemType {
+ MenuNotificationList = 0,
+ MenuOther = 1
+ };
+
struct Message {
MessageType type;
QByteArray data;
@@ -100,8 +109,10 @@ protected:
void updateDisplayProperties();
void updateSoftwareVersion();
+ void displayBitmap(unsigned char x, unsigned char y, const QByteArray& image);
+ void displayClear();
void setMenuSize(unsigned char size);
- void sendMenuItem(unsigned char id, bool alert, unsigned short unread, const QString& text, const QByteArray& image);
+ void sendMenuItem(unsigned char id, MenuItemType type, 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);