subsurface/qt-mobile/qmlmanager.h

32 lines
440 B
C
Raw Normal View History

#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