mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
59be048549
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>
31 lines
440 B
C++
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
|