diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-13 21:31:52 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-13 21:31:52 +0200 |
commit | abdf3b1eaba8151f1b8e862750c38cb7a5411d2a (patch) | |
tree | 69e314d80a332295dd5475fc91f45c2078eaead5 /metawatch/metawatchdigitalsimulator.h | |
parent | 51701e30d710ad016ddf2d306cdd7be122ddf25b (diff) | |
download | sowatch-abdf3b1eaba8151f1b8e862750c38cb7a5411d2a.tar.gz sowatch-abdf3b1eaba8151f1b8e862750c38cb7a5411d2a.zip |
make watchsimulator work again
Diffstat (limited to 'metawatch/metawatchdigitalsimulator.h')
-rw-r--r-- | metawatch/metawatchdigitalsimulator.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/metawatch/metawatchdigitalsimulator.h b/metawatch/metawatchdigitalsimulator.h new file mode 100644 index 0000000..6f5c130 --- /dev/null +++ b/metawatch/metawatchdigitalsimulator.h @@ -0,0 +1,40 @@ +#ifndef METAWATCHSIMULATOR_H +#define METAWATCHSIMULATOR_H + +#include <QtCore/QTime> +#include <QtGui/QPixmap> +#include "metawatchdigital.h" +#include "metawatchdigitalsimulatorform.h" + +namespace sowatch { + +class MetaWatchDigitalSimulator : public MetaWatchDigital +{ + Q_OBJECT +public: + explicit MetaWatchDigitalSimulator(ConfigKey *settings, QObject *parent = 0); + ~MetaWatchDigitalSimulator(); + + bool busy() const; + + void displayIdleScreen(); + void displayNotification(Notification *notification); + void displayApplication(); + + void clear(Mode mode, bool black); + void update(Mode mode, const QList<QRect> &rects); + + void vibrate(bool on); + + void retryConnect(); + void send(const Message& msg); + +private: + MetaWatchDigitalSimulatorForm* _form; + QPixmap _pixmap[3]; + QTime _nextFrame; +}; + +} + +#endif // METAWATCHSIMULATOR_H |