From d24f813f3f2a05c112e803e4256b53535895fc98 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Wed, 14 Jul 2021 11:49:10 +1200 Subject: Initial mirror commit --- src/statistics/ScheduledPage.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/statistics/ScheduledPage.h (limited to 'src/statistics/ScheduledPage.h') diff --git a/src/statistics/ScheduledPage.h b/src/statistics/ScheduledPage.h new file mode 100644 index 0000000..f5a4eec --- /dev/null +++ b/src/statistics/ScheduledPage.h @@ -0,0 +1,22 @@ +#ifndef SCHEDULED_PAGE_H +#define SCHEDULED_PAGE_H + +#include "TimeChartPage.h" + +class ScheduledPage: public TimeChartPage +{ + Q_OBJECT +public: + ScheduledPage(const StatisticsParams* statParams); + QString getTitle() const { return tr("Scheduled cards"); } + +protected: + QList getDates(const CardPack* pack) const; + int getDataDirection() const { return 1; } + +private: + static void adjustScheduledRecords(QList& scheduled); + static bool laterThisDay(QDateTime& dateTime); +}; + +#endif -- cgit