diff options
Diffstat (limited to 'fakepropertyadaptor.h')
-rw-r--r-- | fakepropertyadaptor.h | 30 |
1 files changed, 30 insertions, 0 deletions
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 <QtDBus/QDBusAbstractAdaptor> +#include <QtDBus/QDBusConnection> + +#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 |