psa: added automatic updates
[feedingit] / psa_harmattan / feedingit / pysrc / feedingit.py
index d2060e8..194e1d3 100644 (file)
@@ -155,6 +155,8 @@ class Controller(QtCore.QObject):
             return config.getHideReadFeeds()
         elif (setting == "hideReadArticles"):
             return config.getHideReadArticles()
+        elif (setting == "autoupdate"):
+            return config.isAutoUpdateEnabled()
         else:
             return 'True'
         
@@ -168,6 +170,8 @@ class Controller(QtCore.QObject):
             config.setHideReadFeeds(value)
         elif (setting == "hideReadArticles"):
             config.setHideReadArticles(value)
+        elif (setting == "autoupdate"):
+            config.setAutoUpdateEnabled(value)
         config.saveConfig()
 
 def main():