Exemplo n.º 1
0
	def restart(self):
		if self.iscam and self.actcam != "none" and self.finish:
			print "[Alternative SoftCam Manager] restart SoftCam"
			self.camstart = self.actcam
			if self.camstartcmd == "":
				self.camstartcmd = Softcam.getcamcmd(self.camstart)
			msg = _("Restarting %s") % self.actcam
			self.mbox = self.session.open(MessageBox, msg, MessageBox.TYPE_INFO)
			self.stoppingTimer.start(100, False)
Exemplo n.º 2
0
	def start(self):
		if self.iscam and self.finish:
			self.camstart = self["list"].getCurrent()[0]
			if self.camstart != self.actcam:
				print "[Alternative SoftCam Manager] Start SoftCam"
				self.camstartcmd = Softcam.getcamcmd(self.camstart)
				msg = _("Starting %s") % self.camstart
				self.mbox = self.session.open(MessageBox, msg, MessageBox.TYPE_INFO)
				self.stoppingTimer.start(100, False)
Exemplo n.º 3
0
	def restart(self):
		if self.iscam:
			print "[NFR-SoftCam Manager] restart SoftCam"
			self.camstart = self.actcam
			if self.camstartcmd == "":
				self.camstartcmd = Softcam.getcamcmd(self.camstart)
			msg = _("Restarting %s") % self.actcam
			self.mbox = self.session.open(MessageBox, msg, MessageBox.TYPE_INFO)
			self.activityTimer = eTimer()
			self.activityTimer.timeout.get().append(self.stopping)
			self.activityTimer.start(100, False)
Exemplo n.º 4
0
	def start(self):
		if self.iscam:
			self.camstart = self["list"].getCurrent()[0]
			if self.camstart != self.actcam:
				print "[NFR-SoftCam Manager] Start SoftCam"
				self.camstartcmd = Softcam.getcamcmd(self.camstart)
				msg = _("Starting %s") % self.camstart
				self.mbox = self.session.open(MessageBox, msg, MessageBox.TYPE_INFO)
				self.activityTimer = eTimer()
				self.activityTimer.timeout.get().append(self.stopping)
				self.activityTimer.start(100, False)
Exemplo n.º 5
0
	def restart(self):
		if self.iscam:
			print "[NFR-SoftCam Manager] restart SoftCam"
			self.camstart = self.actcam
			if self.camstartcmd == "":
				self.camstartcmd = Softcam.getcamcmd(self.camstart)
			msg = _("Restarting %s") % self.actcam
			self.mbox = self.session.open(MessageBox, msg, MessageBox.TYPE_INFO)
			self.activityTimer = eTimer()
			self.activityTimer.timeout.get().append(self.stopping)
			self.activityTimer.start(100, False)
Exemplo n.º 6
0
	def start(self):
		if self.iscam:
			self.camstart = self["list"].getCurrent()[0]
			if self.camstart != self.actcam:
				print "[NFR-SoftCam Manager] Start SoftCam"
				self.camstartcmd = Softcam.getcamcmd(self.camstart)
				msg = _("Starting %s") % self.camstart
				self.mbox = self.session.open(MessageBox, msg, MessageBox.TYPE_INFO)
				self.activityTimer = eTimer()
				self.activityTimer.timeout.get().append(self.stopping)
				self.activityTimer.start(100, False)
Exemplo n.º 7
0
def startcam(reason, **kwargs):
	if config.plugins.AltSoftcam.actcam.value != "none":
		global EnigmaStart
		if reason == 0 and EnigmaStart == False: # Enigma start and not use reloadPlugins
			EnigmaStart = True
			sleep(2)
			try:
				cmd = Softcam.getcamcmd(config.plugins.AltSoftcam.actcam.value)
				Console().ePopen(cmd)
				print "[Alternative SoftCam Manager] ", cmd
			except:
				pass
		elif reason == 1 and EnigmaStart == True: # Enigma stop
			EnigmaStart = False
			try:
				Softcam.stopcam(config.plugins.AltSoftcam.actcam.value)
			except:
				pass
Exemplo n.º 8
0
def startcam(reason, **kwargs):
    if config.plugins.AltSoftcam.actcam.value != "none":
        global EnigmaStart
        if reason == 0 and EnigmaStart == False:  # Enigma start and not use reloadPlugins
            EnigmaStart = True
            sleep(2)
            try:
                cmd = Softcam.getcamcmd(config.plugins.AltSoftcam.actcam.value)
                Console().ePopen(cmd)
                print "[Alternative SoftCam Manager] ", cmd
            except:
                pass
        elif reason == 1 and EnigmaStart == True:  # Enigma stop
            EnigmaStart = False
            try:
                Softcam.stopcam(config.plugins.AltSoftcam.actcam.value)
            except:
                pass