summaryrefslogtreecommitdiff
path: root/fakeproperty.h
blob: 3f920adcf4a67a85fe535f3cbf15c05ff6485356 (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
#ifndef FAKEPROPERTY_H
#define FAKEPROPERTY_H

#include <QtCore/QVariant>

class FakeProperty : public QObject
{
    Q_OBJECT
public:
	explicit FakeProperty(const QString& key, QObject *parent = 0);
	QString key() const;
	QVariant value() const;
	quint64 timestamp() const;

signals:
	void valueChanged();

public slots:
	void setValue(const QVariant& value);
	void startFaking();
	void stopFaking();

protected:
	QString _key;
	QVariant _value;
	quint64 _timestamp;

};

#endif // FAKEPROPERTY_H