summaryrefslogtreecommitdiff
path: root/src/statistics/ScheduledPage.h
blob: f5a4eec6f6b467ef7aea329ae3f33cadb28cf069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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