Exemplo n.º 1
0
	def getText(self):
		if self.type == self.SYSTEM:
			return "System: %s" % emud.getInfoSystem()
		elif self.type == self.CAID:
			return "CaID: %s" % emud.getInfoCaID()
		elif self.type == self.PID:
			return "Pid: %s" % emud.getInfoPid()
		elif self.type == self.PROTOCOL:
			return "Protocol: %s" % emud.getInfoProtocol()
		elif self.type == self.ADDRESS:
			return "Address: %s" % emud.getInfoAddress()
		elif self.type == self.PROVID:
			return "ProvID: %s" % emud.getInfoProvID()
		elif self.type == self.TIME:
			return "Delay time (ms): %s" % emud.getInfoTime()
		elif self.type == self.HOPS:
			return "Hops: %s" % emud.getInfoHops()
		elif self.type == self.CW0:
			return "CW0: %s" % emud.getInfoCW0()
		elif self.type == self.CW1:
			return "CW1: %s" % emud.getInfoCW1()
		elif self.type == self.NAME:
			return "Name: %s" % emud.getInfoName()
		elif self.type == self.NAME_SLIM:
			return emud.getInfoName()
		elif self.type == self.BASIC_INFO:
			return "%s %s:%s %s" % (emud.getInfoSystem(), emud.getInfoCaID(), emud.getInfoProvID(), emud.getInfoPid())
		elif self.type == self.CRYPT_INFO:
			return "CaID: %s Pid: %s" % (emud.getInfoCaID(), emud.getInfoPid())
		return "Error"
Exemplo n.º 2
0
    def getText(self):
        if self.type == self.SYSTEM:
            return "System: %s" % emud.getInfoSystem()
        elif self.type == self.CAID:
            return "CaID: %s" % emud.getInfoCaID()
        elif self.type == self.PID:
            return "Pid: %s" % emud.getInfoPid()
        elif self.type == self.PROTOCOL:
            return "Protocol: %s" % emud.getInfoProtocol()
        elif self.type == self.ADDRESS:
            return "Address: %s" % emud.getInfoAddress()
        elif self.type == self.PROVID:
            return "ProvID: %s" % emud.getInfoProvID()
        elif self.type == self.TIME:
            return "Delay time (ms): %s" % emud.getInfoTime()
        elif self.type == self.HOPS:
            return "Hops: %s" % emud.getInfoHops()
        elif self.type == self.CW0:
            return "CW0: %s" % emud.getInfoCW0()
        elif self.type == self.CW1:
            return "CW1: %s" % emud.getInfoCW1()
        elif self.type == self.NAME:
            return "Name: %s" % emud.getInfoName()
        elif self.type == self.NAME_SLIM:
            return emud.getInfoName()
        elif self.type == self.BASIC_INFO:
            return "%s %s:%s %s" % (emud.getInfoSystem(), emud.getInfoCaID(),
                                    emud.getInfoProvID(), emud.getInfoPid())
        elif self.type == self.CRYPT_INFO:
            return "CaID: %s Pid: %s" % (emud.getInfoCaID(), emud.getInfoPid())
        elif self.type == self.SYSTEM_VALUE:
            return str(emud.getInfoSystem())
        elif self.type == self.CAID_VALUE:
            return str(emud.getInfoCaID())
        elif self.type == self.PID_VALUE:
            return str(emud.getInfoPid())
        elif self.type == self.PROTOCOL_VALUE:
            return str(emud.getInfoProtocol())
        elif self.type == self.ADDRESS_VALUE:
            return str(emud.getInfoAddress())
        elif self.type == self.PROVID_VALUE:
            return str(emud.getInfoProvID())
        elif self.type == self.TIME_VALUE:
            return str(emud.getInfoTime())
        elif self.type == self.HOPS_VALUE:
            return str(emud.getInfoHops())
        elif self.type == self.CW0_VALUE:
            return str(emud.getInfoCW0())
        elif self.type == self.CW1_VALUE:
            return str(emud.getInfoCW1())
        elif self.type == self.NAME_VALUE:
            return str(emud.getInfoName())

        return "Error"
Exemplo n.º 3
0
	def getText(self):
		service = self.source.service
		info = (service and service.info())
		if (not info):
			return ""
		text = ""
		if ((self.type == self.TUNERINFO) or (self.type == self.TUNERINFOBP)):
			if (self.type == self.TUNERINFO):
				self.tunertype = "linelist"
				tunerinfo = self.getTunerInfo(service)
			else:
				self.tunertype = "lineslist"
				tunerinfo = self.getTunerInfo(service)
			text = tunerinfo
		elif (self.type == self.CAMNAME):
			text = emud.getInfoName()
		elif (self.type == self.NUMBER):
			text = self.getServiceNumber()
		elif (self.type == self.ECMINFO):
			text = emud.getInfoSystem()
		elif (self.type == self.CAIDINFO):
			text = emud.getInfoCaID
		return text