1 | // Copyright (C) 2023 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef QABSTRACTDATAPROXY_H |
5 | #define QABSTRACTDATAPROXY_H |
6 | |
7 | #include <QtGraphs/qgraphsglobal.h> |
8 | #include <QtCore/QObject> |
9 | #include <QtCore/QScopedPointer> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | class QAbstractDataProxyPrivate; |
14 | |
15 | class Q_GRAPHS_EXPORT QAbstractDataProxy : public QObject |
16 | { |
17 | Q_OBJECT |
18 | Q_DECLARE_PRIVATE(QAbstractDataProxy) |
19 | Q_PROPERTY(QAbstractDataProxy::DataType type READ type CONSTANT) |
20 | |
21 | public: |
22 | enum DataType { |
23 | DataTypeNone = 0, |
24 | DataTypeBar = 1, |
25 | DataTypeScatter = 2, |
26 | DataTypeSurface = 4 |
27 | }; |
28 | Q_ENUM(DataType) |
29 | |
30 | protected: |
31 | explicit QAbstractDataProxy(QAbstractDataProxyPrivate *d, QObject *parent = nullptr); |
32 | |
33 | public: |
34 | virtual ~QAbstractDataProxy(); |
35 | |
36 | QAbstractDataProxy::DataType type() const; |
37 | |
38 | protected: |
39 | QScopedPointer<QAbstractDataProxyPrivate> d_ptr; |
40 | |
41 | private: |
42 | Q_DISABLE_COPY(QAbstractDataProxy) |
43 | |
44 | friend class QAbstract3DSeriesPrivate; |
45 | }; |
46 | |
47 | QT_END_NAMESPACE |
48 | |
49 | #endif |
50 |