summaryrefslogtreecommitdiff
path: root/fakeproperty.h
diff options
context:
space:
mode:
Diffstat (limited to 'fakeproperty.h')
-rw-r--r--fakeproperty.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/fakeproperty.h b/fakeproperty.h
index 4509b83..3f920ad 100644
--- a/fakeproperty.h
+++ b/fakeproperty.h
@@ -7,17 +7,23 @@ class FakeProperty : public QObject
{
Q_OBJECT
public:
- explicit FakeProperty(const QString& key, const QVariant& value, QObject *parent = 0);
- const QString& key() const;
- const QVariant& value() const;
+ 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();
-private:
+protected:
QString _key;
QVariant _value;
+ quint64 _timestamp;
};