summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativeworkerscript_p.h
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-03-02 12:07:40 +1000
committerBea Lam <bea.lam@nokia.com>2010-03-02 12:07:40 +1000
commit8da93faace82eb2bc86e76c0ad0a0c5c95e3b8bf (patch)
tree1559fc7e2fb0b983979d5e2d9abc53c16cede957 /src/declarative/qml/qdeclarativeworkerscript_p.h
parent5bfe57bbd1e6055e9b2d70d0b4c28052fefce430 (diff)
Add docs and tests for WorkerListModel.
Task-number: QT-2807
Diffstat (limited to 'src/declarative/qml/qdeclarativeworkerscript_p.h')
-rw-r--r--src/declarative/qml/qdeclarativeworkerscript_p.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/declarative/qml/qdeclarativeworkerscript_p.h b/src/declarative/qml/qdeclarativeworkerscript_p.h
index 8ebd2c1d3d..01cc72a0aa 100644
--- a/src/declarative/qml/qdeclarativeworkerscript_p.h
+++ b/src/declarative/qml/qdeclarativeworkerscript_p.h
@@ -61,6 +61,8 @@
#include <QtScript/qscriptvalue.h>
#include <QtCore/qurl.h>
+QT_BEGIN_HEADER
+
QT_BEGIN_NAMESPACE
class QDeclarativeWorkerScript;
@@ -84,7 +86,7 @@ private:
QDeclarativeWorkerScriptEnginePrivate *d;
};
-class QDeclarativeWorkerScript : public QObject, public QDeclarativeParserStatus
+class Q_DECLARATIVE_EXPORT QDeclarativeWorkerScript : public QObject, public QDeclarativeParserStatus
{
Q_OBJECT
Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged)
@@ -115,7 +117,7 @@ private:
};
class QDeclarativeWorkerListModelAgent;
-class QDeclarativeWorkerListModel : public QListModelInterface
+class Q_DECLARATIVE_EXPORT QDeclarativeWorkerListModel : public QListModelInterface
{
Q_OBJECT
Q_PROPERTY(int count READ count NOTIFY countChanged)
@@ -130,6 +132,7 @@ public:
Q_INVOKABLE void insert(int index, const QScriptValue&);
Q_INVOKABLE QScriptValue get(int index) const;
Q_INVOKABLE void set(int index, const QScriptValue &);
+ Q_INVOKABLE void sync();
QDeclarativeWorkerListModelAgent *agent();
@@ -157,4 +160,6 @@ QT_END_NAMESPACE
QML_DECLARE_TYPE(QDeclarativeWorkerScript);
QML_DECLARE_TYPE(QDeclarativeWorkerListModel);
+QT_END_HEADER
+
#endif // QDECLARATIVEWORKERSCRIPT_P_H