X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=src%2Fharbour-pedalo.cpp;fp=src%2Fharbour-pedalo.cpp;h=f19a8fcc0dd56df91b931f93cf487a1af889fa72;hp=35fc77f6fda0c0c5199853f3b1b4f603fcada5b2;hb=e6c4099f5bb1565a770e55d1dd671d846dcbd68b;hpb=dc14479d561196e19417c4ecf78e847ec4b43b7c diff --git a/src/harbour-pedalo.cpp b/src/harbour-pedalo.cpp index 35fc77f..f19a8fc 100644 --- a/src/harbour-pedalo.cpp +++ b/src/harbour-pedalo.cpp @@ -13,7 +13,9 @@ #include "imageprovider.h" #include "graph.h" #include "statsweekdayave.h" +#include "statshourjourneys.h" #include "statsweekdaycongestion.h" +#include "statshourcongestion.h" #include "harbour-pedalo.h" @@ -51,9 +53,15 @@ int main(int argc, char *argv[]) StatsWeekdayAve statsweekdayave(&journeys); statsmodel.addStats(statsweekdayave); + StatsHourJourneys statshourjourneys(&journeys); + statsmodel.addStats(statshourjourneys); + StatsWeekdayCongestion statsweekdaycongestion(&journeys); statsmodel.addStats(statsweekdaycongestion); + StatsHourCongestion statshourcongestion(&journeys); + statsmodel.addStats(statshourcongestion); + QFile file; file.setFileName(Settings::getConfigDir() + "/journeys.csv"); journeys.importFromFile(file);