1 | // Copyright (C) 2016 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 <QtDataVisualization/qdatavisualizationglobal.h> |
8 | #include <QtCore/QObject> |
9 | #include <QtCore/QScopedPointer> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | class QAbstractDataProxyPrivate; |
14 | |
15 | class Q_DATAVISUALIZATION_EXPORT QAbstractDataProxy : public QObject |
16 | { |
17 | Q_OBJECT |
18 | Q_ENUMS(DataType) |
19 | Q_PROPERTY(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 | |
29 | protected: |
30 | explicit QAbstractDataProxy(QAbstractDataProxyPrivate *d, QObject *parent = nullptr); |
31 | |
32 | public: |
33 | virtual ~QAbstractDataProxy(); |
34 | |
35 | DataType type() const; |
36 | |
37 | protected: |
38 | QScopedPointer<QAbstractDataProxyPrivate> d_ptr; |
39 | |
40 | private: |
41 | Q_DISABLE_COPY(QAbstractDataProxy) |
42 | |
43 | friend class QAbstract3DSeriesPrivate; |
44 | }; |
45 | |
46 | QT_END_NAMESPACE |
47 | |
48 | #endif |
49 |