示例#1
0
  def __init__(self, m, d, i):
    deviceModule.__init__(self, m, d, i)
    self.rotationObject = None
    # start the N900 specific automatic GUI rotation support
    self.done = False

    #osso app name
    self.ossoAppName = 'modrana'

    # screen blanking related
    self.bus = dbus.SystemBus()
    self.mceRequest = self.bus.get_object('com.nokia.mce', '/com/nokia/mce/request')
    self.mceSignal = self.bus.get_object('com.nokia.mce', '/com/nokia/mce/signal')
    self.mceSignalInterface = dbus.Interface(self.mceSignal, 'com.nokia.mce.signal')
    self.mceSignalInterface.connect_to_signal("display_status_ind", self.screenStateChangedCallback)
    print "N900: DBUS initialized"

    # Internet connectivity related
    self.connectivityStatus = False
    self.conicConnection = None

    if gs.GUIString == "GTK":
      # liblocation
      self.lControl = None
      self.lDevice = None
      """location starting is handled by mod_location
      in its firstTime call"""

      # libconic
      self._conicConnect()

    else:
      print("N900 Qt screen saver controller created")
      self.qScreenSaver = QSystemScreenSaver()

    print "N900 device specific module initialized"
示例#2
0
 def __init__(self, m, d, i):
   deviceModule.__init__(self, m, d, i)
   # create the screen-saver controller
   self.qScreenSaver = QSystemScreenSaver()
示例#3
0
 def __init__(self, m, d, i):
   deviceModule.__init__(self, m, d, i)
示例#4
0
 def __init__(self, m, d, i):
     deviceModule.__init__(self, m, d, i)
     self.tempUnfullscreen = False