[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, master, updated. milestone3-274-gd9a0e57

Julien 'Ainulindale' Cassignol ainulindale at gmail.com
Tue Nov 11 17:09:23 UTC 2008


The following commit has been merged in the master branch:
commit 910016b866565d2056ed2261d53fb3f4db08c4c5
Author: Julien 'Ainulindale' Cassignol <ainulindale at gmail.com>
Date:   Sun Nov 9 23:44:23 2008 +0100

    Implemented org.freesmartphone.odeviced.IdleNotifier.GetTimeouts() => a{si} and SetTimeout(s,i).

diff --git a/framework/subsystems/odeviced/idlenotifier.py b/framework/subsystems/odeviced/idlenotifier.py
index fdd6aba..ad82924 100644
--- a/framework/subsystems/odeviced/idlenotifier.py
+++ b/framework/subsystems/odeviced/idlenotifier.py
@@ -131,6 +131,17 @@ class IdleNotifier( dbus.service.Object ):
     def GetState( self ):
         return self.state
 
+    @dbus.service.method( DBUS_INTERFACE, "", "a{si}" )
+    def GetTimeouts( self ):
+        return self.timeouts
+
+    @dbus.service.method( DBUS_INTERFACE, "si", "" )
+    def SetTimeout( self, state, timeout ):
+        if not state in self.validStates:
+            raise InvalidState( "valid states are: %s" % self.validStates )
+        else if timeout is not None:
+            self.timeouts[state] = timeout
+
     @dbus.service.method( DBUS_INTERFACE, "s", "" )
     def SetState( self, state ):
         if state == self.state:

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list