psa: fixed configdir value
[feedingit] / psa_harmattan / feedingit / deb_dist / feedingit-0.1.0 / qml / main.qml
index da92539..0ade188 100644 (file)
@@ -18,6 +18,14 @@ PageStackWindow {
         window.addFileSignal(fullname,filename)
     }
 
+    function updateStarted() {
+        banner.show(qsTr("Update Started"))
+    }
+
+    function updateFinished() {
+        banner.show(qsTr("Updated Completed"))
+    }
+
     onLongPressFeed: {
         unsubscribeFeedMenu.key = key
         unsubscribeFeedMenu.open()
@@ -314,5 +322,20 @@ PageStackWindow {
         //text: "This is an info banner with no icon"
     }
 
-    AutomaticUpdate {}
+    Item {
+        AutomaticUpdate {
+            id: autoUpdate
+        }
+
+        Connections {
+            target: settings
+            onAutoUpdateEnabledChanged: {
+                if (!settings.autoUpdateEnabled) {
+                    autoUpdate.stop();
+                } else {
+                    autoUpdate.start();
+                }
+            }
+        }
+    }
 }