]> git.sven.stormbind.net Git - sven/vym.git/blob - adaptormodel.h
Import Upstream version 2.6.11
[sven/vym.git] / adaptormodel.h
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.vym.model.adaptor")
14
15 private:
16         VymModel *model;
17
18 public:
19     AdaptorModel(QObject *obj);
20     void setModel (VymModel *vm);
21
22 public: // PROPERTIES
23     QString m_caption;
24     QString caption();
25     void setCaption(const QString &newCaption);
26
27 public slots: // METHODS
28     QDBusVariant getCurrentModelID();
29     QDBusVariant branchCount();
30     QDBusVariant execute (const QString &s);
31     QDBusVariant errorLevel();
32     QDBusVariant errorDescription();
33     QDBusVariant listCommands();
34
35 Q_SIGNALS: // SIGNALS
36     void crashed();
37 };
38
39 #endif