Add graphs generated from journey data
[harbour-pedalo.git] / src / stats.h
index 12fb41e..73accfd 100644 (file)
@@ -8,15 +8,32 @@ class Stats
 public:
     Stats();
 
-    QStringList getLabels() const;
-    QList<float> getValues() const;
+    virtual void update();
 
-    void setLabels(QStringList &value);
-    void setValues(QList<float> &value);
+    virtual QString getTitle() const;
+    virtual QStringList getLabels() const;
+    virtual QList<float> getValues() const;
+    virtual QString getUnits() const;
+    virtual float getMinVal() const;
+    virtual float getMaxVal() const;
+    virtual float getStep() const;
 
-private:
+    virtual void setTitle(QString &value);
+    virtual void setLabels(QStringList &value);
+    virtual void setValues(QList<float> &value);
+    virtual void setUnits(QString &value);
+    virtual void setMinVal(float value);
+    virtual void setMaxVal(float value);
+    virtual void setStep(float value);
+
+protected:
+    QString title;
     QStringList labels;
     QList<float> values;
+    QString units;
+    float minval;
+    float maxval;
+    float step;
 };
 
 #endif // STATS_H