[tuxdroid-svn] r5972 - software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/execut
Status: Beta
Brought to you by:
ks156
From: jerome <c2m...@c2...> - 2009-12-13 12:51:53
|
Author: jerome Date: 2009-12-13 13:31:15 +0100 (Sun, 13 Dec 2009) New Revision: 5972 Modified: software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/plugin-skype.py Log: * And finish call. Modified: software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/plugin-skype.py =================================================================== --- software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/plugin-skype.py 2009-12-13 12:22:25 UTC (rev 5971) +++ software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/plugin-skype.py 2009-12-13 12:31:15 UTC (rev 5972) @@ -138,9 +138,8 @@ #Reject Call elif eventName in ['left', 'right']: self.client.notify('reject_call') - #Quit run mode plugin. - self.stop() + def ClientOnNotification(self, Message): ''' @@ -153,7 +152,13 @@ self.throwNotification("stop") self.ready = True self.command = 'incoming' - + elif Message == 'command>endcall': + self.throwNotification("start") + self.throwActuation("downFlippers") + self.throwActuation("closeMouth") + self.throwNotification("stop") + self.stop() + def ClientOnConnected(self, id): ''' @@ -259,19 +264,19 @@ def OnIncomingFinished(self, contactHandle): ''' + Incoming call finished event. ''' - #Set up Tux Droid motors. - self.throwNotification("start") - self.throwActuation("downFlippers") - self.throwActuation("closeMouth") - self.throwNotification("stop") + #Send reset switches signal. + self.serv.notify('command>endcall') def OnOutgoingCall(self, contactHandle): ''' + Outgoing call finished event. ''' - pass + #Send reset switches signal. + self.serv.notify('command>endcall') def OnOutgoingFinished(self, contactHandle): |