Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtqmlworkerscriptglobal_p.h
Go to the documentation of this file.
1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:insignificant
4
5#ifndef QTQMLWORKERSCRIPTGLOBAL_P_H
6#define QTQMLWORKERSCRIPTGLOBAL_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtQml/private/qtqmlglobal_p.h>
20#include <QtQmlWorkerScript/qtqmlworkerscriptglobal.h>
21#include <QtQmlWorkerScript/qtqmlworkerscriptexports.h>
22
23#define Q_QMLWORKERSCRIPT_AUTOTEST_EXPORT Q_AUTOTEST_EXPORT
24
25#endif // QTQMLWORKERSCRIPTGLOBAL_P_H
bool event(QEvent *) override
This virtual function receives events to an object and should return true if the event e was recogniz...
static QV4::ReturnedValue method_sendMessage(const QV4::FunctionObject *, const QV4::Value *thisObject, const QV4::Value *argv, int argc)
void reportScriptException(WorkerScript *, const QQmlError &error)
QV4::ExecutionEngine * workerEngine(int id)
QHash< int, QBiPointer< QV4::ExecutionEngine, QQuickWorkerScript > > workers
void executeUrl(int, const QUrl &)
void sendMessage(int, const QByteArray &)
int registerWorkerScript(QQuickWorkerScript *)
QByteArray data() const
WorkerDataEvent(int workerId, const QByteArray &data)
WorkerErrorEvent(const QQmlError &error)
QQmlError error() const
WorkerIdEvent(int workerId, WorkerEventType type)
WorkerLoadEvent(int workerId, const QUrl &url)
WorkerRemoveEvent(int workerId)
V4_DEFINE_EXTENSION(WorkerScript, workerScriptExtension)
~WorkerScript()=default
void ready(QQmlNotifyingBlob *blob) final
WorkerScript(QV4::ExecutionEngine *engine)
QQuickWorkerScriptEnginePrivate * p
QQuickWorkerScript * owner
QV4::ExecutionEngine * engine