diff options
Diffstat (limited to 'qt-mobile/qmlmanager.h')
-rw-r--r-- | qt-mobile/qmlmanager.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.h b/qt-mobile/qmlmanager.h new file mode 100644 index 000000000..e74db0b9a --- /dev/null +++ b/qt-mobile/qmlmanager.h @@ -0,0 +1,31 @@ +#ifndef QMLMANAGER_H +#define QMLMANAGER_H + +#include <QObject> +#include <QString> + +class QMLManager : public QObject +{ + Q_OBJECT + Q_PROPERTY(QString filename READ filename WRITE setFilename NOTIFY filenameChanged) +public: + QMLManager(); + ~QMLManager(); + + QString filename(); + + void getFile(); + + +public slots: + void setFilename(const QString &f); + +private: + QString m_fileName; + void loadFile(); + +signals: + void filenameChanged(); +}; + +#endif |