author | insilmaril |
Thu Sep 17 09:41:09 2009 +0000 (2009-09-17) | |
changeset 795 | 6b0a5f4923d3 |
child 804 | 14f2b1b15242 |
permissions | -rw-r--r-- |
1 #ifndef ADAPTORModel_H
2 #define ADAPTORModel_H
4 #include <QtCore/QObject>
5 #include <QtDBus/QtDBus>
7 class VymModel;
8 class QString;
10 class AdaptorModel: public QDBusAbstractAdaptor
11 {
12 Q_OBJECT
13 Q_CLASSINFO("D-Bus Interface", "org.insilmaril.Adaptor")
14 Q_PROPERTY(QString caption READ caption WRITE setCaption)
15 private:
16 VymModel *model;
18 public:
19 AdaptorModel(QObject *obj);
20 virtual ~AdaptorModel();
21 void setModel (VymModel *vm);
23 public: // PROPERTIES
24 QString m_caption;
25 QString caption();
26 void setCaption(const QString &newCaption);
27 public slots: // METHODS
28 QDBusVariant query(const QString &query);
29 QDBusVariant getHeading();
31 Q_SIGNALS: // SIGNALS
32 void crashed();
33 };
35 #endif