File indexing completed on 2024-12-15 03:44:59
0001 /* 0002 SPDX-FileCopyrightText: 2017 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: MIT 0005 */ 0006 0007 #ifndef KUSERFEEDBACK_CONSOLE_NUMERICAGGREGATOR_H 0008 #define KUSERFEEDBACK_CONSOLE_NUMERICAGGREGATOR_H 0009 0010 #include "aggregator.h" 0011 0012 #include <memory> 0013 0014 namespace KUserFeedback { 0015 namespace Console { 0016 0017 class NumericAggregationModel; 0018 0019 class NumericAggregator : public Aggregator 0020 { 0021 public: 0022 NumericAggregator(); 0023 ~NumericAggregator() override; 0024 0025 ChartModes chartModes() const override; 0026 QAbstractItemModel* timeAggregationModel() override; 0027 QChart* timelineChart() override; 0028 0029 private: 0030 void updateTimelineChart(); 0031 0032 std::unique_ptr<NumericAggregationModel> m_model; 0033 std::unique_ptr<QChart> m_timelineChart; 0034 }; 0035 0036 }} 0037 0038 #endif // KUSERFEEDBACK_CONSOLE_NUMERICAGGREGATOR_H