diff -r 000000000000 -r 16a8ef1d82b2 adaptormodel.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/adaptormodel.h Fri Oct 02 09:40:57 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