summaryrefslogtreecommitdiff
path: root/libsowatch/watch.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-09-24 20:52:17 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-09-24 20:52:17 +0200
commita1ec50943454ba4674c8c5e5d5dadcdbd414b111 (patch)
tree163aed51758c98fa6feec35a344aa8b5095c32e5 /libsowatch/watch.h
parentcba26597f1c09764d37be0d13863ec5d5c340da0 (diff)
downloadsowatch-a1ec50943454ba4674c8c5e5d5dadcdbd414b111.tar.gz
sowatch-a1ec50943454ba4674c8c5e5d5dadcdbd414b111.zip
Incoming phone calls working!
Diffstat (limited to 'libsowatch/watch.h')
-rw-r--r--libsowatch/watch.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/libsowatch/watch.h b/libsowatch/watch.h
index 5552a8c..eabfa06 100644
--- a/libsowatch/watch.h
+++ b/libsowatch/watch.h
@@ -21,28 +21,38 @@ public:
explicit Watch(QObject* parent = 0);
~Watch();
+ /** Return a string identiyfying this watch's model. */
virtual QString model() const = 0;
+ /** Should return true if the watch is connected. */
virtual bool isConnected() const = 0;
/** Indicates if watch is too busy atm and we should limit frame rate. */
virtual bool busy() const = 0;
+ /** Changes the current date/time on the watch. */
virtual QDateTime dateTime() = 0;
virtual void setDateTime(const QDateTime& dateTime) = 0;
+ /** Tells the watch to update the unread notifications count, if visible. */
virtual void updateNotificationCount(Notification::Type type, int count) = 0;
signals:
+ /** The watch has been found and linked to. */
void connected();
+ /** The watch connection has been lost. */
void disconnected();
+ /** The watch has returned to the idle screen by either inactivity or notification cleared/timeout. */
+ void idling();
void buttonPressed(int button);
void buttonReleased(int button);
public slots:
- virtual void vibrate(bool on) = 0;
- virtual void showNotification(const Notification& n) = 0;
- virtual void startRinging(const QString& text) = 0;
- virtual void stopRinging() = 0;
+ /** Go back to the idle screen. */
+ virtual void displayIdleScreen() = 0;
+ /** A standard notification; it's up to the watch when to stop showing it. */
+ virtual void displayNotification(Notification* n) = 0;
+ /** Enter application mode. */
+ virtual void displayApplication() = 0;
};
}