From ff57a31b95c48d75e49641177a8805193ea7ddaf Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sun, 11 Sep 2011 00:22:17 +0200 Subject: Initial import. --- fakepropertyadaptor.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 fakepropertyadaptor.h (limited to 'fakepropertyadaptor.h') diff --git a/fakepropertyadaptor.h b/fakepropertyadaptor.h new file mode 100644 index 0000000..8293042 --- /dev/null +++ b/fakepropertyadaptor.h @@ -0,0 +1,30 @@ +#ifndef FAKEPROPERTYADAPTOR_H +#define FAKEPROPERTYADAPTOR_H + +#include +#include + +#include "fakeproperty.h" + +class FakePropertyAdaptor : public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.maemo.contextkit.Property") + +public: + explicit FakePropertyAdaptor(FakeProperty* property); + QString objectPath() const; + +signals: + void ValueChanged(const QVariantList &values, const quint64& timestamp); + +public slots: + void Subscribe(const QDBusMessage& msg, QVariantList& values, quint64& timestamp); + void Unsubscribe(const QDBusMessage& msg); + void Get(QVariantList& values, quint64& timestamp); + +private: + FakeProperty* _property; +}; + +#endif // FAKEPROPERTYADAPTOR_H -- cgit v1.2.3