#ifndef STATISTICS_PAGE_H #define STATISTICS_PAGE_H #include class StatisticsParams; class BaseStatPage: public QWidget { Q_OBJECT public: BaseStatPage(const StatisticsParams* statParams); virtual void updateDataSet() = 0; virtual QString getTitle() const = 0; virtual bool usesTimePeriod() const = 0; protected: void init(); virtual QWidget* createChart() = 0; private: void createUi(); QLabel* createTitleLabel(); QWidget* createTotalReviewsLabel(); protected: const StatisticsParams* statParams; QLabel* totalReviewsLabel; }; #endif