| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qmldebug/qqmldebugconnection_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | class QQmlDebugClient; | - |
| 4 | class QQmlDebugConnectionPrivate; | - |
| 5 | class QQmlDebugConnection : public QObject | - |
| 6 | { | - |
| 7 | public: | - |
| 8 | #pragma GCC diagnostic push | - |
| 9 | - | |
| 10 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 11 | 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); } static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
| 12 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 13 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 14 | #pragma GCC diagnostic pop | - |
| 15 | struct QPrivateSignal {}; | - |
| 16 | QQmlDebugConnection(const QQmlDebugConnection &) = delete; QQmlDebugConnection &operator=(const QQmlDebugConnection &) = delete; | - |
| 17 | inline QQmlDebugConnectionPrivate* d_func() { return executed 18407 times by 11 tests: reinterpret_cast<QQmlDebugConnectionPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQmlDebugConnectionPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 18407 times by 11 tests: } inline const QQmlDebugConnectionPrivate* d_func() const { returnreturn reinterpret_cast<QQmlDebugConnectionPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 54567 times by 11 tests: reinterpret_cast<const QQmlDebugConnectionPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQmlDebugConnectionPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 54567 times by 11 tests: } friend class QQmlDebugConnectionPrivate;return reinterpret_cast<const QQmlDebugConnectionPrivate *>(qGetPtrHelper(d_ptr));Executed by:
| 18407-54567 |
| 18 | public: | - |
| 19 | QQmlDebugConnection(QObject *parent = nullptr); | - |
| 20 | ~QQmlDebugConnection(); | - |
| 21 | - | |
| 22 | void connectToHost(const QString &hostName, quint16 port); | - |
| 23 | void startLocalServer(const QString &fileName); | - |
| 24 | - | |
| 25 | int currentDataStreamVersion() const; | - |
| 26 | void setMaximumDataStreamVersion(int maximumVersion); | - |
| 27 | - | |
| 28 | bool isConnected() const; | - |
| 29 | bool isConnecting() const; | - |
| 30 | - | |
| 31 | void close(); | - |
| 32 | bool waitForConnected(int msecs = 30000); | - |
| 33 | - | |
| 34 | QQmlDebugClient *client(const QString &name) const; | - |
| 35 | bool addClient(const QString &name, QQmlDebugClient *client); | - |
| 36 | bool removeClient(const QString &name); | - |
| 37 | - | |
| 38 | float serviceVersion(const QString &serviceName) const; | - |
| 39 | bool sendMessage(const QString &name, const QByteArray &message); | - |
| 40 | - | |
| 41 | public : | - |
| 42 | void connected(); | - |
| 43 | void disconnected(); | - |
| 44 | void socketError(QAbstractSocket::SocketError socketError); | - |
| 45 | void socketStateChanged(QAbstractSocket::SocketState socketState); | - |
| 46 | - | |
| 47 | private: | - |
| 48 | void newConnection(); | - |
| 49 | void socketConnected(); | - |
| 50 | void socketDisconnected(); | - |
| 51 | void protocolReadyRead(); | - |
| 52 | void handshakeTimeout(); | - |
| 53 | }; | - |
| 54 | - | |
| 55 | - | |
| Switch to Source code | Preprocessed file |