adaptormodel.h
author insilmaril
Fri, 13 Nov 2009 08:32:03 +0000
changeset 804 14f2b1b15242
parent 785 5987f9f15bac
child 807 f9f7922989d8
permissions -rw-r--r--
Several fixes, see tex/vym.changelog for details
     1 #ifndef ADAPTORModel_H
     2 #define ADAPTORModel_H
     3 
     4 #include <QtCore/QObject>
     5 #include <QtDBus/QtDBus>
     6 
     7 class VymModel;
     8 class QString;
     9 
    10 class AdaptorModel: public QDBusAbstractAdaptor
    11 {
    12     Q_OBJECT
    13     Q_CLASSINFO("D-Bus Interface", "org.insilmaril.Adaptor")
    14 //    Q_CLASSINFO("D-Bus Interface", "org.insilmaril.Adaptor.test")
    15 //	Q_PROPERTY(QString caption READ caption WRITE setCaption)
    16 //	Q_PROPERTY(QString heading READ getHeading WRITE setHeading)
    17 private:
    18 	VymModel *model;
    19 
    20 public:
    21     AdaptorModel(QObject *obj);
    22     virtual ~AdaptorModel();
    23 	void setModel (VymModel *vm);
    24 
    25 public: // PROPERTIES
    26 	QString m_caption;
    27 	QString caption();
    28 	void setCaption(const QString &newCaption);
    29 public slots: // METHODS
    30    QDBusVariant query(const QString &query);
    31    QDBusVariant getHeading();
    32    void setHeading (const QString &s);
    33 
    34 Q_SIGNALS: // SIGNALS
    35     void crashed();
    36 };
    37 
    38 #endif