Fixes to speed alarm and poi alerts. Added flicker effect. Some new fields to text...
[jspeed] / src / poialerts.h
index 8adc163..a8ba9fe 100644 (file)
@@ -38,12 +38,14 @@ public:
     ~PoiAlerts();
     bool start();
     void end();
-    void startTest();
     double getCurrentDistance() const;
     QString getCurrentPoi() const;
     bool poiInView() const;
     QString const& error() const;
 
+signals:
+    void visibilityChanged(bool visible);
+
 public slots:
     bool loadConfig();
 
@@ -64,7 +66,7 @@ private:
     QList<PoiReader::Poi> pois_;
     QQueue<int> playedSounds_;
     bool enabled_;
-    int distance_;
+    double distance_;
     double travelled_;
     PoiReader::Poi* currentPoi_;
     double currentDistance_;