psa: added automatic updates
[feedingit] / psa_harmattan / feedingit / qml / AutomaticUpdate.qml
index 1e29655..a4c2b32 100644 (file)
@@ -3,12 +3,9 @@ import QtMobility.systeminfo 1.2
 
 AlignedTimer {
     id: heartbeat
-    maximumInterval: 15
-    minimumInterval: 5
+    maximumInterval: 28800
+    minimumInterval: 21600
     onTimeout: {
-        var timestamp = Qt.formatDateTime(new Date(), "hh:mm:ss") + qsTr(" - heartbeat!")
-        console.log(timestamp)
-        prevLabel.text = lastLabel.text
-        lastLabel.text = timestamp
+        controller.updateAll()
     }
 }