Author: jerome
Date: 2009-12-30 13:11:33 +0100 (Wed, 30 Dec 2009)
New Revision: 6020
Modified:
software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/plugin-skype.py
Log:
* Added a method to quit outgoing gadget if user has closed his Skype client.
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-29 15:01:21 UTC (rev 6019)
+++
software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/plugin-skype.py
2009-12-30 12:11:33 UTC (rev 6020)
@@ -302,6 +302,7 @@
#Initialize skype client and api objects.
self.connectorObj = connector.Connector()
self.connectorObj.OnAPIReady = self.initializeDaemon
+ self.connectorObj.OnSkypeClosed = self.OnSkypeClosed
#Daemon mode, so we don't start skype automatically.
self.connectorObj.start(StartSkype=False)
@@ -351,6 +352,14 @@
self.initialized = True
self.mutex.release()
+
+
+ def OnSkypeClosed(self):
+ '''
+ Skype closure detected.
+ '''
+ if self.serv.hasClient():
+ self.serv.notify(END)
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn