| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquickimageprovider.h | 
| Switch to Source code | Preprocessed file | 
| Line | Source | Count | 
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | - | |
| 5 | class QQuickImageProviderPrivate; | - | 
| 6 | class QQuickAsyncImageProviderPrivate; | - | 
| 7 | class QQuickImageProviderOptionsPrivate; | - | 
| 8 | class QSGTexture; | - | 
| 9 | class QQuickWindow; | - | 
| 10 | - | |
| 11 | class __attribute__((visibility("default"))) QQuickTextureFactory : public QObject | - | 
| 12 | { | - | 
| 13 | public: | - | 
| 14 | #pragma GCC diagnostic push | - | 
| 15 | - | |
| 16 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - | 
| 17 | 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: | - | 
| 18 | #pragma GCC diagnostic ignored "-Wattributes" | - | 
| 19 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - | 
| 20 | #pragma GCC diagnostic pop | - | 
| 21 | struct QPrivateSignal {}; | - | 
| 22 | public: | - | 
| 23 | QQuickTextureFactory(); | - | 
| 24 | ~QQuickTextureFactory() override; | - | 
| 25 | - | |
| 26 | virtual QSGTexture *createTexture(QQuickWindow *window) const = 0; | - | 
| 27 | virtual QSize textureSize() const = 0; | - | 
| 28 | virtual int textureByteCount() const = 0; | - | 
| 29 | virtual QImage image() const; | - | 
| 30 | - | |
| 31 | static QQuickTextureFactory *textureFactoryForImage(const QImage &image); | - | 
| 32 | }; | - | 
| 33 | - | |
| 34 | class QQuickImageResponsePrivate; | - | 
| 35 | - | |
| 36 | class __attribute__((visibility("default"))) QQuickImageResponse : public QObject | - | 
| 37 | { | - | 
| 38 | public: | - | 
| 39 | #pragma GCC diagnostic push | - | 
| 40 | - | |
| 41 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - | 
| 42 | 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: | - | 
| 43 | #pragma GCC diagnostic ignored "-Wattributes" | - | 
| 44 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - | 
| 45 | #pragma GCC diagnostic pop | - | 
| 46 | struct QPrivateSignal {}; | - | 
| 47 | public: | - | 
| 48 | QQuickImageResponse(); | - | 
| 49 | ~QQuickImageResponse() override; | - | 
| 50 | - | |
| 51 | virtual QQuickTextureFactory *textureFactory() const = 0; | - | 
| 52 | virtual QString errorString() const; | - | 
| 53 | - | |
| 54 | public : | - | 
| 55 | virtual void cancel(); | - | 
| 56 | - | |
| 57 | public : | - | 
| 58 | void finished(); | - | 
| 59 | - | |
| 60 | private: | - | 
| 61 |     inline QQuickImageResponsePrivate* d_func() { return executed 16 times by 1 test:   reinterpret_cast<QQuickImageResponsePrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickImageResponsePrivate *>(qGetPtrHelper(d_ptr));Executed by: 
 executed 16 times by 1 test:   } inline const QQuickImageResponsePrivate* d_func() const { returnreturn reinterpret_cast<QQuickImageResponsePrivate *>(qGetPtrHelper(d_ptr));Executed by: 
 never executed:   reinterpret_cast<const QQuickImageResponsePrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickImageResponsePrivate *>(qGetPtrHelper(d_ptr));never executed:   } friend class QQuickImageResponsePrivate;return reinterpret_cast<const QQuickImageResponsePrivate *>(qGetPtrHelper(d_ptr)); | 0-16 | 
| 62 | - | |
| 63 | }; | - | 
| 64 | - | |
| 65 | class __attribute__((visibility("default"))) QQuickImageProvider : public QQmlImageProviderBase | - | 
| 66 | { | - | 
| 67 | friend class QQuickImageProviderWithOptions; | - | 
| 68 | public: | - | 
| 69 | QQuickImageProvider(ImageType type, Flags flags = Flags()); | - | 
| 70 | ~QQuickImageProvider() override; | - | 
| 71 | - | |
| 72 | ImageType imageType() const override; | - | 
| 73 | Flags flags() const override; | - | 
| 74 | - | |
| 75 | - | |
| 76 | - | |
| 77 | - | |
| 78 | - | |
| 79 | - | |
| 80 | virtual QImage requestImage(const QString &id, QSize *size, const QSize& requestedSize); | - | 
| 81 | virtual QPixmap requestPixmap(const QString &id, QSize *size, const QSize& requestedSize); | - | 
| 82 | virtual QQuickTextureFactory *requestTexture(const QString &id, QSize *size, const QSize &requestedSize); | - | 
| 83 | - | |
| 84 | - | |
| 85 | private: | - | 
| 86 | QQuickImageProviderPrivate *d; | - | 
| 87 | }; | - | 
| 88 | - | |
| 89 | class __attribute__((visibility("default"))) QQuickAsyncImageProvider : public QQuickImageProvider | - | 
| 90 | { | - | 
| 91 | public: | - | 
| 92 | QQuickAsyncImageProvider(); | - | 
| 93 | ~QQuickAsyncImageProvider() override; | - | 
| 94 | - | |
| 95 | - | |
| 96 | - | |
| 97 | - | |
| 98 | virtual QQuickImageResponse *requestImageResponse(const QString &id, const QSize &requestedSize) = 0; | - | 
| 99 | - | |
| 100 | - | |
| 101 | private: | - | 
| 102 | QQuickAsyncImageProviderPrivate *d; | - | 
| 103 | }; | - | 
| 104 | - | |
| 105 | - | |
| Switch to Source code | Preprocessed file |