diff -r 9db215a4ad53 -r 5987f9f15bac adaptormodel.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/adaptormodel.h Mon Aug 03 10:42:12 2009 +0000 @@ -0,0 +1,35 @@ +#ifndef ADAPTORModel_H +#define ADAPTORModel_H + +#include +#include + +class VymModel; +class QString; + +class AdaptorModel: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.insilmaril.Adaptor") + Q_PROPERTY(QString caption READ caption WRITE setCaption) +private: + VymModel *model; + +public: + AdaptorModel(QObject *obj); + virtual ~AdaptorModel(); + void setModel (VymModel *vm); + +public: // PROPERTIES + QString m_caption; + QString caption(); + void setCaption(const QString &newCaption); +public slots: // METHODS + QDBusVariant query(const QString &query); + QDBusVariant getHeading(); + +Q_SIGNALS: // SIGNALS + void crashed(); +}; + +#endif