Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqmldelayedcallqueue_p.h
Go to the documentation of this file.
1
// Copyright (C) 2016 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
4
#ifndef QQMLDELAYEDCALLQUEUE_P_H
5
#define QQMLDELAYEDCALLQUEUE_P_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#include <QtCore/qglobal.h>
19
#include <QtCore/qobject.h>
20
#include <QtCore/qmetaobject.h>
21
#include <QtCore/qmetatype.h>
22
#include <private/qqmlguard_p.h>
23
#include <private/qv4context_p.h>
24
25
QT_BEGIN_NAMESPACE
26
27
class
QQmlDelayedCallQueue
:
public
QObject
28
{
29
Q_OBJECT
30
public
:
31
QQmlDelayedCallQueue
();
32
~QQmlDelayedCallQueue
()
override
;
33
34
void
init
(
QV4::ExecutionEngine
*);
35
36
static
QV4::ReturnedValue
addUniquelyAndExecuteLater
(
QV4::ExecutionEngine
*
engine
,
37
QQmlV4FunctionPtr
args
);
38
39
public
Q_SLOTS
:
40
void
ticked
();
41
42
private
:
43
struct
DelayedFunctionCall
44
{
45
DelayedFunctionCall() {}
46
DelayedFunctionCall(
QV4::PersistentValue
function)
47
: m_function(function), m_guarded(
false
) { }
48
49
void
execute(
QV4::ExecutionEngine
*
engine
)
const
;
50
51
QV4::PersistentValue
m_function;
52
QV4::PersistentValue
m_args;
53
QQmlGuard<QObject> m_objectGuard;
54
bool
m_guarded;
55
};
56
57
void
storeAnyArguments(DelayedFunctionCall& dfc,
QQmlV4FunctionPtr
args
,
int
offset
,
QV4::ExecutionEngine
*
engine
);
58
void
executeAllExpired_Later();
59
60
QV4::ExecutionEngine
*m_engine;
61
QVector<DelayedFunctionCall> m_delayedFunctionCalls;
62
QMetaMethod
m_tickedMethod;
63
bool
m_callbackOutstanding;
64
};
65
66
QT_END_NAMESPACE
67
68
#endif
// QQMLDELAYEDCALLQUEUE_P_H
QMetaMethod
\inmodule QtCore
Definition
qmetaobject.h:19
QObject
\inmodule QtCore
Definition
qobject.h:103
QQmlDelayedCallQueue
Definition
qqmldelayedcallqueue_p.h:28
QQmlDelayedCallQueue::ticked
void ticked()
Definition
qqmldelayedcallqueue.cpp:176
QQmlDelayedCallQueue::addUniquelyAndExecuteLater
static QV4::ReturnedValue addUniquelyAndExecuteLater(QV4::ExecutionEngine *engine, QQmlV4FunctionPtr args)
Definition
qqmldelayedcallqueue.cpp:73
QQmlDelayedCallQueue::~QQmlDelayedCallQueue
~QQmlDelayedCallQueue() override
Definition
qqmldelayedcallqueue.cpp:60
QQmlDelayedCallQueue::init
void init(QV4::ExecutionEngine *)
Definition
qqmldelayedcallqueue.cpp:64
QQmlDelayedCallQueue::QQmlDelayedCallQueue
QQmlDelayedCallQueue()
Definition
qqmldelayedcallqueue.cpp:55
QQmlV4Function
Definition
qv4engine_p.h:85
QV4::PersistentValue
Definition
qv4persistent_p.h:67
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
QV4::ReturnedValue
quint64 ReturnedValue
Definition
qv4staticvalue_p.h:38
offset
GLenum GLuint GLintptr offset
Definition
qopengles2ext.h:660
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
Q_SLOTS
#define Q_SLOTS
Definition
qtmetamacros.h:44
args
QJSValueList args
Definition
src_script_qjsengine.cpp:12
engine
QJSEngine engine
[0]
Definition
src_script_qjsvalue.cpp:14
QV4::ExecutionEngine
Definition
qv4engine_p.h:136
qtdeclarative
src
qml
qml
qqmldelayedcallqueue_p.h
Generated by
1.10.0