From 140c6bfafe91007c7e24ebf59270c8ad8060e875 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Fri, 9 Dec 2011 02:26:31 +0100 Subject: 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. --- libsowatch/watch.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libsowatch/watch.h') diff --git a/libsowatch/watch.h b/libsowatch/watch.h index eb572eb..60a66bd 100644 --- a/libsowatch/watch.h +++ b/libsowatch/watch.h @@ -55,11 +55,6 @@ public: virtual void queryCharging() = 0; virtual bool charging() const = 0; - /** Grabs a button from whatever is default function is for the current mode. */ - virtual void grabButton(int button) = 0; - /** Restores a button to its default function. */ - virtual void ungrabButton(int button) = 0; - /** Tells the watch to update the unread notifications count, if visible. */ virtual void updateNotificationCount(Notification::Type type, int count) = 0; @@ -71,7 +66,7 @@ public slots: virtual void displayIdleScreen() = 0; /** A standard notification; it's up to the watch when to stop showing it. */ virtual void displayNotification(Notification* notification) = 0; - /** Enter application mode. */ + /** Enter application mode; after this, server can draw on the QPaintDevice. */ virtual void displayApplication() = 0; /** Vibrate for a while. The default implementation does nothing. */ -- cgit v1.2.3