| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/plugins/qmltooling/packetprotocol/qpacketprotocol_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | class QIODevice; | - |
| 4 | - | |
| 5 | class QPacketProtocolPrivate; | - |
| 6 | class QPacketProtocol : public QObject | - |
| 7 | { | - |
| 8 | public: | - |
| 9 | #pragma GCC diagnostic push | - |
| 10 | - | |
| 11 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 12 | 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: | - |
| 13 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 14 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 15 | #pragma GCC diagnostic pop | - |
| 16 | struct QPrivateSignal {}; | - |
| 17 | inline QPacketProtocolPrivate* d_func() { return executed 26240 times by 12 tests: reinterpret_cast<QPacketProtocolPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QPacketProtocolPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 26240 times by 12 tests: } inline const QPacketProtocolPrivate* d_func() const { returnreturn reinterpret_cast<QPacketProtocolPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 15350 times by 12 tests: reinterpret_cast<const QPacketProtocolPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QPacketProtocolPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 15350 times by 12 tests: } friend class QPacketProtocolPrivate;return reinterpret_cast<const QPacketProtocolPrivate *>(qGetPtrHelper(d_ptr));Executed by:
| 15350-26240 |
| 18 | public: | - |
| 19 | explicit QPacketProtocol(QIODevice *dev, QObject *parent = nullptr); | - |
| 20 | - | |
| 21 | void send(const QByteArray &data); | - |
| 22 | qint64 packetsAvailable() const; | - |
| 23 | QByteArray read(); | - |
| 24 | bool waitForReadyRead(int msecs = 3000); | - |
| 25 | - | |
| 26 | public : | - |
| 27 | void readyRead(); | - |
| 28 | void error(); | - |
| 29 | - | |
| 30 | private: | - |
| 31 | void aboutToClose(); | - |
| 32 | void bytesWritten(qint64 bytes); | - |
| 33 | void readyToRead(); | - |
| 34 | }; | - |
| 35 | - | |
| 36 | - | |
| Switch to Source code | Preprocessed file |