summaryrefslogtreecommitdiff
path: root/libsowatch/metawatchsimulator.h
blob: 674c3c6e850789f503342a158350b717a2978c45 (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
#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:
	QPixmap _screen;
	MetaWatchSimulatorForm* _form;
	QTime _nextFrame;
};

}

#endif // METAWATCHSIMULATOR_H