From 0d8b5446e880298d89511dd0bc0dbe328ccfce97 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sun, 11 Sep 2011 03:31:14 +0200 Subject: Try to revert to previous state on SIGINT/SIGTERM. --- fakeproperty.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'fakeproperty.h') 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; }; -- cgit v1.2.3