summaryrefslogtreecommitdiff
path: root/metawatch/metawatch.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-12-09 02:26:31 +0100
committerJavier S. Pedro <maemo@javispedro.com>2011-12-09 02:26:31 +0100
commit140c6bfafe91007c7e24ebf59270c8ad8060e875 (patch)
tree59c23a95edb83736fb914ade8fc287c5490528fd /metawatch/metawatch.h
parentcbf8e3ad49917dc71e8c5f6413c55f266c1c4ad3 (diff)
downloadsowatch-140c6bfafe91007c7e24ebf59270c8ad8060e875.tar.gz
sowatch-140c6bfafe91007c7e24ebf59270c8ad8060e875.zip
Removing the entire grabButton/ungrab mechanism
Applications&server no longer have to grab/ungrab buttons. Also, LED button should now work everywhere in digital MetaWatch.
Diffstat (limited to 'metawatch/metawatch.h')
-rw-r--r--metawatch/metawatch.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/metawatch/metawatch.h b/metawatch/metawatch.h
index 7ea835f..5a42b8d 100644
--- a/metawatch/metawatch.h
+++ b/metawatch/metawatch.h
@@ -26,6 +26,10 @@ public:
explicit MetaWatch(const QBluetoothAddress& address, QSettings* settings = 0, QObject *parent = 0);
~MetaWatch();
+ static const int DelayBetweenMessages = 10;
+ static const int DelayBetweenRings = 2500;
+ static const int RingLength = 500;
+
enum MessageType {
NoMessage = 0,
GetDeviceType = 0x01,
@@ -109,9 +113,6 @@ public:
void queryCharging();
bool charging() const;
- void grabButton(int button);
- void ungrabButton(int button);
-
void updateNotificationCount(Notification::Type type, int count);
void updateWeather(WeatherNotification *weather);