Author: jerome
Date: 2009-03-13 17:19:24 +0100 (Fri, 13 Mar 2009)
New Revision: 4060
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/executables/tuxdroid-gadget-skype.py
Log:
*Fixed a bug, calling is now making tux eyes bining
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/executables/tuxdroid-gadget-skype.py
===================================================================
---
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/executables/tuxdroid-gadget-skype.py
2009-03-13 15:26:18 UTC (rev 4059)
+++
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/executables/tuxdroid-gadget-skype.py
2009-03-13 16:19:24 UTC (rev 4060)
@@ -88,7 +88,7 @@
if "tgp_pitch" in os.environ:
pitch = int(os.environ["tgp_pitch"])
if "tgp_quitSkype" in os.environ:
- logout = os.environ["tgp_quitSkype"]
+ quitSkype = os.environ["tgp_quitSkype"]
if "tgp_quitGadget" in os.environ:
quitGadget = os.environ["tgp_quitGadget"]
if "tgp_startupStatus" in os.environ:
@@ -130,6 +130,9 @@
self.__apiAttachState = -1
if self.__tux != None:
+ self.__tux.led.both.off()
+ self.__tux.led.both.on()
+ self.__resetTuxMotors()
self.__tux.access.release()
self.__tux.server.disconnect()
self.__tux.destroy()
@@ -283,7 +286,7 @@
Get connected to the Skype client.
'''
self.__skype = Skype4Py.Skype()
- self.__skype.Timeout = 10000
+ self.__skype.Timeout = 20000
self.__skype.OnAttachmentStatus =
self.skypeApplicationAPIStatusReceived
self.__setSkypeCallBacks()
self.__skype.Attach()
@@ -461,7 +464,13 @@
'''
Set outgoing calls functions.
'''
+ if Status == Skype4Py.clsRinging:
+ self.__tux.led.both.blinkAsync(SPV_SLOW, 100, LFX_FADE)
+
+
if Status in [Skype4Py.clsFinished, Skype4Py.clsCancelled,
Skype4Py.clsRefused, Skype4Py.clsFailed, Skype4Py.clsBusy]:
+ self.__tux.led.both.off()
+ self.__tux.led.both.on()
self.__currentCall = None
self.__resetTuxMotors()
@@ -477,7 +486,10 @@
- elif Status in [Skype4Py.clsRinging, Skype4Py.clsEarlyMedia,
Skype4Py.clsRouting, Skype4Py.clsInProgress, Skype4Py.clsUnplaced]:
+ elif Status in [Skype4Py.clsRinging, Skype4Py.clsEarlyMedia,
Skype4Py.clsRouting, Skype4Py.clsInProgress, Skype4Py.clsUnplaced]:
+ if Status in [Skype4Py.clsInProgress, Skype4Py.clsUnplaced]:
+ self.__tux.led.both.off()
+ self.__tux.led.both.on()
self.__currentCall = Call
self.__removeTuxEvents()
self.__setTuxMotors()
@@ -593,6 +605,7 @@
'''
Suit the main loop.
'''
+ self.setCallFinished()
self.__destroy()
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn