#ifndef QCHARTSERIES_H #define QCHARTSERIES_H #include "qchartglobal.h" #include #include QTCOMMERCIALCHART_BEGIN_NAMESPACE class QTCOMMERCIALCHART_EXPORT QChartSeries : public QObject { Q_OBJECT public: enum QChartSeriesType { SeriesTypeInvalid = -1, SeriesTypeLine, // SeriesTypeArea, SeriesTypeBar, SeriesTypeStackedBar, SeriesTypePercentBar, SeriesTypePie, SeriesTypeScatter // SeriesTypeSpline }; protected: QChartSeries(QObject *parent = 0):QObject(parent){}; public: virtual ~QChartSeries(){}; // Pure virtual virtual QChartSeriesType type() const = 0; virtual bool setData(QList /*data*/) { return false; } virtual bool setData(QList /*data*/) { return false; } virtual bool setData(QList /*x*/, QList /*y*/){ return false; } // Prototype for data model. TODO: remove the other setData methods and use something like this for now? virtual bool setData(QAbstractItemModel* /*model*/) { return false; } }; QTCOMMERCIALCHART_END_NAMESPACE #endif