aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qmlmanager.h
blob: e74db0b9a4c408dca9691870deb90434ce5499b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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