Bump version to 0.2.2
[harbour-pedalo.git] / src / harbour-pedalo.cpp
index 35fc77f..90df54e 100644 (file)
 #include "imageprovider.h"
 #include "graph.h"
 #include "statsweekdayave.h"
+#include "statshourjourneys.h"
 #include "statsweekdaycongestion.h"
+#include "statshourcongestion.h"
+#include "statsyearjourneys.h"
+#include "statsyearduration.h"
 
 #include "harbour-pedalo.h"
 
@@ -48,12 +52,24 @@ int main(int argc, char *argv[])
 
     StatsModel statsmodel;
 
+    StatsYearDuration statsyearduration(&journeys);
+    statsmodel.addStats(statsyearduration);
+
+    StatsYearJourneys statsyearjourneys(&journeys);
+    statsmodel.addStats(statsyearjourneys);
+
     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);