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
26QT_BEGIN_NAMESPACE
27
28Q_DECLARE_LOGGING_CATEGORY(lcPtr)
29Q_DECLARE_LOGGING_CATEGORY(lcHoverTrace)
30Q_DECLARE_LOGGING_CATEGORY(lcTouchTarget)
31
32class QQuickItem;
33class QQuickDeliveryAgentPrivate;
34
35class Q_QUICK_EXPORT QQuickDeliveryAgent : public QObject
36{
37 Q_OBJECT
38 Q_DECLARE_PRIVATE(QQuickDeliveryAgent)
39
40public:
41 struct Q_QUICK_EXPORT Transform
42 {
43 virtual ~Transform();
44 virtual QPointF map(const QPointF &point) = 0;
45 };
46
47 explicit QQuickDeliveryAgent(QQuickItem *rootItem);
48 virtual ~QQuickDeliveryAgent();
49
50 QQuickItem *rootItem() const;
51
52 Transform *sceneTransform() const;
53 void setSceneTransform(Transform *transform);
54 bool event(QEvent *ev) override;
55
56Q_SIGNALS:
57
58private:
59 Q_DISABLE_COPY(QQuickDeliveryAgent)
60};
61
62#ifndef QT_NO_DEBUG_STREAM
63QDebug Q_QUICK_EXPORT operator<<(QDebug debug, const QQuickDeliveryAgent *da);
64#endif
65
66QT_END_NAMESPACE
67
68#endif // QQUICKDELIVERYAGENT_P_H
69

source code of qtdeclarative/src/quick/util/qquickdeliveryagent_p.h