Merge branch 'power_save'
[situare] / src / gps / gpspositionprivate.h
index 63f6e73..213c4ea 100644 (file)
@@ -76,6 +76,13 @@ public:
     void requestLastPosition();
 
     /**
+    * @brief Requests update from GPS.
+    *
+    * Enables GPS if it is disabled
+    */
+    void requestUpdate();
+
+    /**
     * @brief Set GPS mode.
     *
     * Modes: default and simulation.
@@ -85,6 +92,13 @@ public:
     void setMode(GPSPosition::Mode mode, const QString &filePath = 0);
 
     /**
+    * @brief Sets power save mode.
+    *
+    * Starts GPS for position update and then stops it.
+    */
+    void setPowerSave(bool enabled);
+
+    /**
     * @brief Set GPS update interval
     *
     * @return interval interval in milliseconds