| 1 | // Copyright (C) 2021 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QQUICKDELIVERYAGENT_P_H |
| 5 | #define QQUICKDELIVERYAGENT_P_H |
| 6 | |
| 7 | // |
| 8 | // W A R N I N G |
| 9 | // ------------- |
| 10 | // |
| 11 | // This file is not part of the Qt API. It exists purely as an |
| 12 | // implementation detail. This header file may change from version to |
| 13 | // version without notice, or even be removed. |
| 14 | // |
| 15 | // We mean it. |
| 16 | // |
| 17 | |
| 18 | #include <QtQuick/private/qtquickglobal_p.h> |
| 19 | |
| 20 | #include <QtQml/qqml.h> |
| 21 | #include <QtQml/private/qqmlglobal_p.h> |
| 22 | |
| 23 | #include <QtCore/qobject.h> |
| 24 | #include <QtGui/qevent.h> |
| 25 | |
| 26 | QT_BEGIN_NAMESPACE |
| 27 | |
| 28 | class QQuickItem; |
| 29 | class QQuickDeliveryAgentPrivate; |
| 30 | |
| 31 | class Q_QUICK_EXPORT QQuickDeliveryAgent : public QObject |
| 32 | { |
| 33 | Q_OBJECT |
| 34 | Q_DECLARE_PRIVATE(QQuickDeliveryAgent) |
| 35 | |
| 36 | public: |
| 37 | struct Q_QUICK_EXPORT Transform |
| 38 | { |
| 39 | virtual ~Transform(); |
| 40 | virtual QPointF map(const QPointF &point) = 0; |
| 41 | }; |
| 42 | |
| 43 | explicit QQuickDeliveryAgent(QQuickItem *rootItem); |
| 44 | virtual ~QQuickDeliveryAgent(); |
| 45 | |
| 46 | QQuickItem *rootItem() const; |
| 47 | |
| 48 | Transform *sceneTransform() const; |
| 49 | void setSceneTransform(Transform *transform); |
| 50 | bool event(QEvent *ev) override; |
| 51 | |
| 52 | Q_SIGNALS: |
| 53 | |
| 54 | private: |
| 55 | Q_DISABLE_COPY(QQuickDeliveryAgent) |
| 56 | }; |
| 57 | |
| 58 | #ifndef QT_NO_DEBUG_STREAM |
| 59 | QDebug Q_QUICK_EXPORT operator<<(QDebug debug, const QQuickDeliveryAgent *da); |
| 60 | #endif |
| 61 | |
| 62 | QT_END_NAMESPACE |
| 63 | |
| 64 | #endif // QQUICKDELIVERYAGENT_P_H |
| 65 | |