diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-11 00:22:17 +0200 |
---|---|---|
committer | Javier <javier@pcjavier.(none)> | 2011-09-11 00:22:17 +0200 |
commit | ff57a31b95c48d75e49641177a8805193ea7ddaf (patch) | |
tree | 6ce607bcc4813bc8fbd15f841754a4a77f013e3d /fakepropertyadaptor.h | |
download | glol-ff57a31b95c48d75e49641177a8805193ea7ddaf.tar.gz glol-ff57a31b95c48d75e49641177a8805193ea7ddaf.zip |
Initial import.
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 |