1
0
Fork 0
flightgear/src/GUI/FGQmlInstance.hxx
2017-10-05 12:38:27 +01:00

28 lines
519 B
C++

#ifndef FGQMLINSTANCE_HXX
#define FGQMLINSTANCE_HXX
#include <QObject>
#include <QJSValue>
// forward decls
class FGQmlPropertyNode;
class FGQmlInstance : public QObject
{
Q_OBJECT
public:
explicit FGQmlInstance(QObject *parent = nullptr);
Q_INVOKABLE bool command(QString name, QJSValue args);
/**
* retrieve a property by its global path
*/
Q_INVOKABLE FGQmlPropertyNode* property(QString path, bool create = false) const;
signals:
public slots:
};
#endif // FGQMLINSTANCE_HXX