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
11QT_BEGIN_NAMESPACE
12
13class QAbstractDataProxyPrivate;
14
15class 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
21public:
22 enum DataType {
23 DataTypeNone = 0,
24 DataTypeBar = 1,
25 DataTypeScatter = 2,
26 DataTypeSurface = 4
27 };
28 Q_ENUM(DataType)
29
30protected:
31 explicit QAbstractDataProxy(QAbstractDataProxyPrivate *d, QObject *parent = nullptr);
32
33public:
34 virtual ~QAbstractDataProxy();
35
36 QAbstractDataProxy::DataType type() const;
37
38protected:
39 QScopedPointer<QAbstractDataProxyPrivate> d_ptr;
40
41private:
42 Q_DISABLE_COPY(QAbstractDataProxy)
43
44 friend class QAbstract3DSeriesPrivate;
45};
46
47QT_END_NAMESPACE
48
49#endif
50

source code of qtgraphs/src/graphs/data/qabstractdataproxy.h