コード例 #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
ファイル: device_neo.py プロジェクト: EdwinTauro/modrana
 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
ファイル: device_jolla.py プロジェクト: EdwinTauro/modrana
    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
ファイル: device_neo.py プロジェクト: jmcabandara/modrana
 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
ファイル: device_n900.py プロジェクト: M4rtinK/modrana
    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
ファイル: device_n900.py プロジェクト: EdwinTauro/modrana
    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
ファイル: device_jolla.py プロジェクト: omartijn/modrana
    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
ファイル: device_netbook.py プロジェクト: EdwinTauro/modrana
 def __init__(self, m, d, i):
     DeviceModule.__init__(self, m, d, i)
コード例 #11
0
ファイル: device_android.py プロジェクト: vpodzime/modrana
 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
ファイル: device_n9.py プロジェクト: EdwinTauro/modrana
 def __init__(self, m, d, i):
     DeviceModule.__init__(self, m, d, i)
     # create the screen-saver controller
     self.qScreenSaver = None
コード例 #14
0
ファイル: device_netbook.py プロジェクト: fferner/modrana
 def __init__(self, *args, **kwargs):
     DeviceModule.__init__(self, *args, **kwargs)
コード例 #15
0
ファイル: device_nemo.py プロジェクト: vpodzime/modrana
 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
ファイル: device_n9.py プロジェクト: fferner/modrana
 def __init__(self, *args, **kwargs):
     DeviceModule.__init__(self, *args, **kwargs)
     # create the screen-saver controller
     self.qScreenSaver = None
コード例 #18
0
ファイル: device_jolla.py プロジェクト: ryfx/modrana
    def __init__(self, *args, **kwargs):
        DeviceModule.__init__(self, *args, **kwargs)

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