Exemplo n.º 1
0
		def CallEnd(newmap):
			class_.notify.StopTone('ring')
			class_.sys.Vibrate(0, 0, 0, dbus_interface=DIN_SYSTEM)
			class_.notify_callbacks("gsm_phone_call_end")
			class_.set_state_file('stereoout')
			newmap = dedbusmap(newmap)
			print '---', 'CallEnd'
			if class_.call:
				class_.call = None
				while class_.callsigs:
					class_.callsigs.pop().remove()

			DatabaseController.insert_history(class_.call_type, newmap['number'])
			if class_.call_type == 'missed':
				PyneoController.set_missed_call_icon('true')
				cp = ConfigParser(INI_PATH)
				cp.get_section_config('status').set('missed_calls', 'true')
				cp.save()
			class_.dialer_text_set("")
			class_.call_type = None
			class_.gsm_wireless.GetStatus(dbus_interface=DIN_WIRELESS)
Exemplo n.º 2
0
	def set_ini_value(class_, section, control, value):
		cp = ConfigParser(INI_PATH)
		cp.get_section_config(section).set(control, value)
		cp.save()
Exemplo n.º 3
0
	def get_ini_value(class_, section, control):
		cp = ConfigParser(INI_PATH)
		return cp.get_section_config(section).get(control)