示例#1
0
    def __init__(self, *args, **kwargs):
        DeviceModule.__init__(self, *args, **kwargs)
        # migrate any old profiles
        # TODO: remove this once it is probable
        # that most users are using the new profile path
        self._migrateProfiles()

        # override the default profile name to harbour-modrana
        paths.setProfileName(SAILFISH_MODRANA_PROFILE_NAME)
示例#2
0
 def __init__(self, m, d, i):
     DeviceModule.__init__(self, m, d, i)
     self.tempUnfullscreen = False
     # connect to the location start & stop signals,
     # so that the FreeRunners GPS can be started/stopped
     l = self.m.get('location', None)
     if l is not None:
         l.startSignal.connect(self._startLocationCB)
         l.stopSignal.connect(self._stopLocationCB)
示例#3
0
    def __init__(self, m, d, i):
        DeviceModule.__init__(self, m, d, i)
        # migrate any old profiles
        # TODO: remove this once it is probable
        # that most users are using the new profile path
        self._migrateProfiles()

        # override the default profile name to harbour-modrana
        paths.setProfileName(SAILFISH_MODRANA_PROFILE_NAME)
示例#4
0
 def __init__(self, *args, **kwargs):
     DeviceModule.__init__(self, *args, **kwargs)
     self.tempUnfullscreen = False
     # connect to the location start & stop signals,
     # so that the FreeRunners GPS can be started/stopped
     l = self.m.get('location', None)
     if l is not None:
         l.startSignal.connect(self._startLocationCB)
         l.stopSignal.connect(self._stopLocationCB)
示例#5
0
    def __init__(self, *args, **kwargs):
        DeviceModule.__init__(self, *args, **kwargs)
        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)
        self.log.info("DBUS initialized")

        # Internet connectivity related

        # status from the Internet Connectivity Daemon
        self._connectivityStatusICD = constants.OFFLINE
        self.conicConnection = None

        # Mainloop for headless location support
        self.mainloop = 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()

            # we handle notifications only for the GTK GUI
            self.modrana.notificationTriggered.connect(
                self._dispatchNotificationCB)

        elif gs.GUIString == "QML":
            self.log.info("N900 Qt screen saver controller created")
            self.qScreenSaver = QSystemScreenSaver()

        # the old Python 2.5 based urllib3 has a bit different logging,
        # so we need to make it shut up here
        urllib3_logger = logging.getLogger("core.backports.urllib3_python25")
        urllib3_logger.setLevel(logging.ERROR)

        self.log.info("N900 device specific module initialized")
示例#6
0
    def __init__(self, *args, **kwargs):
        DeviceModule.__init__(self, *args, **kwargs)
        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)
        self.log.info("DBUS initialized")

        # Internet connectivity related

        # status from the Internet Connectivity Daemon
        self._connectivityStatusICD = constants.OFFLINE
        self.conicConnection = None

        # Mainloop for headless location support
        self.mainloop = None

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

            # libconic
            self._conicConnect()

            # we handle notifications only for the GTK GUI
            self.modrana.notificationTriggered.connect(self._dispatchNotificationCB)

        elif gs.GUIString == "QML":
            self.log.info("N900 Qt screen saver controller created")
            self.qScreenSaver = QSystemScreenSaver()

        # the old Python 2.5 based urllib3 has a bit different logging,
        # so we need to make it shut up here
        urllib3_logger = logging.getLogger("core.backports.urllib3_python25")
        urllib3_logger.setLevel(logging.ERROR)

        self.log.info("N900 device specific module initialized")
示例#7
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

        # status from the Internet Connectivity Daemon
        self._connectivityStatusICD = constants.OFFLINE
        self.conicConnection = None

        # Mainloop for headless location support
        self.mainloop = 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()

        elif gs.GUIString == "QML":
            print("N900 Qt screen saver controller created")
            self.qScreenSaver = QSystemScreenSaver()

        print("N900 device specific module initialized")
示例#8
0
    def __init__(self, *args, **kwargs):
        DeviceModule.__init__(self, *args, **kwargs)

        # override the default profile name to harbour-modrana
        paths.set_profile_name(SAILFISH_MODRANA_PROFILE_NAME)
示例#9
0
 def __init__(self, *args, **kwargs):
     DeviceModule.__init__(self, *args, **kwargs)
示例#10
0
 def __init__(self, m, d, i):
     DeviceModule.__init__(self, m, d, i)
示例#11
0
 def __init__(self, *args, **kwargs):
     DeviceModule.__init__(self, *args, **kwargs)
     self.tempUnfullscreen = False
示例#12
0
 def __init__(self, m, d, i):
     DeviceModule.__init__(self, m, d, i)
     self.tempUnfullscreen = False
示例#13
0
 def __init__(self, m, d, i):
     DeviceModule.__init__(self, m, d, i)
     # create the screen-saver controller
     self.qScreenSaver = None
示例#14
0
 def __init__(self, *args, **kwargs):
     DeviceModule.__init__(self, *args, **kwargs)
示例#15
0
 def __init__(self, *args, **kwargs):
     DeviceModule.__init__(self, *args, **kwargs)
     # create the screen-saver controller
     self.qScreenSaver = QSystemScreenSaver()
示例#16
0
 def __init__(self, *args, **kwargs):
     DeviceModule.__init__(self, *args, **kwargs)
     self.tempUnfullscreen = False
示例#17
0
 def __init__(self, *args, **kwargs):
     DeviceModule.__init__(self, *args, **kwargs)
     # create the screen-saver controller
     self.qScreenSaver = None
示例#18
0
    def __init__(self, *args, **kwargs):
        DeviceModule.__init__(self, *args, **kwargs)

        # override the default profile name to harbour-modrana
        paths.setProfileName(SAILFISH_MODRANA_PROFILE_NAME)