summaryrefslogtreecommitdiff
path: root/metawatch/metawatchdigitalsimulator.h
blob: 8b424ecdd8ed0ed5bc1ec09c365ad8e18b4cfb9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#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 connectToWatch();
	void send(const Message& msg);

private slots:
	void handleFormDestroyed();

private:
	MetaWatchDigitalSimulatorForm* _form;
	QPixmap _pixmap[3];
	QTime _nextFrame;
};

}

#endif // METAWATCHSIMULATOR_H