summaryrefslogtreecommitdiff
path: root/declarativewatchwrapper.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-09-16 20:51:27 +0200
committerJavier <javier@pcjavier.(none)>2011-09-16 20:51:27 +0200
commitb6060852c4b317cd73043cdc82b652d187d952fd (patch)
treea5795eb33379e7172cd16962c131b8bac8db16da /declarativewatchwrapper.h
parentaa1c0fd3146b4ed055d181c99d52463afa6bedbb (diff)
downloadsowatch-b6060852c4b317cd73043cdc82b652d187d952fd.tar.gz
sowatch-b6060852c4b317cd73043cdc82b652d187d952fd.zip
Fixing some bugs in damage tracking on real N950
Diffstat (limited to 'declarativewatchwrapper.h')
-rw-r--r--declarativewatchwrapper.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/declarativewatchwrapper.h b/declarativewatchwrapper.h
index 09e0923..5f78e75 100644
--- a/declarativewatchwrapper.h
+++ b/declarativewatchwrapper.h
@@ -12,21 +12,24 @@ class DeclarativeWatchlet;
class DeclarativeWatchWrapper : public QObject
{
Q_OBJECT
- Q_PROPERTY(QString model READ model NOTIFY modelChanged)
+ Q_PROPERTY(QString model READ model CONSTANT)
+ Q_PROPERTY(bool active READ active NOTIFY activeChanged)
public:
explicit DeclarativeWatchWrapper(Watch *watch, QObject *parent = 0);
Q_INVOKABLE QString model() const;
+ Q_INVOKABLE bool active() const;
signals:
void buttonPressed(int button);
void buttonReleased(int button);
- void modelChanged();
+ void activeChanged();
protected:
Watch* _watch;
+ bool _active;
void activate();
void deactivate();