summaryrefslogtreecommitdiff
path: root/metawatch/metawatchsimulator.h
blob: 38391d0e56760c828f1ffd4f21ad5d02790dbfe5 (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
#ifndef METAWATCHSIMULATOR_H
#define METAWATCHSIMULATOR_H

#include <QtCore/QTime>
#include "watchsimulator.h"
#include "metawatchsimulatorform.h"

namespace sowatch {

class MetaWatchSimulator : public WatchSimulator
{
    Q_OBJECT
public:
    explicit MetaWatchSimulator(QObject *parent = 0);
	~MetaWatchSimulator();

	QString model() const;
	bool isConnected() const;
	bool busy() const;

	void update(const QList<QRect> &rects);
	void vibrate(bool on);

protected:
	QImage _image;
	QPixmap _screen;
	MetaWatchSimulatorForm* _form;
	QTime _nextFrame;
};

}

#endif // METAWATCHSIMULATOR_H