| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/debugger/qqmldebugservice_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | static_assert(bool(1 == 1), "Required feature " "qml_debug" " for file " __FILE__ " not available."); | - |
| 3 | - | |
| 4 | - | |
| 5 | - | |
| 6 | class QJSEngine; | - |
| 7 | - | |
| 8 | class QQmlDebugServicePrivate; | - |
| 9 | class __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: reinterpret_cast<QQmlDebugServicePrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQmlDebugServicePrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 998 times by 7 tests: } inline const QQmlDebugServicePrivate* d_func() const { returnreturn reinterpret_cast<QQmlDebugServicePrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 1726 times by 7 tests: reinterpret_cast<const QQmlDebugServicePrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQmlDebugServicePrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 1726 times by 7 tests: } friend class QQmlDebugServicePrivate;return reinterpret_cast<const QQmlDebugServicePrivate *>(qGetPtrHelper(d_ptr));Executed by:
| 998-1726 |
| 21 | - | |
| 22 | public: | - |
| 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 blockExecuted by:
| 92 |
| 37 | virtual void engineAboutToBeRemoved(QJSEngine *engine) { detachedFromEngine(engine); } executed 118 times by 6 tests: end of blockExecuted by:
| 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: objectsForIds().value(id);return objectsForIds().value(id);Executed by:
executed 64 times by 4 tests: }return objectsForIds().value(id);Executed by:
| 64 |
| 45 | - | |
| 46 | protected: | - |
| 47 | explicit QQmlDebugService(const QString &, float version, QObject *parent = nullptr); | - |
| 48 | - | |
| 49 | public : | - |
| 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 code | Preprocessed file |