1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/adaptormodel.h Thu Oct 01 11:48:58 2009 +0000
1.3 @@ -0,0 +1,35 @@
1.4 +#ifndef ADAPTORModel_H
1.5 +#define ADAPTORModel_H
1.6 +
1.7 +#include <QtCore/QObject>
1.8 +#include <QtDBus/QtDBus>
1.9 +
1.10 +class VymModel;
1.11 +class QString;
1.12 +
1.13 +class AdaptorModel: public QDBusAbstractAdaptor
1.14 +{
1.15 + Q_OBJECT
1.16 + Q_CLASSINFO("D-Bus Interface", "org.insilmaril.Adaptor")
1.17 + Q_PROPERTY(QString caption READ caption WRITE setCaption)
1.18 +private:
1.19 + VymModel *model;
1.20 +
1.21 +public:
1.22 + AdaptorModel(QObject *obj);
1.23 + virtual ~AdaptorModel();
1.24 + void setModel (VymModel *vm);
1.25 +
1.26 +public: // PROPERTIES
1.27 + QString m_caption;
1.28 + QString caption();
1.29 + void setCaption(const QString &newCaption);
1.30 +public slots: // METHODS
1.31 + QDBusVariant query(const QString &query);
1.32 + QDBusVariant getHeading();
1.33 +
1.34 +Q_SIGNALS: // SIGNALS
1.35 + void crashed();
1.36 +};
1.37 +
1.38 +#endif