subsurface/qt-mobile/qmlmanager.h
Grace Karanja 59be048549 Add QMLManager class
Add a QMLManager class. This class will be used as a link between
the C++ and QML aspects of the mobile application.

Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-06-20 14:19:42 -07:00

31 lines
440 B
C++

#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