OpenCoverage

qqmldebugservice_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/debugger/qqmldebugservice_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2static_assert(bool(1 == 1), "Required feature " "qml_debug" " for file " __FILE__ " not available.");-
3-
4-
5-
6class QJSEngine;-
7-
8class QQmlDebugServicePrivate;-
9class __attribute__((visibility("default"))) QQmlDebugService : public QObject-
10{-
11 public:-
12#pragma GCC diagnostic push-
13 -
14#pragma GCC diagnostic ignored "-Wsuggest-override"-
15 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:-
16#pragma GCC diagnostic ignored "-Wattributes"-
17 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
18#pragma GCC diagnostic pop-
19 struct QPrivateSignal {};-
20 inline QQmlDebugServicePrivate* d_func() { return
executed 998 times by 7 tests: return reinterpret_cast<QQmlDebugServicePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
reinterpret_cast<QQmlDebugServicePrivate *>(qGetPtrHelper(d_ptr));
executed 998 times by 7 tests: return reinterpret_cast<QQmlDebugServicePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
} inline const QQmlDebugServicePrivate* d_func() const { return
executed 1726 times by 7 tests: return reinterpret_cast<const QQmlDebugServicePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
reinterpret_cast<const QQmlDebugServicePrivate *>(qGetPtrHelper(d_ptr));
executed 1726 times by 7 tests: return reinterpret_cast<const QQmlDebugServicePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
} friend class QQmlDebugServicePrivate;
998-1726
21-
22public:-
23 ~QQmlDebugService() override;-
24-
25 const QString &name() const;-
26 float version() const;-
27-
28 enum State { NotConnected, Unavailable, Enabled };-
29 State state() const;-
30 void setState(State newState);-
31-
32 virtual void stateAboutToBeChanged(State) {}-
33 virtual void stateChanged(State) {}-
34 virtual void messageReceived(const QByteArray &) {}-
35-
36 virtual void engineAboutToBeAdded(QJSEngine *engine) { attachedToEngine(engine); }
executed 92 times by 6 tests: end of block
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
92
37 virtual void engineAboutToBeRemoved(QJSEngine *engine) { detachedFromEngine(engine); }
executed 118 times by 6 tests: end of block
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
118
38-
39 virtual void engineAdded(QJSEngine *) {}-
40 virtual void engineRemoved(QJSEngine *) {}-
41-
42 static const QHash<int, QObject *> &objectsForIds();-
43 static int idForObject(QObject *);-
44 static QObject *objectForId(int id) { return
executed 64 times by 4 tests: return objectsForIds().value(id);
Executed by:
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlprofilerservice
  • tst_qv4debugger
objectsForIds().value(id);
executed 64 times by 4 tests: return objectsForIds().value(id);
Executed by:
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlprofilerservice
  • tst_qv4debugger
}
64
45-
46protected:-
47 explicit QQmlDebugService(const QString &, float version, QObject *parent = nullptr);-
48-
49public :-
50 void attachedToEngine(QJSEngine *);-
51 void detachedFromEngine(QJSEngine *);-
52-
53 void messageToClient(const QString &name, const QByteArray &message);-
54 void messagesToClient(const QString &name, const QList<QByteArray> &messages);-
55};-
56-
57-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0