]> git.sven.stormbind.net Git - sven/vym.git/blobdiff - src/dbus/adaptormodel.h
New upstream version 2.9.22
[sven/vym.git] / src / dbus / adaptormodel.h
diff --git a/src/dbus/adaptormodel.h b/src/dbus/adaptormodel.h
new file mode 100644 (file)
index 0000000..afb5e79
--- /dev/null
@@ -0,0 +1,37 @@
+#ifndef ADAPTORModel_H
+#define ADAPTORModel_H
+
+#include <QtCore/QObject>
+#include <QtDBus/QtDBus>
+
+class VymModel;
+class QString;
+
+class AdaptorModel : public QDBusAbstractAdaptor {
+    Q_OBJECT
+    Q_CLASSINFO("D-Bus Interface", "org.insilmaril.vym.model.adaptor")
+
+  private:
+    VymModel *model;
+
+  public:
+    AdaptorModel(QObject *obj);
+    void setModel(VymModel *vm);
+
+  public: // PROPERTIES
+    QString m_caption;
+    QString caption();
+    void setCaption(const QString &newCaption);
+
+  public slots: // METHODS
+    QDBusVariant branchCount();
+    QDBusVariant execute(const QString &s);
+    QDBusVariant errorLevel();
+    QDBusVariant errorDescription();
+    QDBusVariant listCommands();
+
+  Q_SIGNALS: // SIGNALS
+    void crashed();
+};
+
+#endif