summaryrefslogtreecommitdiff
path: root/declarativewatchwrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'declarativewatchwrapper.h')
-rw-r--r--declarativewatchwrapper.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/declarativewatchwrapper.h b/declarativewatchwrapper.h
deleted file mode 100644
index 5f78e75..0000000
--- a/declarativewatchwrapper.h
+++ /dev/null
@@ -1,44 +0,0 @@
-#ifndef DECLARATIVEWATCHWRAPPER_H
-#define DECLARATIVEWATCHWRAPPER_H
-
-#include <QtDeclarative/QtDeclarative>
-
-namespace sowatch
-{
-
-class Watch;
-class DeclarativeWatchlet;
-
-class DeclarativeWatchWrapper : public QObject
-{
- Q_OBJECT
- 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 activeChanged();
-
-protected:
- Watch* _watch;
- bool _active;
-
- void activate();
- void deactivate();
-
-friend class DeclarativeWatchlet;
-};
-
-}
-
-QML_DECLARE_TYPE(sowatch::DeclarativeWatchWrapper)
-
-#endif // DECLARATIVEWATCHWRAPPER_H