psa: Removed some debug messages.
[feedingit] / psa_harmattan / feedingit / pysrc / feedingit.py
index 6866f9b..93ffc6a 100644 (file)
@@ -46,7 +46,8 @@ class Controller(QtCore.QObject):
         root.updateProgress(int(total), int(completed))
         
     def articleCountUpdated(self):
-        print "article updated"
+        #print "article updated"
+        pass
     
     def update_started(self):
         root.updateStarted()
@@ -79,7 +80,7 @@ class Controller(QtCore.QObject):
     @QtCore.Slot(str,str,bool,result=str)
     def getNextId(self, key, articleid, onlyUnread):
         if (onlyUnread):
-            print self.cachedList, articleid
+            #print self.cachedList, articleid
             index = self.cachedList.index(articleid)
             return self.cachedList[(index + 1) % len(self.cachedList)]
         else:
@@ -89,7 +90,7 @@ class Controller(QtCore.QObject):
     @QtCore.Slot(str,str,bool,result=str)
     def getPreviousId(self, key, articleid, onlyUnread):
         if (onlyUnread):
-            print self.cachedList, articleid
+            #print self.cachedList, articleid
             index = self.cachedList.index(articleid)
             return self.cachedList[(index - 1) % len(self.cachedList)]
         else:
@@ -234,6 +235,13 @@ class Controller(QtCore.QObject):
         elif (setting == "fontSize" ):
             config.setFontSize(value)
         config.saveConfig()
+    
+    @QtCore.Slot(str, str)
+    def openSettings(self):
+        bus = dbus.SessionBus()
+        settingService = bus.get_object('com.nokia.DuiControlPanel', '/')
+        setting = shareService.get_dbus_method('appletPage', 'com.nokia.DuiControlPanelIf')
+        setting("FeedingIt Updates")
 
     @QtCore.Slot(str, str)
     def share(self, key, articleid):