[tuxdroid-svn] r6020 - 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-30 12:12:02
|
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) |