adaptormodel.h
author insilmaril
Thu, 03 Sep 2009 08:52:00 +0000
changeset 790 133e2ed6b9c5
parent 785 5987f9f15bac
child 804 14f2b1b15242
permissions -rw-r--r--
More work on xLinks
     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_PROPERTY(QString caption READ caption WRITE setCaption)
    15 private:
    16 	VymModel *model;
    17 
    18 public:
    19     AdaptorModel(QObject *obj);
    20     virtual ~AdaptorModel();
    21 	void setModel (VymModel *vm);
    22 
    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();
    30 
    31 Q_SIGNALS: // SIGNALS
    32     void crashed();
    33 };
    34 
    35 #endif