| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | class QQmlDelayedCallQueue : public QObject | - |
| 5 | { | - |
| 6 | public: | - |
| 7 | #pragma GCC diagnostic push | - |
| 8 | | - |
| 9 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 10 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
| 11 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 12 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 13 | #pragma GCC diagnostic pop | - |
| 14 | struct QPrivateSignal {}; | - |
| 15 | public: | - |
| 16 | QQmlDelayedCallQueue(); | - |
| 17 | ~QQmlDelayedCallQueue() override; | - |
| 18 | | - |
| 19 | void init(QV4::ExecutionEngine *); | - |
| 20 | | - |
| 21 | QV4::ReturnedValue addUniquelyAndExecuteLater(const QV4::FunctionObject *, const QV4::Value *thisObject, const QV4::Value *argv, int argc); | - |
| 22 | | - |
| 23 | public : | - |
| 24 | void ticked(); | - |
| 25 | | - |
| 26 | private: | - |
| 27 | struct DelayedFunctionCall | - |
| 28 | { | - |
| 29 | DelayedFunctionCall() {} | - |
| 30 | DelayedFunctionCall(QV4::PersistentValue function) | - |
| 31 | : m_function(function), m_guarded(false) { }executed 104 times by 2 tests: end of block | 104 |
| 32 | | - |
| 33 | void execute(QV4::ExecutionEngine *engine) const; | - |
| 34 | | - |
| 35 | QV4::PersistentValue m_function; | - |
| 36 | QV4::PersistentValue m_args; | - |
| 37 | QQmlGuard<QObject> m_objectGuard; | - |
| 38 | bool m_guarded; | - |
| 39 | }; | - |
| 40 | | - |
| 41 | void storeAnyArguments(DelayedFunctionCall& dfc, const QV4::Value *argv, int argc, int offset, QV4::ExecutionEngine *engine); | - |
| 42 | void executeAllExpired_Later(); | - |
| 43 | | - |
| 44 | QV4::ExecutionEngine *m_engine; | - |
| 45 | QVector<DelayedFunctionCall> m_delayedFunctionCalls; | - |
| 46 | QMetaMethod m_tickedMethod; | - |
| 47 | bool m_callbackOutstanding; | - |
| 48 | }; | - |
| 49 | | - |
| 50 | | - |
| | |