Logo Search packages:      
Sourcecode: guidance-power-manager version File versions

def powermanage::PowerManage::_initAc (   self  )  [private]

Search HAL for detecting if power is plugged in. 

Definition at line 273 of file powermanage.py.

00273                      :
        """ Search HAL for detecting if power is plugged in. """
        acDevice = self.hal_manager.FindDeviceByCapability("ac_adapter")
        if len(acDevice) >= 1:
            self.hasAC = True
            self.acObject = self.bus.get_object("org.freedesktop.Hal" ,acDevice[0])

    def _checkSuspend(self):


Generated by  Doxygen 1.6.0   Back to index