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_TOTALAGGREGATOR_H 0008 #define KUSERFEEDBACK_CONSOLE_TOTALAGGREGATOR_H 0009 0010 #include "aggregator.h" 0011 0012 #include <QCoreApplication> 0013 0014 #include <memory> 0015 0016 namespace KUserFeedback { 0017 namespace Console { 0018 0019 class TotalAggregator : public Aggregator 0020 { 0021 Q_DECLARE_TR_FUNCTIONS(KUserFeedback::Console::TotalAggregator) 0022 public: 0023 TotalAggregator(); 0024 ~TotalAggregator() override; 0025 0026 ChartModes chartModes() const override; 0027 QString displayName() const override; 0028 QAbstractItemModel* timeAggregationModel() override; 0029 QChart* timelineChart() override; 0030 0031 private: 0032 void updateTimelineChart(); 0033 0034 std::unique_ptr<QChart> m_timelineChart; 0035 }; 0036 0037 }} 0038 0039 #endif // KUSERFEEDBACK_CONSOLE_TOTALAGGREGATOR_H