1 #include "adaptormodel.h"
2 #include <QtCore/QMetaObject>
3 #include <QtCore/QString>
4 #include <QtCore/QVariant>
8 AdaptorModel::AdaptorModel(QObject *obj)
9 : QDBusAbstractAdaptor(obj)
11 model=static_cast <VymModel*> (obj);
12 setAutoRelaySignals (true);
15 AdaptorModel::~AdaptorModel()
20 void AdaptorModel::setModel(VymModel *vm)
25 QString AdaptorModel::caption()
30 void AdaptorModel::setCaption (const QString &newCaption)
35 QDBusVariant AdaptorModel::query(const QString &query)
39 s=model->getHeading();
41 s="oops, no vymModel?";
43 return QDBusVariant (s);
46 QDBusVariant AdaptorModel::getHeading()
50 s=model->getHeading();
52 s="oops, no vymModel?";
54 return QDBusVariant (s);