summaryrefslogtreecommitdiff
path: root/src/statistics/ScheduledPage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/statistics/ScheduledPage.h')
-rw-r--r--src/statistics/ScheduledPage.h22
1 files changed, 22 insertions, 0 deletions
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<QDateTime> getDates(const CardPack* pack) const;
+ int getDataDirection() const { return 1; }
+
+private:
+ static void adjustScheduledRecords(QList<QDateTime>& scheduled);
+ static bool laterThisDay(QDateTime& dateTime);
+};
+
+#endif