Ignore:
Timestamp:
04/25/12 23:23:44 (2 years ago)
Author:
Martin Kolman <martin.kolman@…>
Branches:
master
Children:
5b95591
Parents:
918171b
git-author:
Martin Kolman <martin.kolman@…> (04/25/12 23:23:44)
git-committer:
Martin Kolman <martin.kolman@…> (04/25/12 23:23:44)
Message:

update screen blanking control API; screen blanking support for N9/N950

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/device_modules/device_n9.py

    r29295ea rc484fad  
    2323from base_device_module import deviceModule 
    2424 
     25from QtMobility.SystemInfo import QSystemScreenSaver 
     26""" ^^ back-light control""" 
     27 
    2528# NOTE: use the device_ prefix when naming the module 
    2629 
     
    3336  def __init__(self, m, d, i): 
    3437    deviceModule.__init__(self, m, d, i) 
     38    # create the screen-saver controller 
     39    self.qScreenSaver = QSystemScreenSaver() 
    3540 
    3641  def getDeviceIDString(self): 
     
    5863 
    5964  def screenBlankingControlSupported(self): 
    60     # TODO: screen blanking support 
    61     return False 
     65    """ 
     66    Screen blanking support is handled through Qt Mobility 
     67    """ 
     68    return True 
     69 
     70  def pauseScreenBlanking(self): 
     71    """ 
     72    inhibit screen blanking 
     73    """ 
     74    QSystemScreenSaver.setScreenSaverInhibit(self.qScreenSaver) 
     75 
    6276 
    6377  def getLocationType(self): 
Note: See TracChangeset for help on using the changeset viewer.