tux-droid-svn Mailing List for Tux Droid CE (Page 31)
Status: Beta
Brought to you by:
ks156
You can subscribe to this list here.
| 2007 |
Jan
|
Feb
(32) |
Mar
(108) |
Apr
(71) |
May
(38) |
Jun
(128) |
Jul
(1) |
Aug
(14) |
Sep
(77) |
Oct
(104) |
Nov
(90) |
Dec
(71) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
(81) |
Feb
(18) |
Mar
(40) |
Apr
(102) |
May
(151) |
Jun
(74) |
Jul
(151) |
Aug
(257) |
Sep
(447) |
Oct
(379) |
Nov
(404) |
Dec
(430) |
| 2009 |
Jan
(173) |
Feb
(236) |
Mar
(519) |
Apr
(300) |
May
(112) |
Jun
(232) |
Jul
(314) |
Aug
(58) |
Sep
(203) |
Oct
(293) |
Nov
(26) |
Dec
(109) |
| 2010 |
Jan
(19) |
Feb
(25) |
Mar
(33) |
Apr
(1) |
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: jerome <c2m...@c2...> - 2009-08-05 11:02:28
|
Author: jerome
Date: 2009-08-05 13:02:09 +0200 (Wed, 05 Aug 2009)
New Revision: 5280
Modified:
software_suite_v3/software/plugin/plugin-skype/trunk/executables/plugin-skype.py
Log:
* Fixed : 152 ?\226?\128?\148 Skype plugin - Weird behaviour
Modified: software_suite_v3/software/plugin/plugin-skype/trunk/executables/plugin-skype.py
===================================================================
--- software_suite_v3/software/plugin/plugin-skype/trunk/executables/plugin-skype.py 2009-08-04 13:50:11 UTC (rev 5279)
+++ software_suite_v3/software/plugin/plugin-skype/trunk/executables/plugin-skype.py 2009-08-05 11:02:09 UTC (rev 5280)
@@ -25,7 +25,9 @@
from util.SimplePlugin.SimplePlugin import SimplePlugin
from util.system.TaskBar import refreshTaskBar
from util.system.Device import *
+from Skype4Py.errors import ISkypeError as SkypeError, ISkypeAPIError as SkypeAPIError
+
class Configuration(SimplePluginConfiguration):
"""This class make an access to the plugin parameters.
Parameters are automatically filled by the SimpleGadget class at plugin
@@ -78,12 +80,14 @@
}
self.__mutexContacts = threading.Lock()
self.__mutexCall = threading.Lock()
+ self.__connectionMutex = threading.Lock()
# Skype api objects.
self.__skype = None
self.__apiAttachState = -1
self.__activeMain = True
# Skype process
self.__skypeProcess = None
+ self.attemptTimeout = 0
def start(self):
"""Plugin entry point.
@@ -101,14 +105,19 @@
self.__tuxBodyLedsBlink()
# Start Skype client if not started.
self.__startSkypeApp()
+
if not self.__activeMain:
self.stop()
- return
+ return
+
# Connect to skype api.
self.__connectSkypeAPI()
+ except SkypeAPIError:
+ pass
except:
self.throwMessage("I cannot get connected to your Skeyepe. Please, check if you are connected. And verify if I can access skeyepe.")
self.stop()
+
def onPluginStop(self):
"""Callback on plugin stop.
@@ -188,6 +197,24 @@
"""Received api connection status.
"""
self.__apiAttachState = value
+ if ( value in [Skype4Py.apiAttachSuccess, ]) and (not (self.attemptTimeout == 6)):
+ # Set tux as audio card.
+ self.__selectTuxAsAudioCard()
+ time.sleep(0.2)
+
+ # Get the contacts list.
+ self.__getContacts()
+
+ # Set the user status.
+
+ status = self.configuration().getStartupStatus()
+ if self.__allowedStatus.has_key(status):
+ self.__skype.ChangeUserStatus(self.__allowedStatus[status])
+
+ elif self.attemptTimeout == 6:
+ self.stop()
+ return
+
def __selectTuxAsAudioCard(self):
"""Set tux as audio peripheral.
@@ -218,29 +245,42 @@
return False
else:
return False
-
+
+
def __connectSkypeAPI(self):
"""Get connected to the Skype client.
"""
# Create and attach skype api
self.__skype = Skype4Py.Skype()
- self.__skype.Timeout = 20000
self.__skype.OnAttachmentStatus = self.__onSkypeAPIStatusReceived
self.__skype.OnCallStatus = self.__onSkypeCall
- self.__skype.Attach()
- # Set tux as audio card.
- self.__selectTuxAsAudioCard()
- # Set the user status.
- status = self.configuration().getStartupStatus()
- if self.__allowedStatus.has_key(status):
- self.__skype._SetCurrentUserStatus(self.__allowedStatus[status])
- # Get the contacts list.
- self.__getContacts()
+
+ try:
+ self.__skype.Timeout = 7000
+ self.__skype.Attach()
+
+ except SkypeAPIError:
+ self.__skypeConnectionFailed()
+
+
+ def __skypeConnectionFailed(self):
+ '''
+ '''
+ while self.attemptTimeout != 6:
+ time.sleep(5)
+ try:
+ self.__skype.Attach()
+ except SkypeAPIError:
+ pass
+ else:
+ self.stop()
+ return
+
def __skypeAPIIsConnected(self):
"""Return true if connected.
"""
- return self.__apiAttachState == 0
+ return self.__apiAttachState in [0, ]
def __onOutgoingCall(self, Call, Status):
"""Set outgoing calls functions.
@@ -279,26 +319,36 @@
def callCurrentContact(self, contact):
"""Call a specified contact.
"""
- self.__mutexCall.acquire()
- # Get skype name
- callName = self.__contactsDict.get(contact)
- # Place call
- if (callName != None) and (self.__currentCall == None):
- self.__currentCall = self.__skype.PlaceCall(callName)
- self.__mutexCall.release()
+ try:
+ self.__mutexCall.acquire()
+ # Get skype name
+ callName = self.__contactsDict.get(contact)
+ # Place call
+ if (callName != None) and (self.__currentCall == None):
+ self.__currentCall = self.__skype.PlaceCall(callName)
+ self.__mutexCall.release()
+ except:
+ if self.__mutexCall.locked():
+ self.__mutexCall.release()
+ return
def hangUp(self):
"""Finish all placed calls.
"""
- self.__mutexCall.acquire()
- if self.__currentCall != None:
- try:
- self.__currentCall.Finish()
- self.__currentCall = None
- except:
- self.__currentCall.Resume()
- self.__currentCal = None
- self.__mutexCall.release()
+ try:
+ self.__mutexCall.acquire()
+ if self.__currentCall != None:
+ try:
+ self.__currentCall.Finish()
+ self.__currentCall = None
+ except:
+ self.__currentCall.Resume()
+ self.__currentCal = None
+ self.__mutexCall.release()
+ except:
+ if self.__mutexCall.locked():
+ self.__mutexCall.release()
+ return
# ==========================================================================
# Skype application control
@@ -365,6 +415,7 @@
def __startSkypeAppLinux(self):
"""Start skype on linux ( thread needed to do not block the script ).
"""
+ self.throwTrace('starting skype application')
# Searching for skype binary.
result = []
found =False
@@ -384,13 +435,9 @@
#start skype
self.__skypeProcess = subprocess.Popen("skype", stdin = subprocess.PIPE,
stdout = subprocess.PIPE)
- while True:
- try:
- buffer = self.__skypeProcess.stdout.read(100)
- except:
- buffer = ""
- if len(buffer) == 0:
- break
+
+ while not self.__getSkypeAppConnected():
+ sleep(1000)
self.__activeMain = True
else:
self.throwMessage("Sorry, it looks like skeyepe is not installed. Please go to the skeyepe website to download the software.")
@@ -448,6 +495,7 @@
else:
self.__contactsDict[userHEnc] = userHEnc
self.__contactsList.append(userHEnc)
+
self.__contactsDict["Quit gadget"] = "Quit gadget"
self.__contactsList.insert(0, "Quit gadget")
self.__currentContactIndex = 0
|
|
From: remi <c2m...@c2...> - 2009-08-04 13:50:25
|
Author: remi Date: 2009-08-04 15:50:11 +0200 (Tue, 04 Aug 2009) New Revision: 5279 Modified: software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/fr.po Log: * Fixed french translation of the "online" page title of TuxBox. Modified: software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/fr.po =================================================================== --- software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/fr.po 2009-08-04 12:13:31 UTC (rev 5278) +++ software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/fr.po 2009-08-04 13:50:11 UTC (rev 5279) @@ -11,7 +11,7 @@ msgstr "Outils" msgid "online" -msgstr "En ligne" +msgstr "Magasin en ligne" msgid "status" msgstr "Statut" |
|
From: remi <c2m...@c2...> - 2009-08-04 12:33:01
|
Author: remi Date: 2009-08-04 14:13:31 +0200 (Tue, 04 Aug 2009) New Revision: 5278 Added: software_suite_v3/software/gadget/online_only/tags/beta_release_july_09/ Log: * Tagged beta released "online only" gadgets (July 2009) Copied: software_suite_v3/software/gadget/online_only/tags/beta_release_july_09 (from rev 5276, software_suite_v3/software/gadget/online_only/trunk) |
|
From: remi <c2m...@c2...> - 2009-08-04 12:16:01
|
Author: remi Date: 2009-08-04 14:12:37 +0200 (Tue, 04 Aug 2009) New Revision: 5277 Added: software_suite_v3/software/gadget/default/tags/beta_release_july_09/ Log: * Tagged beta released "default" gadgets (July 2009) Copied: software_suite_v3/software/gadget/default/tags/beta_release_july_09 (from rev 5276, software_suite_v3/software/gadget/default/trunk) |
|
From: remi <c2m...@c2...> - 2009-08-04 12:10:29
|
Author: remi Date: 2009-08-04 14:10:10 +0200 (Tue, 04 Aug 2009) New Revision: 5276 Added: software_suite_v3/software/gadget/default/trunk/names_to_uuids_list.txt software_suite_v3/software/gadget/online_only/trunk/names_to_uuids_list.txt Log: * Added text files to find a gadget directory (gadget_<uuid>) by it name. Added: software_suite_v3/software/gadget/default/trunk/names_to_uuids_list.txt =================================================================== --- software_suite_v3/software/gadget/default/trunk/names_to_uuids_list.txt (rev 0) +++ software_suite_v3/software/gadget/default/trunk/names_to_uuids_list.txt 2009-08-04 12:10:10 UTC (rev 5276) @@ -0,0 +1,10 @@ +Clock : 0a58d901-309a-dd6a-e6e7-be691858f9f0 +Facebook : 2ba0fe92-c73f-61b5-50c5-d8de0aee9194 +Skype : 4e139371-e72a-5df7-c272-17d22f1fc258 +Webradio : 5c5e7e0d-89c5-8799-3175-df2bddf5653c +Twitter : 33b14aea-907e-9d9d-7e64-c40c3bbf56fb +MSN : 56cdb050-3bba-d814-32c5-df4b90fee8c3 +Weather : 59cce412-9224-639c-d64d-9d25de84b960 +Sense of humor : 710c4d99-9a26-b7c4-67e5-dabf78718462 +E-Mail : 84628d00-1e17-62dd-eaa4-7b11436f3211 +RSS : d71cec40-c44e-73d7-e63f-a152986354e0 \ No newline at end of file Added: software_suite_v3/software/gadget/online_only/trunk/names_to_uuids_list.txt =================================================================== --- software_suite_v3/software/gadget/online_only/trunk/names_to_uuids_list.txt (rev 0) +++ software_suite_v3/software/gadget/online_only/trunk/names_to_uuids_list.txt 2009-08-04 12:10:10 UTC (rev 5276) @@ -0,0 +1,5 @@ +Max Light : 1bc7a418-569d-3b72-3463-ebfe5eb1442e +Shortcut : 7e336960-94ea-6d50-31f7-38655786cb51 +Tv programs : 73b9a87c-1244-de8d-ef91-467db879e291 +System : a11cd67a-4bae-bab6-d146-2429a97cd500 +WMP : ee51da83-f96e-e265-e432-d009b927e5bd \ No newline at end of file |
Author: remi Date: 2009-08-04 13:58:18 +0200 (Tue, 04 Aug 2009) New Revision: 5275 Added: software_suite_v3/software/gadget/ software_suite_v3/software/gadget/default/ software_suite_v3/software/gadget/default/branches/ software_suite_v3/software/gadget/default/tags/ software_suite_v3/software/gadget/default/trunk/ software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/ software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/en.po software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/en.wiki software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/fr.po software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/fr.wiki software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/gadget.png software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/gadget.pot software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/gadget.xml software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/help.wiki software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/nl.po software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/nl.wiki software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/ software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/en.po software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/en.wiki software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/fr.po software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/fr.wiki software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/gadget.png software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/gadget.pot software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/gadget.xml software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/help.wiki software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/nl.po software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/nl.wiki software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/ software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/en.po software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/en.wiki software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/fr.po software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/fr.wiki software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/gadget.png software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/gadget.pot software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/gadget.xml software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/help.wiki software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/nl.po software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/nl.wiki software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/ software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/en.po software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/en.wiki software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/fr.po software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/fr.wiki software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/gadget.png software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/gadget.pot software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/gadget.xml software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/help.wiki software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/nl.po software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/nl.wiki software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/ software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/en.po software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/en.wiki software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/fr.po software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/fr.wiki software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/gadget.png software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/gadget.pot software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/gadget.xml software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/help.wiki software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/nl.po software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/nl.wiki software_suite_v3/software/gadget/default/trunk/gadget_59cce412-9224-639c-d64d-9d25de84b960/ software_suite_v3/software/gadget/default/trunk/gadget_59cce412-9224-639c-d64d-9d25de84b960/en.po software_suite_v3/software/gadget/default/trunk/gadget_59cce412-9224-639c-d64d-9d25de84b960/en.wiki software_suite_v3/software/gadget/default/trunk/gadget_59cce412-9224-639c-d64d-9d25de84b960/fr.po software_suite_v3/software/gadget/default/trunk/gadget_59cce412-9224-639c-d64d-9d25de84b960/fr.wiki software_suite_v3/software/gadget/default/trunk/gadget_59cce412-9224-639c-d64d-9d25de84b960/gadget.png software_suite_v3/software/gadget/default/trunk/gadget_59cce412-9224-639c-d64d-9d25de84b960/gadget.pot software_suite_v3/software/gadget/default/trunk/gadget_59cce412-9224-639c-d64d-9d25de84b960/gadget.xml software_suite_v3/software/gadget/default/trunk/gadget_59cce412-9224-639c-d64d-9d25de84b960/help.wiki software_suite_v3/software/gadget/default/trunk/gadget_59cce412-9224-639c-d64d-9d25de84b960/nl.po software_suite_v3/software/gadget/default/trunk/gadget_59cce412-9224-639c-d64d-9d25de84b960/nl.wiki software_suite_v3/software/gadget/default/trunk/gadget_5c5e7e0d-89c5-8799-3175-df2bddf5653c/ software_suite_v3/software/gadget/default/trunk/gadget_5c5e7e0d-89c5-8799-3175-df2bddf5653c/en.po software_suite_v3/software/gadget/default/trunk/gadget_5c5e7e0d-89c5-8799-3175-df2bddf5653c/en.wiki software_suite_v3/software/gadget/default/trunk/gadget_5c5e7e0d-89c5-8799-3175-df2bddf5653c/fr.po software_suite_v3/software/gadget/default/trunk/gadget_5c5e7e0d-89c5-8799-3175-df2bddf5653c/fr.wiki software_suite_v3/software/gadget/default/trunk/gadget_5c5e7e0d-89c5-8799-3175-df2bddf5653c/gadget.png software_suite_v3/software/gadget/default/trunk/gadget_5c5e7e0d-89c5-8799-3175-df2bddf5653c/gadget.pot software_suite_v3/software/gadget/default/trunk/gadget_5c5e7e0d-89c5-8799-3175-df2bddf5653c/gadget.xml software_suite_v3/software/gadget/default/trunk/gadget_5c5e7e0d-89c5-8799-3175-df2bddf5653c/help.wiki software_suite_v3/software/gadget/default/trunk/gadget_5c5e7e0d-89c5-8799-3175-df2bddf5653c/nl.po software_suite_v3/software/gadget/default/trunk/gadget_5c5e7e0d-89c5-8799-3175-df2bddf5653c/nl.wiki software_suite_v3/software/gadget/default/trunk/gadget_710c4d99-9a26-b7c4-67e5-dabf78718462/ software_suite_v3/software/gadget/default/trunk/gadget_710c4d99-9a26-b7c4-67e5-dabf78718462/en.po software_suite_v3/software/gadget/default/trunk/gadget_710c4d99-9a26-b7c4-67e5-dabf78718462/en.wiki software_suite_v3/software/gadget/default/trunk/gadget_710c4d99-9a26-b7c4-67e5-dabf78718462/fr.po software_suite_v3/software/gadget/default/trunk/gadget_710c4d99-9a26-b7c4-67e5-dabf78718462/fr.wiki software_suite_v3/software/gadget/default/trunk/gadget_710c4d99-9a26-b7c4-67e5-dabf78718462/gadget.png software_suite_v3/software/gadget/default/trunk/gadget_710c4d99-9a26-b7c4-67e5-dabf78718462/gadget.pot software_suite_v3/software/gadget/default/trunk/gadget_710c4d99-9a26-b7c4-67e5-dabf78718462/gadget.xml software_suite_v3/software/gadget/default/trunk/gadget_710c4d99-9a26-b7c4-67e5-dabf78718462/help.wiki software_suite_v3/software/gadget/default/trunk/gadget_710c4d99-9a26-b7c4-67e5-dabf78718462/nl.po software_suite_v3/software/gadget/default/trunk/gadget_710c4d99-9a26-b7c4-67e5-dabf78718462/nl.wiki software_suite_v3/software/gadget/default/trunk/gadget_84628d00-1e17-62dd-eaa4-7b11436f3211/ software_suite_v3/software/gadget/default/trunk/gadget_84628d00-1e17-62dd-eaa4-7b11436f3211/en.po software_suite_v3/software/gadget/default/trunk/gadget_84628d00-1e17-62dd-eaa4-7b11436f3211/en.wiki software_suite_v3/software/gadget/default/trunk/gadget_84628d00-1e17-62dd-eaa4-7b11436f3211/fr.po software_suite_v3/software/gadget/default/trunk/gadget_84628d00-1e17-62dd-eaa4-7b11436f3211/fr.wiki software_suite_v3/software/gadget/default/trunk/gadget_84628d00-1e17-62dd-eaa4-7b11436f3211/gadget.png software_suite_v3/software/gadget/default/trunk/gadget_84628d00-1e17-62dd-eaa4-7b11436f3211/gadget.pot software_suite_v3/software/gadget/default/trunk/gadget_84628d00-1e17-62dd-eaa4-7b11436f3211/gadget.xml software_suite_v3/software/gadget/default/trunk/gadget_84628d00-1e17-62dd-eaa4-7b11436f3211/help.wiki software_suite_v3/software/gadget/default/trunk/gadget_84628d00-1e17-62dd-eaa4-7b11436f3211/nl.po software_suite_v3/software/gadget/default/trunk/gadget_84628d00-1e17-62dd-eaa4-7b11436f3211/nl.wiki software_suite_v3/software/gadget/default/trunk/gadget_d71cec40-c44e-73d7-e63f-a152986354e0/ software_suite_v3/software/gadget/default/trunk/gadget_d71cec40-c44e-73d7-e63f-a152986354e0/en.po software_suite_v3/software/gadget/default/trunk/gadget_d71cec40-c44e-73d7-e63f-a152986354e0/en.wiki software_suite_v3/software/gadget/default/trunk/gadget_d71cec40-c44e-73d7-e63f-a152986354e0/fr.po software_suite_v3/software/gadget/default/trunk/gadget_d71cec40-c44e-73d7-e63f-a152986354e0/fr.wiki software_suite_v3/software/gadget/default/trunk/gadget_d71cec40-c44e-73d7-e63f-a152986354e0/gadget.png software_suite_v3/software/gadget/default/trunk/gadget_d71cec40-c44e-73d7-e63f-a152986354e0/gadget.pot software_suite_v3/software/gadget/default/trunk/gadget_d71cec40-c44e-73d7-e63f-a152986354e0/gadget.xml software_suite_v3/software/gadget/default/trunk/gadget_d71cec40-c44e-73d7-e63f-a152986354e0/help.wiki software_suite_v3/software/gadget/default/trunk/gadget_d71cec40-c44e-73d7-e63f-a152986354e0/nl.po software_suite_v3/software/gadget/default/trunk/gadget_d71cec40-c44e-73d7-e63f-a152986354e0/nl.wiki software_suite_v3/software/gadget/online_only/ software_suite_v3/software/gadget/online_only/branches/ software_suite_v3/software/gadget/online_only/tags/ software_suite_v3/software/gadget/online_only/trunk/ software_suite_v3/software/gadget/online_only/trunk/gadget_1bc7a418-569d-3b72-3463-ebfe5eb1442e/ software_suite_v3/software/gadget/online_only/trunk/gadget_1bc7a418-569d-3b72-3463-ebfe5eb1442e/en.po software_suite_v3/software/gadget/online_only/trunk/gadget_1bc7a418-569d-3b72-3463-ebfe5eb1442e/en.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_1bc7a418-569d-3b72-3463-ebfe5eb1442e/fr.po software_suite_v3/software/gadget/online_only/trunk/gadget_1bc7a418-569d-3b72-3463-ebfe5eb1442e/fr.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_1bc7a418-569d-3b72-3463-ebfe5eb1442e/gadget.png software_suite_v3/software/gadget/online_only/trunk/gadget_1bc7a418-569d-3b72-3463-ebfe5eb1442e/gadget.pot software_suite_v3/software/gadget/online_only/trunk/gadget_1bc7a418-569d-3b72-3463-ebfe5eb1442e/gadget.xml software_suite_v3/software/gadget/online_only/trunk/gadget_1bc7a418-569d-3b72-3463-ebfe5eb1442e/help.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_1bc7a418-569d-3b72-3463-ebfe5eb1442e/nl.po software_suite_v3/software/gadget/online_only/trunk/gadget_1bc7a418-569d-3b72-3463-ebfe5eb1442e/nl.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_73b9a87c-1244-de8d-ef91-467db879e291/ software_suite_v3/software/gadget/online_only/trunk/gadget_73b9a87c-1244-de8d-ef91-467db879e291/en.po software_suite_v3/software/gadget/online_only/trunk/gadget_73b9a87c-1244-de8d-ef91-467db879e291/en.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_73b9a87c-1244-de8d-ef91-467db879e291/fr.po software_suite_v3/software/gadget/online_only/trunk/gadget_73b9a87c-1244-de8d-ef91-467db879e291/fr.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_73b9a87c-1244-de8d-ef91-467db879e291/gadget.png software_suite_v3/software/gadget/online_only/trunk/gadget_73b9a87c-1244-de8d-ef91-467db879e291/gadget.pot software_suite_v3/software/gadget/online_only/trunk/gadget_73b9a87c-1244-de8d-ef91-467db879e291/gadget.xml software_suite_v3/software/gadget/online_only/trunk/gadget_73b9a87c-1244-de8d-ef91-467db879e291/help.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_73b9a87c-1244-de8d-ef91-467db879e291/nl.po software_suite_v3/software/gadget/online_only/trunk/gadget_73b9a87c-1244-de8d-ef91-467db879e291/nl.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_7e336960-94ea-6d50-31f7-38655786cb51/ software_suite_v3/software/gadget/online_only/trunk/gadget_7e336960-94ea-6d50-31f7-38655786cb51/en.po software_suite_v3/software/gadget/online_only/trunk/gadget_7e336960-94ea-6d50-31f7-38655786cb51/en.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_7e336960-94ea-6d50-31f7-38655786cb51/fr.po software_suite_v3/software/gadget/online_only/trunk/gadget_7e336960-94ea-6d50-31f7-38655786cb51/fr.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_7e336960-94ea-6d50-31f7-38655786cb51/gadget.png software_suite_v3/software/gadget/online_only/trunk/gadget_7e336960-94ea-6d50-31f7-38655786cb51/gadget.pot software_suite_v3/software/gadget/online_only/trunk/gadget_7e336960-94ea-6d50-31f7-38655786cb51/gadget.xml software_suite_v3/software/gadget/online_only/trunk/gadget_7e336960-94ea-6d50-31f7-38655786cb51/help.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_7e336960-94ea-6d50-31f7-38655786cb51/nl.po software_suite_v3/software/gadget/online_only/trunk/gadget_7e336960-94ea-6d50-31f7-38655786cb51/nl.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_a11cd67a-4bae-bab6-d146-2429a97cd500/ software_suite_v3/software/gadget/online_only/trunk/gadget_a11cd67a-4bae-bab6-d146-2429a97cd500/en.po software_suite_v3/software/gadget/online_only/trunk/gadget_a11cd67a-4bae-bab6-d146-2429a97cd500/en.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_a11cd67a-4bae-bab6-d146-2429a97cd500/fr.po software_suite_v3/software/gadget/online_only/trunk/gadget_a11cd67a-4bae-bab6-d146-2429a97cd500/fr.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_a11cd67a-4bae-bab6-d146-2429a97cd500/gadget.png software_suite_v3/software/gadget/online_only/trunk/gadget_a11cd67a-4bae-bab6-d146-2429a97cd500/gadget.pot software_suite_v3/software/gadget/online_only/trunk/gadget_a11cd67a-4bae-bab6-d146-2429a97cd500/gadget.xml software_suite_v3/software/gadget/online_only/trunk/gadget_a11cd67a-4bae-bab6-d146-2429a97cd500/help.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_a11cd67a-4bae-bab6-d146-2429a97cd500/nl.po software_suite_v3/software/gadget/online_only/trunk/gadget_a11cd67a-4bae-bab6-d146-2429a97cd500/nl.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_ee51da83-f96e-e265-e432-d009b927e5bd/ software_suite_v3/software/gadget/online_only/trunk/gadget_ee51da83-f96e-e265-e432-d009b927e5bd/en.po software_suite_v3/software/gadget/online_only/trunk/gadget_ee51da83-f96e-e265-e432-d009b927e5bd/en.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_ee51da83-f96e-e265-e432-d009b927e5bd/fr.po software_suite_v3/software/gadget/online_only/trunk/gadget_ee51da83-f96e-e265-e432-d009b927e5bd/fr.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_ee51da83-f96e-e265-e432-d009b927e5bd/gadget.png software_suite_v3/software/gadget/online_only/trunk/gadget_ee51da83-f96e-e265-e432-d009b927e5bd/gadget.pot software_suite_v3/software/gadget/online_only/trunk/gadget_ee51da83-f96e-e265-e432-d009b927e5bd/gadget.xml software_suite_v3/software/gadget/online_only/trunk/gadget_ee51da83-f96e-e265-e432-d009b927e5bd/help.wiki software_suite_v3/software/gadget/online_only/trunk/gadget_ee51da83-f96e-e265-e432-d009b927e5bd/nl.po software_suite_v3/software/gadget/online_only/trunk/gadget_ee51da83-f96e-e265-e432-d009b927e5bd/nl.wiki Log: * Added deflated gadgets Added: software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/en.po =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/en.po (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/en.po 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,8 @@ +msgid "Clock" +msgstr "Clock" + +msgid "Clock." +msgstr "Clock." + +msgid "This gadget will notify you of the current time." +msgstr "This gadget will notify you of the current time." Added: software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/en.wiki =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/en.wiki (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/en.wiki 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,6 @@ += Help = +This gadget will notify you of the current time. + +In the configuration you can : +* Set an interval to make Tux Droid tell you the time automatically +* Specify an attitune to add introduction behavior for when Tux Droid will give the time \ No newline at end of file Added: software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/fr.po =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/fr.po (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/fr.po 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,8 @@ +msgid "Clock" +msgstr "Horloge" + +msgid "Clock." +msgstr "Horloge." + +msgid "This gadget will notify you of the current time." +msgstr "Ce gadget vous notifie l'heure." Added: software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/fr.wiki =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/fr.wiki (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/fr.wiki 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,6 @@ += Aide = +Ce gadget vous notifie l'heure. + +Dans la configuration vous pouvez: +* Indiquer un interval pour que Tux Droid vous donne l'heure automatiquement +* Spécifier une attitune pour introduire un comportement lorsque Tux Droid vous donne l'heure automatiquement. \ No newline at end of file Added: software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/gadget.png =================================================================== (Binary files differ) Property changes on: software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/gadget.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/gadget.pot =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/gadget.pot (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/gadget.pot 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,8 @@ +msgid "Clock" +msgstr "" + +msgid "Clock." +msgstr "" + +msgid "This gadget will notify you of the current time." +msgstr "" Added: software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/gadget.xml =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/gadget.xml (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/gadget.xml 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,38 @@ +<gadget> + <description> + <author>Kysoh</author> + <category>Misc</category> + <defaultLanguage>all</defaultLanguage> + <description>This gadget will notify you of the current time.</description> + <iconFile>gadget.png</iconFile> + <name>Clock</name> + <onDemandIsAble>true</onDemandIsAble> + <platform>all</platform> + <ttsName>Clock.</ttsName> + <uuid>0a58d901-309a-dd6a-e6e7-be691858f9f0</uuid> + <version>1.0</version> + </description> + <parameters> + <param_00> + <defaultValue>Ryan</defaultValue> + <name>locutor</name> + <visible>false</visible> + </param_00> + </parameters> + <parentPlugin> + <url>http://ftp.kysoh.com/</url> + <uuid>8349ed52-572d-4c3f-a7b8-05c2a8aec2c0</uuid> + <version>0.2.0</version> + </parentPlugin> + <tasks> + <task_00> + <activated>false</activated> + <date>0000/00/00</date> + <delay>00:15:00</delay> + <hoursBegin>00:00:00</hoursBegin> + <hoursEnd>23:59:00</hoursEnd> + <name>Start every x from full hour</name> + <weekMask>true,true,true,true,true,true,true</weekMask> + </task_00> + </tasks> +</gadget> Added: software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/help.wiki =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/help.wiki (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/help.wiki 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,6 @@ += Help = +This gadget will notify you of the current time. + +In the configuration you can : +* Set an interval to make Tux Droid tell you the time automatically +* Specify an attitune to add introduction behavior for when Tux Droid will give the time \ No newline at end of file Added: software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/nl.po =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/nl.po (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/nl.po 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,8 @@ +msgid "Clock" +msgstr "Klok" + +msgid "Clock." +msgstr "Klok." + +msgid "This gadget will notify you of the current time." +msgstr "Deze gadget geeft de tijd weer." \ No newline at end of file Added: software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/nl.wiki =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/nl.wiki (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_0a58d901-309a-dd6a-e6e7-be691858f9f0/nl.wiki 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,6 @@ += Help = +De klok gadget geeft de tijd weer. + +In de configuratie kan je aanpassen : +* Hoe vaak Tux Droid de tijd weergeeft +* Welke attitune de klokfunctie introduceert \ No newline at end of file Added: software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/en.po =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/en.po (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/en.po 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,8 @@ +msgid "Facebook" +msgstr "Facebook" + +msgid "Facebook." +msgstr "Facebook." + +msgid "The Facebook gadget will notify you of any updates on your Facebook account." +msgstr "The Facebook gadget will notify you of any updates on your Facebook account." Added: software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/en.wiki =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/en.wiki (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/en.wiki 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,13 @@ +== Help == +The Facebook gadget will make Tux Droid connect to your Facebook. +For more information about Facebook, visit http://www.facebook.com + +After entering your Facebook login and password you can customize several options : + +* Check number of messages : will give the number of private messages you received +* Check friend requests : will give the number and name of waiting friend requests +* Check group invites : will give the number and name of received group invites +* Check event invites : Will give the number and name of received event invites +* Check pokes : Will report the number of received pokes. +* Select an introduction attitune for when your Facebook account is checked automaticaly +* Choose to check your Facebook account automatically Added: software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/fr.po =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/fr.po (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/fr.po 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,8 @@ +msgid "Facebook" +msgstr "Facebook" + +msgid "Facebook." +msgstr "Facebook." + +msgid "The Facebook gadget will notify you of any updates on your Facebook account." +msgstr "Le gadget Facebook connectera Tux Droid à votre compte Facebook." Added: software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/fr.wiki =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/fr.wiki (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/fr.wiki 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,14 @@ += Aide = + Le gadget Facebook connectera Tux Droid à votre compte Facebook. + Pour plus d'informations à propos de Facebook, http://www.facebook.com + +Après avoir entré votre login Facebook et votre mote de passe vous pouvez configurer certaines options : + +* Vérifier le nombre de messages : Vous donnera le nombre de messages privés que vous avez reçus. +* Vérifier les invitations comme amis : Vous donnera le nombre de requêtes d'amis dont vous disposez +* Vérifier les invitations aux groupes : Vous donnera le nombre d'invitations aux groupes que l'on vous a envoyées. +* Vérifier les invitations aux évements : Vous donnera le nombres d'invitations à des évènements que l'on vous a envoyées. +* Vérifier les pokes : Vous donnera le nombre de pokes que l'on vous a envoyés. +* Sélectionner une attitune d'intrduction pour que votre compte Facebook soit vérifié automatiquement +* Choisir de vérifier automatiquement votre compte Facebook + \ No newline at end of file Added: software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/gadget.png =================================================================== (Binary files differ) Property changes on: software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/gadget.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/gadget.pot =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/gadget.pot (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/gadget.pot 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,8 @@ +msgid "Facebook" +msgstr "" + +msgid "Facebook." +msgstr "" + +msgid "The Facebook gadget will notify you of any updates on your Facebook account." +msgstr "" Added: software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/gadget.xml =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/gadget.xml (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/gadget.xml 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,73 @@ +<gadget> + <description> + <author>Kysoh</author> + <category>Misc</category> + <defaultLanguage>all</defaultLanguage> + <description>The Facebook gadget will notify you of any updates on your Facebook account.</description> + <iconFile>gadget.png</iconFile> + <name>Facebook</name> + <onDemandIsAble>true</onDemandIsAble> + <platform>windows</platform> + <ttsName>Facebook.</ttsName> + <uuid>2ba0fe92-c73f-61b5-50c5-d8de0aee9194</uuid> + <version>1.0</version> + </description> + <parameters> + <param_00> + <defaultValue>true</defaultValue> + <name>notifyEmail</name> + <visible>true</visible> + </param_00> + <param_01> + <defaultValue>true</defaultValue> + <name>showGroupsInvites</name> + <visible>true</visible> + </param_01> + <param_02> + <defaultValue>true</defaultValue> + <name>showFriendRequests</name> + <visible>true</visible> + </param_02> + <param_03> + <defaultValue>true</defaultValue> + <name>showPokes</name> + <visible>true</visible> + </param_03> + <param_04> + <defaultValue>true</defaultValue> + <name>showEventsInvites</name> + <visible>true</visible> + </param_04> + <param_05> + <defaultValue> </defaultValue> + <name>locutor</name> + <visible>false</visible> + </param_05> + <param_06> + <defaultValue>your login</defaultValue> + <name>login</name> + <visible>true</visible> + </param_06> + <param_07> + <defaultValue>your password</defaultValue> + <name>password</name> + <visible>true</visible> + </param_07> + </parameters> + <parentPlugin> + <url>http://ftp.kysoh.com/</url> + <uuid>1f0f6400-49ee-11de-8a39-0800200c9a66</uuid> + <version>1.0</version> + </parentPlugin> + <tasks> + <task_00> + <activated>false</activated> + <date>0000/00/00</date> + <delay>00:01:00</delay> + <hoursBegin>00:00:00</hoursBegin> + <hoursEnd>23:59:59</hoursEnd> + <name>Start every x</name> + <weekMask>true,true,true,true,true,true,true</weekMask> + </task_00> + </tasks> +</gadget> Added: software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/help.wiki =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/help.wiki (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/help.wiki 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,13 @@ +== Help == +The Facebook gadget will make Tux Droid connect to your Facebook. +For more information about Facebook, visit http://www.facebook.com + +After entering your Facebook login and password you can customize several options : + +* Check number of messages : will give the number of private messages you received +* Check friend requests : will give the number and name of waiting friend requests +* Check group invites : will give the number and name of received group invites +* Check event invites : Will give the number and name of received event invites +* Check pokes : Will report the number of received pokes. +* Select an introduction attitune for when your Facebook account is checked automaticaly +* Choose to check your Facebook account automatically \ No newline at end of file Added: software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/nl.po =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/nl.po (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/nl.po 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,8 @@ +msgid "Facebook" +msgstr "Facebook" + +msgid "Facebook." +msgstr "Feesboek." + +msgid "The Facebook gadget will notify you of any updates on your Facebook account." +msgstr "Met de Facebook gadget kan Tux Droid jouw facebook checken voor updates." Added: software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/nl.wiki =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/nl.wiki (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_2ba0fe92-c73f-61b5-50c5-d8de0aee9194/nl.wiki 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,13 @@ +== Help == +Met de Facebook gadget kan Tux Droid jouw Facebook account checken voor updates. +Voor meer informatie over Facebook, surf naar http://www.facebook.com + +Nadat je jouw Facebook login en wachtwoord hebt ingegeven kan je verschillende opties aanpassen : + +* Check aantal berichten : Zal het aantal binnengekomen privéberichten checken +* Check vriendschapsverzoeken : Zal het aantal vriendschapsverzoeken opvragen en de naam weergeven +* Check groepsuitnodigingen : Zal het aantal en de naam van de binnengekomen groepsuitnodigingen weergeven +* Check eventuitnodigingen : Zal het aantal en de de naam van uitnodiging voor een event weergeven +* Check porren : Zal het aantal ontvangen porren weergeven. +* Kies een introductie attitune voor wanneer de Facebook functie automatisch gestart wordt +* Kies of je jouw Facebook account automatisch wil laten checken \ No newline at end of file Added: software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/en.po =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/en.po (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/en.po 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,8 @@ +msgid "Twitter" +msgstr "Twitter" + +msgid "Twitter." +msgstr "Twitter." + +msgid "The Twitter plugin will make Tux Droid read your tweets from your Twitter account." +msgstr "The Twitter gadget will make Tux Droid read your tweets from your Twitter account." Added: software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/en.wiki =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/en.wiki (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/en.wiki 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,11 @@ += Help = +This gadget will read your Twitter messages. Not familiar with Twitter? Have a look at http://www.twitter.com + +After entering your Twitter login and password you can customize several options : +* Tweet your new status : Every time the gadget is started it will make a new tweet on your Twitter page. +* Tweet following status text : Here you can specify the text of the tweet for the above option. +* Maximum tweets to read : Select the number of most recent tweets Tux Droid has to read. +* Give replies sent between followers : Will make Tux Droid read the replies between followers. +* Give my messages/replies : Will make Tux Droid read your own messages and replies on Twitter. +* Choose an attitune to introduce the Twitter function when it is launched automatically +* Choose to check your Twitter account automatically \ No newline at end of file Added: software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/fr.po =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/fr.po (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/fr.po 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,8 @@ +msgid "Twitter" +msgstr "Twitter" + +msgid "Twitter." +msgstr "Twitter." + +msgid "The Twitter plugin will make Tux Droid read your tweets from your Twitter account." +msgstr "Le gadget Twitter permet à Tux Droid de lire vos tweets à partir de votre compte Twitter." Added: software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/fr.wiki =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/fr.wiki (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/fr.wiki 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,9 @@ += Aide = +Ce plugin va lire vos messages sur Twitter. Pas familier avec Twitter? Rendez-vous sur http://www.twitter.com + +Après avoir entré votre login Twitter et votre mot de passe, vous pourrez personnaliser quelques options : +* Publier un nouveau tweet : Chaque fois que le gadget est lancé, il ajoutera un nouveau tweet sur votre page. +* Tweet à ajouter : Ici, vous pouvez spécifier le texte du nouveau tweet à ajouter dans le cas ou l'option précédante est activée. +* Tweets maximum à lire : Selectionnez le nombre maximum de tweets que Tux Droid doit lire. +* Donner les réponses entre followers : Va autoriser Tux Droid à lire les réponses envoyées entre vos followers. +* Donner mes messages/réponses : Tux Droid lira vos messages et réponses sur Twitter. Added: software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/gadget.png =================================================================== (Binary files differ) Property changes on: software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/gadget.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/gadget.pot =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/gadget.pot (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/gadget.pot 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,8 @@ +msgid "Twitter" +msgstr "" + +msgid "Twitter." +msgstr "" + +msgid "The Twitter plugin will make Tux Droid read your tweets from your Twitter account." +msgstr "" Added: software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/gadget.xml =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/gadget.xml (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/gadget.xml 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,73 @@ +<gadget> + <description> + <author>Kysoh</author> + <category>Misc</category> + <defaultLanguage>all</defaultLanguage> + <description>The Twitter plugin will make Tux Droid read your tweets from your Twitter account.</description> + <iconFile>gadget.png</iconFile> + <name>Twitter</name> + <onDemandIsAble>true</onDemandIsAble> + <platform>all</platform> + <ttsName>Twitter.</ttsName> + <uuid>33b14aea-907e-9d9d-7e64-c40c3bbf56fb</uuid> + <version>2.0</version> + </description> + <parameters> + <param_00> + <defaultValue>your_user_name</defaultValue> + <name>username</name> + <visible>true</visible> + </param_00> + <param_01> + <defaultValue>10</defaultValue> + <name>maxRead</name> + <visible>true</visible> + </param_01> + <param_02> + <defaultValue> </defaultValue> + <name>locutor</name> + <visible>false</visible> + </param_02> + <param_03> + <defaultValue>true</defaultValue> + <name>giveMessages</name> + <visible>true</visible> + </param_03> + <param_04> + <defaultValue>true</defaultValue> + <name>giveOtherReplies</name> + <visible>true</visible> + </param_04> + <param_05> + <defaultValue>Hello all from my Tux Droid twitter gadget</defaultValue> + <name>myStatus</name> + <visible>true</visible> + </param_05> + <param_06> + <defaultValue>_secret_</defaultValue> + <name>password</name> + <visible>true</visible> + </param_06> + <param_07> + <defaultValue>true</defaultValue> + <name>updateStatus</name> + <visible>true</visible> + </param_07> + </parameters> + <parentPlugin> + <url>http://ftp.kysoh.com/</url> + <uuid>623afa3f-7ae3-43f9-b89b-bc5a8185b0cf</uuid> + <version>2.0</version> + </parentPlugin> + <tasks> + <task_00> + <activated>false</activated> + <date>0000/00/00</date> + <delay>00:01:00</delay> + <hoursBegin>00:00:00</hoursBegin> + <hoursEnd>23:59:59</hoursEnd> + <name>Start every x</name> + <weekMask>true,true,true,true,true,true,true</weekMask> + </task_00> + </tasks> +</gadget> Added: software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/help.wiki =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/help.wiki (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/help.wiki 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,11 @@ += Help = +This gadget will read your Twitter messages. Not familiar with Twitter? Have a look at http://www.twitter.com + +After entering your Twitter login and password you can customize several options : +* Tweet your new status : Every time the gadget is started it will make a new tweet on your Twitter page. +* Tweet following status text : Here you can specify the text of the tweet for the above option. +* Maximum tweets to read : Select the number of most recent tweets Tux Droid has to read. +* Give replies sent between followers : Will make Tux Droid read the replies between followers. +* Give my messages/replies : Will make Tux Droid read your own messages and replies on Twitter. +* Choose an attitune to introduce the Twitter function when it is launched automatically +* Choose to check your Twitter account automatically \ No newline at end of file Added: software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/nl.po =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/nl.po (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/nl.po 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,8 @@ +msgid "Twitter" +msgstr "Twitter" + +msgid "Twitter." +msgstr "Twitter." + +msgid "The Twitter plugin will make Tux Droid read your tweets from your Twitter account." +msgstr "De Twitter gadget zal Tux Droid je tweets doen lezen van je Twitter account." Added: software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/nl.wiki =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/nl.wiki (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_33b14aea-907e-9d9d-7e64-c40c3bbf56fb/nl.wiki 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,11 @@ += Help = +Deze gadget zal jouw Twitter berichten lezen. Nog nooit van Twitter gehoord? Neem een kijkje op http://www.twitter.com + +Nadat je jouw Twitter login en wachtwoord hebt ingegeven kan je verschillende opties aanpassen : +* Tweet jouw nieuwe status : Telkens de gadget start zal het een nieuwe tweet maken op jouw Twitter pagina. +* Tweet volgende status tekst : Hier kan je de tekst aanpassen van de tweet van de vorige optie. +* Maximum te lezen tweets: Selecteer het aantal meest recente tweets dat Tux Droid moet lezen. +* Geef de antwoorden weer tussen followers : Zal Tux Droid de replieken doen lezen tussen jouw followers. +* Geef mijn berichten/antwoorden weer : Zal Tux Droid jouw eigen berichten en replieken op Twitter doen lezen. +* Kies een introductie attitune voor waneer de Twitter functie automatisch gestart wordt +* Kies of je jouw Twitter account automatisch wil laten checken \ No newline at end of file Added: software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/en.po =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/en.po (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/en.po 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,8 @@ +msgid "Skype" +msgstr "Skype" + +msgid "Skype." +msgstr "Skype." + +msgid "This gadget controls skype application" +msgstr "With this gadget you can use Tux Droid as a Skype phone." Added: software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/en.wiki =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/en.wiki (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/en.wiki 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,15 @@ += Help = +Use Tux Droid to make Skype calls with the Skype gadget. Please note you can only make calls and not receive any with this gadget version. If you are not familiar with Skype you can find the software and information here: http://www.skype.com + +If you see a popup window with "Python.exe wants to use Skype" just click "Allow access". + +To make a Skype call with the remote control : +* Down/up arrow button : Go to the next/previous contact in the Skype contact list +* Ok button or green phone button : to call the currently selected contact +* Ok button again or red phone button while calling : to end the call + +To make a Skype call with Tux Droid : +* Left/Rright wing : Go to the next/previous contact in the Skype contact list +* Head button : to call the currently selected contact +* Head button while calling : to end the call +* Select "Quit Skype" from your Skype contact list: To quit the Skype gadget Added: software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/fr.po =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/fr.po (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/fr.po 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,8 @@ +msgid "Skype" +msgstr "Skype" + +msgid "Skype." +msgstr "Skype." + +msgid "This gadget controls skype application" +msgstr "Avec ce gadget vous pouvez utiliser Tux Droid en tant que téléphone Skype." Added: software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/fr.wiki =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/fr.wiki (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/fr.wiki 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,18 @@ += Aide = +Utiliser Tux Droid pour passer des appels Skype. Notez qu'avec cette version du gadget vous pouvez uniquement passer des appels. +Si vous n'êtes pas familer avec Skype, vous pouvez trouvez le logiciel et des informations sur http://www.skype.com + +Si vous voyez une fenêtre de confirmation "Python.exe veut utiliser Skype" veuillez valider l'accès grace au bouton "Autoriser l'accès". + +Pour passer un appel avec la télécommande : +* Bouton flèche bas/haut : Aller au contact suivant/précédant dans la liste des contacts Skype +* Bouton Ok ou bouton d'appel (en vert) : Appeler le contact sélectionné +* Bouton Ok ou bouton raccrocher (en rouge) lors d'un appel : Terminer l'appel + +Pour passer un appel avec Tux Droid : +* Aile gauche/droite : Aller au contact suivant/précédant dans la liste des contacts Skype +* Bouton de tête : Appeler le contact sélectionné +* Bouton de tête lors d'un appel : Terminer l'appel + +Pour quitter le gadget Skype : +* Sélectionner le contact "Quitter le gadget" puis appuyer sur le bouton Ok de la télécommande ou sur le bouton de tête de Tux Droid Added: software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/gadget.png =================================================================== (Binary files differ) Property changes on: software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/gadget.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/gadget.pot =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/gadget.pot (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/gadget.pot 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,8 @@ +msgid "Skype" +msgstr "" + +msgid "Skype." +msgstr "" + +msgid "This gadget controls skype application" +msgstr "" Added: software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/gadget.xml =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/gadget.xml (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/gadget.xml 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,39 @@ +<gadget> + <description> + <author>Kysoh</author> + <category>Misc</category> + <defaultLanguage>all</defaultLanguage> + <description>This gadget controls skype application</description> + <iconFile>gadget.png</iconFile> + <name>Skype</name> + <onDemandIsAble>true</onDemandIsAble> + <platform>all</platform> + <ttsName>Skype.</ttsName> + <uuid>4e139371-e72a-5df7-c272-17d22f1fc258</uuid> + <version>0.0.3</version> + </description> + <parameters> + <param_00> + <defaultValue>Keep my current status</defaultValue> + <name>startupStatus</name> + <visible>false</visible> + </param_00> + <param_01> + <defaultValue> </defaultValue> + <name>locutor</name> + <visible>false</visible> + </param_01> + <param_02> + <defaultValue>true</defaultValue> + <name>quitGadget</name> + <visible>false</visible> + </param_02> + </parameters> + <parentPlugin> + <url>http://ftp.kysoh.com/</url> + <uuid>8349ed52-572d-4c3f-a7b8-f6d4a5ae2c0</uuid> + <version>0.0.3</version> + </parentPlugin> + <tasks> + </tasks> +</gadget> Added: software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/help.wiki =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/help.wiki (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/help.wiki 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,15 @@ += Help = +Use Tux Droid to make Skype calls with the Skype gadget. Please note you can only make calls and not receive any with this gadget version. If you are not familiar with Skype you can find the software and information here: http://www.skype.com + +If you see a popup window with "Python.exe wants to use Skype" just click "Allow access". + +To make a Skype call with the remote control : +* Down/up arrow button : Go to the next/previous contact in the Skype contact list +* Ok button or green phone button : to call the currently selected contact +* Ok button again or red phone button while calling : to end the call + +To make a Skype call with Tux Droid : +* Left/Rright wing : Go to the next/previous contact in the Skype contact list +* Head button : to call the currently selected contact +* Head button while calling : to end the call +* Select "Quit Skype" from your Skype contact list: To quit the Skype gadget Added: software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/nl.po =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/nl.po (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/nl.po 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,8 @@ +msgid "Skype" +msgstr "Skype" + +msgid "Skype." +msgstr "Skype." + +msgid "This gadget controls skype application" +msgstr "Met deze gadget kan je Tux Droid gebruiken als een Skype telefoon." Added: software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/nl.wiki =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/nl.wiki (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_4e139371-e72a-5df7-c272-17d22f1fc258/nl.wiki 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,16 @@ += Help = +Verander Tux Droid in een Skype telefoon. Merk op dat je enkel gesprekken kunt starten en geen ontvangen met de huidige versie van de gadget. +Indien je nog nooit gehoord hebt van Skype dan kan je de software en meer info hier vinden: www.skype.com + +Als je een popup venster ziet met "Python.exe will Skype gebruiken", klik dan op "Toegang toestaan". + +Om met Skype te bellen via de afstandsbediening : +* Pijl omhoog/omlaag knop : Ga naar het volgende/vorige contact in de Skype lijst +* Ok knop of knop met de groene telefoon : bel de huidige geslecteerde contactpersoon op +* Ok knop opnieuw of de knop met de rode telefoon tijdens het gesprek : Om het Skype gesprek te beëindigen + +Om met Skype te bellen via Tux Droid : +* Linker/rechter vleugel : Ga naar het volgende/vorige contact in de Skype lijst +* Hoofd knop : bel de huidige geslecteerde contactpersoon op +* Hoofd knop tijdens het gesprek : Beëindigt het Skype gesprek +* Selecteer "Stop Skype" in de Skype contactlijst om de gadget te verlaten \ No newline at end of file Added: software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/en.po =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/en.po (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/en.po 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,8 @@ +msgid "MSN" +msgstr "MSN" + +msgid "MSN." +msgstr "MSN." + +msgid "This gadget makes Tux Droid react to emoticons in MSN." +msgstr "This gadget makes Tux Droid react to emoticons in MSN." Added: software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/en.wiki =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/en.wiki (rev 0) +++ software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/en.wiki 2009-08-04 11:58:18 UTC (rev 5275) @@ -0,0 +1,4 @@ += Help = +This gadget makes Tux Droid react to emoticons in MSN. + +In the configuration you can activate or deactivate this function. \ No newline at end of file Added: software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/fr.po =================================================================== --- software_suite_v3/software/gadget/default/trunk/gadget_56cdb050-3bba-d814-32c5-df4b90fee8c3/fr.po ... [truncated message content] |
|
From: remi <c2m...@c2...> - 2009-08-03 09:20:39
|
Author: remi
Date: 2009-08-03 11:20:24 +0200 (Mon, 03 Aug 2009)
New Revision: 5274
Modified:
software_suite_v3/smart-core/smart-server/trunk/resources/07_web_interfaces/01_resourceWIUser01.py
Log:
* Updated battery thresholds for middle and full levels
Modified: software_suite_v3/smart-core/smart-server/trunk/resources/07_web_interfaces/01_resourceWIUser01.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/resources/07_web_interfaces/01_resourceWIUser01.py 2009-08-01 13:09:43 UTC (rev 5273)
+++ software_suite_v3/smart-core/smart-server/trunk/resources/07_web_interfaces/01_resourceWIUser01.py 2009-08-03 09:20:24 UTC (rev 5274)
@@ -44,12 +44,12 @@
if state == None:
batteryState = "nodongle"
else:
- rndVal = int(state[0] / 333) * 333
- if rndVal < 4995:
+ battVal = state[0]
+ if battVal < 4995:
batteryState = "empty"
- elif (rndVal >= 4995) and (rndVal <= 5328):
+ elif (battVal >= 4995) and (battVal <= 5128):
batteryState = "low"
- elif (rndVal > 5328) and (rndVal <= 5661):
+ elif (battVal > 5128) and (battVal <= 5461):
batteryState = "middle"
else:
batteryState = "high"
|
|
From: remi <c2m...@c2...> - 2009-08-01 13:09:54
|
Author: remi Date: 2009-08-01 15:09:43 +0200 (Sat, 01 Aug 2009) New Revision: 5273 Modified: software_suite_v3/software/tool/tool-about-tux/trunk/resources/icon.png Log: * Updated TuxBox about icon (Same as the TuxBox Webbrowser) Modified: software_suite_v3/software/tool/tool-about-tux/trunk/resources/icon.png =================================================================== (Binary files differ) |
|
From: remi <c2m...@c2...> - 2009-08-01 12:57:57
|
Author: remi
Date: 2009-08-01 14:57:46 +0200 (Sat, 01 Aug 2009)
New Revision: 5272
Modified:
software_suite_v3/smart-core/smart-server/trunk/installer.nsi
software_suite_v3/smart-core/smart-server/trunk/version.py
Log:
* Updated Smart-Server trunk version to 0.4.2-b0
Modified: software_suite_v3/smart-core/smart-server/trunk/installer.nsi
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/installer.nsi 2009-08-01 12:55:42 UTC (rev 5271)
+++ software_suite_v3/smart-core/smart-server/trunk/installer.nsi 2009-08-01 12:57:46 UTC (rev 5272)
@@ -4,7 +4,7 @@
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "Smart Server"
-!define PRODUCT_VERSION "0.4.1-b11"
+!define PRODUCT_VERSION "0.4.2-b0"
; Output names
!define FINAL_INSTALLER_EXE "SmartServerInstaller_${PRODUCT_VERSION}.exe"
Modified: software_suite_v3/smart-core/smart-server/trunk/version.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/version.py 2009-08-01 12:55:42 UTC (rev 5271)
+++ software_suite_v3/smart-core/smart-server/trunk/version.py 2009-08-01 12:57:46 UTC (rev 5272)
@@ -7,7 +7,7 @@
# Distributed under the terms of the GNU General Public License
# http://www.gnu.org/copyleft/gpl.html
-version = '0.4.1-b11'
+version = '0.4.2-b0'
author = "Remi Jocaille (rem...@c2...)"
licence = "GPL"
date = "2009"
|
|
From: remi <c2m...@c2...> - 2009-08-01 12:55:54
|
Author: remi Date: 2009-08-01 14:55:42 +0200 (Sat, 01 Aug 2009) New Revision: 5271 Added: software_suite_v3/smart-core/smart-server/tags/0.4.1/ Log: * Tagged smart-server to 0.4.1 Copied: software_suite_v3/smart-core/smart-server/tags/0.4.1 (from rev 5270, software_suite_v3/smart-core/smart-server/trunk) |
|
From: remi <c2m...@c2...> - 2009-08-01 12:54:55
|
Author: remi
Date: 2009-08-01 14:54:38 +0200 (Sat, 01 Aug 2009)
New Revision: 5270
Modified:
software_suite_v3/smart-core/smart-server/trunk/installer.nsi
software_suite_v3/smart-core/smart-server/trunk/version.py
Log:
* Updated version to 0.4.1-b11
* Automatic relaunch of TuxBox after the installation
Modified: software_suite_v3/smart-core/smart-server/trunk/installer.nsi
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/installer.nsi 2009-08-01 12:36:09 UTC (rev 5269)
+++ software_suite_v3/smart-core/smart-server/trunk/installer.nsi 2009-08-01 12:54:38 UTC (rev 5270)
@@ -4,7 +4,7 @@
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "Smart Server"
-!define PRODUCT_VERSION "0.4.1-b10"
+!define PRODUCT_VERSION "0.4.1-b11"
; Output names
!define FINAL_INSTALLER_EXE "SmartServerInstaller_${PRODUCT_VERSION}.exe"
@@ -107,7 +107,7 @@
Pop $2
StrCmp $2 "true" start pass
start:
- Exec "$TUXDROID_PATH\bin\smart_server_start.exe"
+ Exec "$TUXDROID_PATH\bin\tuxbox_launcher.exe"
pass:
Return
SectionEnd
Modified: software_suite_v3/smart-core/smart-server/trunk/version.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/version.py 2009-08-01 12:36:09 UTC (rev 5269)
+++ software_suite_v3/smart-core/smart-server/trunk/version.py 2009-08-01 12:54:38 UTC (rev 5270)
@@ -7,7 +7,7 @@
# Distributed under the terms of the GNU General Public License
# http://www.gnu.org/copyleft/gpl.html
-version = '0.4.1-b10'
+version = '0.4.1-b11'
author = "Remi Jocaille (rem...@c2...)"
licence = "GPL"
date = "2009"
|
|
From: remi <c2m...@c2...> - 2009-08-01 12:36:21
|
Author: remi
Date: 2009-08-01 14:36:09 +0200 (Sat, 01 Aug 2009)
New Revision: 5269
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py
Log:
* "onDemandIsActivated" attribute could not be found in some cases.
Modified: software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py 2009-08-01 12:19:39 UTC (rev 5268)
+++ software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py 2009-08-01 12:36:09 UTC (rev 5269)
@@ -678,11 +678,14 @@
else:
ugcDataDict['alertAttitune'] = "----"
# Description
+ onDemandIsActivated = "false"
+ if tmpDataDict['description'].has_key('onDemandIsActivated'):
+ onDemandIsActivated = tmpDataDict['description']['onDemandIsActivated']
ugcDataDict['description'] = {
'uuid' : ugcUuid,
'name' : ugcName,
'ttsName' : ugcTtsName,
- 'onDemandIsActivated' : tmpDataDict['description']['onDemandIsActivated'],
+ 'onDemandIsActivated' : onDemandIsActivated,
}
# Parameters
ugcDataDict['parameters'] = tmpDataDict['parameters']
|
|
From: remi <c2m...@c2...> - 2009-08-01 12:20:39
|
Author: remi
Date: 2009-08-01 14:19:39 +0200 (Sat, 01 Aug 2009)
New Revision: 5268
Modified:
software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/02_resourceGagdetsServer.py
Log:
* Fixed a bug with a wrong method name
Modified: software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/02_resourceGagdetsServer.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/02_resourceGagdetsServer.py 2009-08-01 12:04:29 UTC (rev 5267)
+++ software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/02_resourceGagdetsServer.py 2009-08-01 12:19:39 UTC (rev 5268)
@@ -181,7 +181,7 @@
filesCacheManager.destroyFileCache(cFile)
self.__gadgetsContainer.check()
resourceUgcServer.createUgcFromGWC()
- resourceUgcServer.getUgcContainer().updateParentGadgetsPtr()
+ resourceUgcServer.getUgcContainer().updateParentGadgets()
return result
def insertTemporaryServerGadgetInContainer(self, scgUrl):
|
|
From: remi <c2m...@c2...> - 2009-08-01 12:04:42
|
Author: remi
Date: 2009-08-01 14:04:29 +0200 (Sat, 01 Aug 2009)
New Revision: 5267
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/scheduler/Scheduler.py
Log:
* Removed a debug print
Modified: software_suite_v3/smart-core/smart-server/trunk/util/scheduler/Scheduler.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/util/scheduler/Scheduler.py 2009-08-01 12:02:07 UTC (rev 5266)
+++ software_suite_v3/smart-core/smart-server/trunk/util/scheduler/Scheduler.py 2009-08-01 12:04:29 UTC (rev 5267)
@@ -453,7 +453,6 @@
tasksToAdd.append([nextTime, taskInfo[TASK_OBJECT],
taskInfo[TASK_ID], taskInfo[TASK_NAME]])
else:
- print "!! TASK Timeout"
tasksFinished.append(taskInfo[TASK_OBJECT])
for taskInfo in tasksToRemove:
self.__tasksToExecuteStack.remove(taskInfo)
|
|
From: remi <c2m...@c2...> - 2009-08-01 12:02:21
|
Author: remi
Date: 2009-08-01 14:02:07 +0200 (Sat, 01 Aug 2009)
New Revision: 5266
Modified:
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
Log:
* Added a debug message.
* Updated the way to know if a new alert is the same as a previously stacked one.
Modified: software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py 2009-08-01 11:59:59 UTC (rev 5265)
+++ software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py 2009-08-01 12:02:07 UTC (rev 5266)
@@ -171,6 +171,7 @@
expirationDelay = self.getPluginCommand().getExpirationDelay()
if expirationDelay > 0:
if (time.time() - self.__createTime) > expirationDelay:
+ print "PGU context [%s] : Execution aborted (Context expiration)" % self.getPguName()
return
self.__startStopPauseMutex.acquire()
self.__execStarted = True
@@ -716,8 +717,9 @@
(not pguContext.isDaemon()):
self.__pguContextsMutex.acquire()
for i, regPguContext in enumerate(self.__pguContexts):
- if regPguContext.getPluginCommand() == pguContext.getPluginCommand():
- # Replace the context with the same plugin command.
+ if regPguContext.getPguName() == pguContext.getPguName():
+ # Replace the context with the same pgu name.
+ print "PGU context [%s] updated in stack" % pguContext.getPguName()
self.__pguContexts[i] = pguContext
self.__pguContextsMutex.release()
self.__ugcInsertionMutex.release()
|
|
From: JDM <c2m...@c2...> - 2009-08-01 12:00:21
|
Author: JDM
Date: 2009-08-01 13:59:59 +0200 (Sat, 01 Aug 2009)
New Revision: 5265
Modified:
software_suite_v3/smart-core/smart-api/cpp/API/TuxAPI.c
software_suite_v3/smart-core/smart-api/cpp/API/TuxAPI.h
Log:
* Moved getStatus for getStatusStr (for status in string)
* Added getStatusInt for get the status directly in integer
* Added getStatusDbl for get the status directly in double
Modified: software_suite_v3/smart-core/smart-api/cpp/API/TuxAPI.c
===================================================================
--- software_suite_v3/smart-core/smart-api/cpp/API/TuxAPI.c 2009-08-01 11:58:11 UTC (rev 5264)
+++ software_suite_v3/smart-core/smart-api/cpp/API/TuxAPI.c 2009-08-01 11:59:59 UTC (rev 5265)
@@ -644,11 +644,21 @@
WavControl(CLIENT_LEVEL_FREE, WAV_STOP, "");
}
- string TuxAPI::getStatus(TuxAPI_STATUS_REQUESTED status)
+ string TuxAPI::getStatusStr(TuxAPI_STATUS_REQUESTED status)
{
return getRawStatus(CLIENT_LEVEL_FREE, status);
}
+ int TuxAPI::getStatusInt(TuxAPI_STATUS_REQUESTED status)
+ {
+ return atoi(getRawStatus(CLIENT_LEVEL_FREE, status).c_str());
+ }
+
+ double TuxAPI::getStatusDbl(TuxAPI_STATUS_REQUESTED status)
+ {
+ return strtodbl(getRawStatus(CLIENT_LEVEL_FREE, status));
+ }
+
double strtodbl( const std::string& s )
{
std::istringstream i(s);
Modified: software_suite_v3/smart-core/smart-api/cpp/API/TuxAPI.h
===================================================================
--- software_suite_v3/smart-core/smart-api/cpp/API/TuxAPI.h 2009-08-01 11:58:11 UTC (rev 5264)
+++ software_suite_v3/smart-core/smart-api/cpp/API/TuxAPI.h 2009-08-01 11:59:59 UTC (rev 5265)
@@ -246,6 +246,8 @@
void PlayWav(char *sound);
void StopWav(void);
- string getStatus(TuxAPI_STATUS_REQUESTED status);
+ string getStatusStr(TuxAPI_STATUS_REQUESTED status);
+ int getStatusInt(TuxAPI_STATUS_REQUESTED status);
+ double getStatusDbl(TuxAPI_STATUS_REQUESTED status);
};
}
|
|
From: remi <c2m...@c2...> - 2009-08-01 11:58:32
|
Author: remi
Date: 2009-08-01 13:58:11 +0200 (Sat, 01 Aug 2009)
New Revision: 5264
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/logger/SimpleLogger.py
Log:
* Fixed a possible file IO error
Modified: software_suite_v3/smart-core/smart-server/trunk/util/logger/SimpleLogger.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/util/logger/SimpleLogger.py 2009-08-01 11:57:35 UTC (rev 5263)
+++ software_suite_v3/smart-core/smart-server/trunk/util/logger/SimpleLogger.py 2009-08-01 11:58:11 UTC (rev 5264)
@@ -121,9 +121,14 @@
if self.__target in [LOG_TARGET_FILE, LOG_TARGET_BOTH]:
if os.path.isfile(self.__logFileName):
self.__logMutex.acquire()
- f = open(self.__logFileName, 'a')
- f.write(message + "\n")
- f.close()
+ try:
+ f = open(self.__logFileName, 'a')
+ try:
+ f.write(message + "\n")
+ finally:
+ f.close()
+ except:
+ pass
self.__logMutex.release()
if self.__target in [LOG_TARGET_SHELL, LOG_TARGET_BOTH]:
print message
|
|
From: remi <c2m...@c2...> - 2009-08-01 11:57:54
|
Author: remi
Date: 2009-08-01 13:57:35 +0200 (Sat, 01 Aug 2009)
New Revision: 5263
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/scheduler/Scheduler.py
Log:
* Fixed a time derivation in the scheduler
Modified: software_suite_v3/smart-core/smart-server/trunk/util/scheduler/Scheduler.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/util/scheduler/Scheduler.py 2009-08-01 11:56:51 UTC (rev 5262)
+++ software_suite_v3/smart-core/smart-server/trunk/util/scheduler/Scheduler.py 2009-08-01 11:57:35 UTC (rev 5263)
@@ -449,11 +449,11 @@
diff = now - taskInfo[TASK_NEXT_TIME]
if diff.seconds <= 30:
taskInfo[TASK_OBJECT].execute(self.__appGlobals)
- time.sleep(1.0)
if nextTime != None:
tasksToAdd.append([nextTime, taskInfo[TASK_OBJECT],
taskInfo[TASK_ID], taskInfo[TASK_NAME]])
else:
+ print "!! TASK Timeout"
tasksFinished.append(taskInfo[TASK_OBJECT])
for taskInfo in tasksToRemove:
self.__tasksToExecuteStack.remove(taskInfo)
@@ -467,5 +467,5 @@
self.storeTasks()
if self.__onTasksLoadedCallback != None:
self.__onTasksLoadedCallback()
- time.sleep(1.0)
+ time.sleep(0.5)
self.__setTasksLoaded(False)
|
|
From: remi <c2m...@c2...> - 2009-08-01 11:57:03
|
Author: remi
Date: 2009-08-01 13:56:51 +0200 (Sat, 01 Aug 2009)
New Revision: 5262
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/scheduler/Task.py
Log:
* Removed an unneeded variable
Modified: software_suite_v3/smart-core/smart-server/trunk/util/scheduler/Task.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/util/scheduler/Task.py 2009-08-01 11:53:46 UTC (rev 5261)
+++ software_suite_v3/smart-core/smart-server/trunk/util/scheduler/Task.py 2009-08-01 11:56:51 UTC (rev 5262)
@@ -184,7 +184,6 @@
@return: The datetime value of the next execution.
"""
result = None
- now = datetime.datetime.now()
if self.__description.getType() == SCH_LOOP_ABS:
if self.__lastExecuteTime == None:
result = self.__startTime + self.__incrementTime
|
|
From: remi <c2m...@c2...> - 2009-08-01 11:54:05
|
Author: remi Date: 2009-08-01 13:53:46 +0200 (Sat, 01 Aug 2009) New Revision: 5261 Modified: software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/plugin/interpreters/PluginInterpreter.py Log: * Fixed bug with subprocess.Popen (This module have a not safe-thread data access "http://mail.python.org/pipermail/python-bugs-list/2006-March/032626.html") * Fixed a not released PIPE's bug. (tracker ticket : #178 ?\226?\128?\148 Tuxbox gadgets function freeze over time ) Modified: software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/plugin/interpreters/PluginInterpreter.py =================================================================== --- software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/plugin/interpreters/PluginInterpreter.py 2009-07-31 21:05:11 UTC (rev 5260) +++ software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/plugin/interpreters/PluginInterpreter.py 2009-08-01 11:53:46 UTC (rev 5261) @@ -183,18 +183,18 @@ if self.__daemon: shellEnv['tgp_daemon'] = 'true' shellCwd = self.__workingPath - try: - self.__process = subprocess.Popen( - shellCommand, - stdin = subprocess.PIPE, - stdout = subprocess.PIPE, - stderr = subprocess.STDOUT, - cwd = self.__workingPath, - env = self.__shellEnv) - except: - self.__setRun(False) - self.__workMutex.release() - return + while True: + try: + self.__process = subprocess.Popen( + shellCommand, + stdin = subprocess.PIPE, + stdout = subprocess.PIPE, + stderr = subprocess.STDOUT, + cwd = self.__workingPath, + env = self.__shellEnv) + break + except: + time.sleep(0.1) if os.name == 'nt': self.__pid = self.__process._handle else: @@ -300,3 +300,15 @@ if self.__onNotificationThrowedCallback != None: self.__onNotificationThrowedCallback(messageId, *args) + if self.__process != None: + # Close PIPE's + try: + if self.__process.stdin != None: + self.__process.stdin.close() + except: + pass + try: + if self.__process.stdout != None: + self.__process.stdout.close() + except: + pass |
|
From: JDM <c2m...@c2...> - 2009-07-31 21:05:29
|
Author: JDM Date: 2009-07-31 23:05:11 +0200 (Fri, 31 Jul 2009) New Revision: 5260 Modified: software_suite_v3/smart-core/smart-api/cpp/API/TuxAPI.c software_suite_v3/smart-core/smart-api/cpp/API/TuxAPI.h Log: * Added namespace TuxDroid for C++ API Modified: software_suite_v3/smart-core/smart-api/cpp/API/TuxAPI.c =================================================================== --- software_suite_v3/smart-core/smart-api/cpp/API/TuxAPI.c 2009-07-31 14:47:05 UTC (rev 5259) +++ software_suite_v3/smart-core/smart-api/cpp/API/TuxAPI.c 2009-07-31 21:05:11 UTC (rev 5260) @@ -34,7 +34,7 @@ * * ==================================================== * - * More informations about the C++ API: http://bbs.tuxisalive.com/viewtopic.php?pid=678 + * More informations about the C++ API: http://bbs.tuxisalive.com/viewtopic.php?pid=678#p678 * * */ @@ -42,603 +42,619 @@ #include <iostream> #include <string.h> #include <vector> +#include <sstream> //string_to_double(); #include "TuxAPI.h" using namespace std; -string ReplaceAllG(string strSrc, string strSearch, string strReplace){ - size_t start, end = 0, sizeSearch = strSearch.size(); - while((start = strSrc.find(strSearch, end))!=string::npos){ - end = start + sizeSearch; - strSrc.replace(start, sizeSearch, strReplace); - } - return strSrc; -} -TuxAPI::TuxAPI(void) +namespace TuxDroid { -} - -//Interaction with the TuxHttp server -string TuxAPI::doUrlAction(TuxAPI_LEVEL level, string url) -{ - -#ifdef WIN32 - WSADATA WSAData; - WSAStartup(MAKEWORD(2,0), &WSAData); - - SOCKET sock; - SOCKADDR_IN sin; -#else - int sock; - struct sockaddr_in sin; -#endif - - char buffer[1024]; - - string srequete = "GET /"; - - switch(level) + string ReplaceAllG(string strSrc, string strSearch, string strReplace) { - case CLIENT_LEVEL_ANONYME: srequete += "-1"; - break; - case CLIENT_LEVEL_FREE: srequete += "0"; - break; - case CLIENT_LEVEL_RESTRICTED: srequete += "1"; - break; - case CLIENT_LEVEL_ROOT: srequete += "2"; - break; + size_t start, end = 0, sizeSearch = strSearch.size(); + while((start = strSrc.find(strSearch, end))!=string::npos) + { + end = start + sizeSearch; + strSrc.replace(start, sizeSearch, strReplace); + } + return strSrc; } + TuxAPI::TuxAPI(void) + { + } - srequete += url; - srequete += " HTTP/1.1\r\n"; - srequete += "\r\n"; + //Interaction with the TuxHttp server + string TuxAPI::doUrlAction(TuxAPI_LEVEL level, string url) + { + + #ifdef WIN32 + WSADATA WSAData; + WSAStartup(MAKEWORD(2,0), &WSAData); - //cout << srequete << endl; + SOCKET sock; + SOCKADDR_IN sin; + #else + int sock; + struct sockaddr_in sin; + #endif + + char buffer[1024]; + + string srequete = "GET /"; - size_t requete_taille = srequete.size() + 1; - - char crequete[requete_taille]; - strncpy( crequete, srequete.c_str(), requete_taille ); - - int i = 0; - string source = ""; - - sock = socket(AF_INET, SOCK_STREAM, 0); - - sin.sin_addr.s_addr = inet_addr("127.0.0.1"); - sin.sin_port = 270; - sin.sin_family = AF_INET; - sin.sin_port = htons(270); - -#ifdef WIN32 - connect(sock, (SOCKADDR *)&sin, sizeof(sin)); // on se connecte sur le site web. -#else - connect(sock, (struct sockaddr *)&sin, sizeof(sin)); -#endif - - send(sock, crequete, strlen(crequete), 0); // on envoie la requ HTTP. - - do + switch(level) + { + case CLIENT_LEVEL_ANONYME: srequete += "-1"; + break; + case CLIENT_LEVEL_FREE: srequete += "0"; + break; + case CLIENT_LEVEL_RESTRICTED: srequete += "1"; + break; + case CLIENT_LEVEL_ROOT: srequete += "2"; + break; + } + + + srequete += url; + srequete += " HTTP/1.1\r\n"; + srequete += "\r\n"; + + //cout << srequete << endl; + + size_t requete_taille = srequete.size() + 1; + + char crequete[requete_taille]; + strncpy( crequete, srequete.c_str(), requete_taille ); + + int i = 0; + string source = ""; + + sock = socket(AF_INET, SOCK_STREAM, 0); + + sin.sin_addr.s_addr = inet_addr("127.0.0.1"); + sin.sin_port = 270; + sin.sin_family = AF_INET; + sin.sin_port = htons(270); + + #ifdef WIN32 + connect(sock, (SOCKADDR *)&sin, sizeof(sin)); // on se connecte sur le site web. + #else + connect(sock, (struct sockaddr *)&sin, sizeof(sin)); + #endif + + send(sock, crequete, strlen(crequete), 0); // on envoie la requ HTTP. + + do + { + i = recv(sock, buffer, sizeof(buffer), 0); // le buffer rp les donn res. + source += buffer; + } while (i != 0); + + #ifdef WIN32 + closesocket(sock); // on ferme le socket. + WSACleanup(); + #else + close(sock); + #endif + + return source; + } + + //Allow tux do an action with his motors + void TuxAPI::doMotorAction(TuxAPI_LEVEL level, TuxAPI_ACTION action) { - i = recv(sock, buffer, sizeof(buffer), 0); // le buffer rp les donn res. - source += buffer; - } while (i != 0); - -#ifdef WIN32 - closesocket(sock); // on ferme le socket. - WSACleanup(); -#else - close(sock); -#endif - - return source; -} - -//Allow tux do an action with his motors -void TuxAPI::doMotorAction(TuxAPI_LEVEL level, TuxAPI_ACTION action) -{ - switch(action) - { - case FLIPPERS_UP: doUrlAction(level, "/flippers/up?"); - break; - case FLIPPERS_DOWN: doUrlAction(level, "/flippers/down?"); - break; - case MOUTH_OPEN: doUrlAction(level, "/mouth/open?"); - break; - case MOUTH_CLOSE: doUrlAction(level, "/mouth/close?"); - break; - case EYES_OPEN: doUrlAction(level, "/eyes/open?"); - break; - case EYES_CLOSE: doUrlAction(level, "/eyes/close?"); - break; - } -} - -//Allow rotate Tux left/right -void TuxAPI::DoRotorAction(TuxAPI_LEVEL level, TuxAPI_ACTION action, int rotation) -{ - char cmd[4096]; - - switch(action) - { - case ROTATE_LEFT: strcpy(cmd, "/spinning/left_on?count="); + switch(action) + { + case FLIPPERS_UP: doUrlAction(level, "/flippers/up?"); + break; + case FLIPPERS_DOWN: doUrlAction(level, "/flippers/down?"); + break; + case MOUTH_OPEN: doUrlAction(level, "/mouth/open?"); + break; + case MOUTH_CLOSE: doUrlAction(level, "/mouth/close?"); + break; + case EYES_OPEN: doUrlAction(level, "/eyes/open?"); + break; + case EYES_CLOSE: doUrlAction(level, "/eyes/close?"); + break; + } + } + + //Allow rotate Tux left/right + void TuxAPI::DoRotorAction(TuxAPI_LEVEL level, TuxAPI_ACTION action, int rotation) + { + char cmd[4096]; + + switch(action) + { + case ROTATE_LEFT: strcpy(cmd, "/spinning/left_on?count="); + break; + case ROTATE_RIGHT: strcpy(cmd, "spinning/right_on?count="); + break; + } + + + char _rotation[50]; + sprintf(_rotation, "%d", rotation); + strcat(cmd, _rotation); + + doUrlAction(level, cmd); + } + + void TuxAPI::DoLedsAction(TuxAPI_LEVEL level, TuxAPI_ACTION action, TuxAPI_LEDS leds) + { + char cmd[4096]; + strcpy(cmd, "/leds/"); + + switch(action) + { + case LEDS_ON: strcat(cmd, "on?leds="); break; - case ROTATE_RIGHT: strcpy(cmd, "spinning/right_on?count="); + case LEDS_OFF: strcat(cmd, "off?leds="); break; - } - - - char _rotation[50]; - sprintf(_rotation, "%d", rotation); - strcat(cmd, _rotation); - - doUrlAction(level, cmd); -} - -void TuxAPI::DoLedsAction(TuxAPI_LEVEL level, TuxAPI_ACTION action, TuxAPI_LEDS leds) -{ - char cmd[4096]; - strcpy(cmd, "/leds/"); - - switch(action) - { - case LEDS_ON: strcat(cmd, "on?leds="); - break; - case LEDS_OFF: strcat(cmd, "off?leds="); - break; - } - - switch(leds) - { - case LED_BOTH: strcat(cmd, "LED_BOTH"); - break; - case LED_LEFT: strcat(cmd, "LED_LEFT"); - break; - case LED_RIGHT: strcat(cmd, "LED_RIGHT"); - break; - } - - if(action == LEDS_ON) - strcat(cmd, "&intensity=10.0"); - - doUrlAction(level, cmd); -} - -void TuxAPI::DoLedsAction(TuxAPI_LEVEL level, TuxAPI_ACTION action, TuxAPI_LEDS leds, double intensity) -{ - char cmd[4096]; - strcpy(cmd, "/leds/"); - - switch(action) - { - case LEDS_ON: strcat(cmd, "on?leds="); - break; - case LEDS_OFF: strcat(cmd, "off?leds="); - break; - } - - switch(leds) - { - case LED_BOTH: strcat(cmd, "LED_BOTH"); - break; - case LED_LEFT: strcat(cmd, "LED_LEFT"); - break; - case LED_RIGHT: strcat(cmd, "LED_RIGHT"); - break; - } - + } + + switch(leds) + { + case LED_BOTH: strcat(cmd, "LED_BOTH"); + break; + case LED_LEFT: strcat(cmd, "LED_LEFT"); + break; + case LED_RIGHT: strcat(cmd, "LED_RIGHT"); + break; + } + + if(action == LEDS_ON) + strcat(cmd, "&intensity=10.0"); + + doUrlAction(level, cmd); + } - if(action == LEDS_ON) - { - strcat(cmd, "&intensity="); - char _intensity[50]; - sprintf(_intensity,"%.2f",(intensity+0.1)); - strcat(cmd, _intensity); - } + void TuxAPI::DoLedsAction(TuxAPI_LEVEL level, TuxAPI_ACTION action, TuxAPI_LEDS leds, double intensity) + { + char cmd[4096]; + strcpy(cmd, "/leds/"); + + switch(action) + { + case LEDS_ON: strcat(cmd, "on?leds="); + break; + case LEDS_OFF: strcat(cmd, "off?leds="); + break; + } + + switch(leds) + { + case LED_BOTH: strcat(cmd, "LED_BOTH"); + break; + case LED_LEFT: strcat(cmd, "LED_LEFT"); + break; + case LED_RIGHT: strcat(cmd, "LED_RIGHT"); + break; + } - doUrlAction(level, cmd); -} - -void TuxAPI::DoBlinkLedsAction(TuxAPI_LEVEL level, TuxAPI_LEDS leds, int count) -{ - char cmd[4096]; - strcpy(cmd, "/leds/blink/count?count="); - strcat(cmd, (char *)count); - strcat(cmd, "&delay=0.1"); - - switch(leds) - { - case LED_BOTH: strcat(cmd, "LED_BOTH"); - break; - case LED_LEFT: strcat(cmd, "LED_LEFT"); - break; - case LED_RIGHT: strcat(cmd, "LED_RIGHT"); - break; - } - - doUrlAction(level,cmd); -} - -void TuxAPI::DoBlinkLedsAction(TuxAPI_LEVEL level, TuxAPI_LEDS leds, int count, double delay) -{ - char cmd[4096]; - strcpy(cmd, "/leds/blink/count?count="); - strcat(cmd, (char *)count); - strcat(cmd, "&delay="); - - char _delay[50]; - sprintf(_delay, "%.2f",(delay+0.1)); - strcat(cmd, _delay); - - switch(leds) - { - case LED_BOTH: strcat(cmd, "LED_BOTH"); - break; - case LED_LEFT: strcat(cmd, "LED_LEFT"); - break; - case LED_RIGHT: strcat(cmd, "LED_RIGHT"); - break; - } - - doUrlAction(level,cmd); -} - - -void TuxAPI::DoSpeak(TuxAPI_LEVEL level, char *Text) -{ + + if(action == LEDS_ON) + { + strcat(cmd, "&intensity="); + char _intensity[50]; + sprintf(_intensity,"%.2f",(intensity+0.1)); + strcat(cmd, _intensity); + } + + doUrlAction(level, cmd); + } + + void TuxAPI::DoBlinkLedsAction(TuxAPI_LEVEL level, TuxAPI_LEDS leds, int count) + { char cmd[4096]; - strcpy(cmd,"/tts/speak?text="); - strcat(cmd,Text); + strcpy(cmd, "/leds/blink/count?count="); + strcat(cmd, (char *)count); + strcat(cmd, "&delay=0.1"); - string cmd_ = cmd; - cmd_ = ReplaceAllG(cmd_, " ", "%20"); - strcpy(cmd, cmd_.c_str()); - - - doUrlAction(level, cmd); -} - -void TuxAPI::DoSpeak(TuxAPI_LEVEL level, TuxAPI_SPEAK_LOCUTOR locutor, char *Text) -{ - char cmd[4096]; - strcpy(cmd, "/tts/locutor?name="); - - switch(locutor) + switch(leds) { - case Bruno: strcat(cmd, "Bruno"); + case LED_BOTH: strcat(cmd, "LED_BOTH"); break; - case Julie: strcat(cmd, "Julie"); + case LED_LEFT: strcat(cmd, "LED_LEFT"); break; - } + case LED_RIGHT: strcat(cmd, "LED_RIGHT"); + break; + } - doUrlAction(level, cmd); //set the locutor - - strcpy(cmd, "/tts/speak?text="); - strcat(cmd, Text); - - string cmd_ = cmd; - cmd_ = ReplaceAllG(cmd_, " ", "%20"); - strcpy(cmd, cmd_.c_str()); - - - doUrlAction(level, cmd); //speak -} - -void TuxAPI::DoSpeak(TuxAPI_LEVEL level, int pitch, char *Text) -{ + doUrlAction(level,cmd); + } + + void TuxAPI::DoBlinkLedsAction(TuxAPI_LEVEL level, TuxAPI_LEDS leds, int count, double delay) + { char cmd[4096]; - strcpy(cmd, "/tts/pitch?value="); - char _pitch[256]; - sprintf(_pitch, "%d", pitch); - strcat(cmd, _pitch); - - - doUrlAction(level, cmd); //set the pitch + strcpy(cmd, "/leds/blink/count?count="); + strcat(cmd, (char *)count); + strcat(cmd, "&delay="); - strcpy(cmd, "/tts/speak?text="); - strcat(cmd, Text); + char _delay[50]; + sprintf(_delay, "%.2f",(delay+0.1)); + strcat(cmd, _delay); - string cmd_ = cmd; - cmd_ = ReplaceAllG(cmd_, " ", "%20"); - strcpy(cmd, cmd_.c_str()); - - - doUrlAction(level, cmd); //speak -} - -void TuxAPI::DoSpeak(TuxAPI_LEVEL level, TuxAPI_SPEAK_LOCUTOR locutor, int pitch, char *Text) -{ - char cmd[4096]; - strcpy(cmd, "/tts/locutor?name="); - - switch(locutor) + switch(leds) { - case Bruno: strcat(cmd, "Bruno"); + case LED_BOTH: strcat(cmd, "LED_BOTH"); break; - case Julie: strcat(cmd, "Julie"); + case LED_LEFT: strcat(cmd, "LED_LEFT"); break; - } - - doUrlAction(level, cmd); //set the locutor - - strcpy(cmd, "/tts/pitch?value="); - char _pitch[256]; - sprintf(_pitch, "%d", pitch); - strcat(cmd, _pitch); - - - doUrlAction(level, cmd); //set the pitch - - strcpy(cmd, "/tts/speak?text="); - strcat(cmd, Text); - - string cmd_ = cmd; - cmd_ = ReplaceAllG(cmd_, " ", "%20"); - strcpy(cmd, cmd_.c_str()); - - - doUrlAction(level, cmd); //speak -} - -void TuxAPI::AttituneControl(TuxAPI_LEVEL level, TuxAPI_ACTION action, char *attitune) -{ - char cmd[8128]; - strcpy(cmd, "/attitune/"); - - switch(action) - { - case ATTITUNE_PLAY: - { - strcat(cmd, "load_and_play?path="); - strcat(cmd, attitune); - } - break; - case ATTITUNE_STOP: strcat(cmd, "stop?"); + case LED_RIGHT: strcat(cmd, "LED_RIGHT"); break; - } + } doUrlAction(level,cmd); -} - -void TuxAPI::WavControl(TuxAPI_LEVEL level, TuxAPI_ACTION action, char *sound) -{ - char cmd[8128]; - strcpy(cmd, "/wav/"); - - switch(action) - { - case ATTITUNE_PLAY: - { - strcat(cmd, "play?path="); - strcat(cmd, sound); - } - break; - case ATTITUNE_STOP: strcat(cmd, "stop?"); - break; - } - - doUrlAction(level,cmd); -} - -int Split(vector<string>& vecteur, string chaine, char separateur) -{ - vecteur.clear(); + } - string::size_type stTemp = chaine.find(separateur); - while(stTemp != string::npos) + void TuxAPI::DoSpeak(TuxAPI_LEVEL level, char *Text) { - vecteur.push_back(chaine.substr(0, stTemp)); - chaine = chaine.substr(stTemp + 1); - stTemp = chaine.find(separateur); + char cmd[4096]; + strcpy(cmd,"/tts/speak?text="); + strcat(cmd,Text); + + string cmd_ = cmd; + cmd_ = ReplaceAllG(cmd_, " ", "%20"); + strcpy(cmd, cmd_.c_str()); + + + doUrlAction(level, cmd); } - vecteur.push_back(chaine); - - return vecteur.size(); -} - -string TuxAPI::getRawStatus(TuxAPI_LEVEL level, TuxAPI_STATUS_REQUESTED status) -{ - char cmd[4096]; - strcpy(cmd, "/status/request_one?status_name="); - - switch(status) - { - case flippers_motor_on: strcat(cmd, "flippers_motor_on"); - break; - case flippers_position: strcat(cmd, "flippers_position"); - break; - - - case eyes_motor_on: strcat(cmd, "eyes_motor_on"); + void TuxAPI::DoSpeak(TuxAPI_LEVEL level, TuxAPI_SPEAK_LOCUTOR locutor, char *Text) + { + char cmd[4096]; + strcpy(cmd, "/tts/locutor?name="); + + switch(locutor) + { + case Bruno: strcat(cmd, "Bruno"); break; - case eyes_position: strcat(cmd,"eyes_position"); + case Julie: strcat(cmd, "Julie"); break; - case eyes_remaining_movements: strcat(cmd, "eyes_remaining_movements"); + } + + doUrlAction(level, cmd); //set the locutor + + strcpy(cmd, "/tts/speak?text="); + strcat(cmd, Text); + + string cmd_ = cmd; + cmd_ = ReplaceAllG(cmd_, " ", "%20"); + strcpy(cmd, cmd_.c_str()); + + + doUrlAction(level, cmd); //speak + } + + void TuxAPI::DoSpeak(TuxAPI_LEVEL level, int pitch, char *Text) + { + char cmd[4096]; + strcpy(cmd, "/tts/pitch?value="); + char _pitch[256]; + sprintf(_pitch, "%d", pitch); + strcat(cmd, _pitch); + + + doUrlAction(level, cmd); //set the pitch + + strcpy(cmd, "/tts/speak?text="); + strcat(cmd, Text); + + string cmd_ = cmd; + cmd_ = ReplaceAllG(cmd_, " ", "%20"); + strcpy(cmd, cmd_.c_str()); + + + doUrlAction(level, cmd); //speak + } + + void TuxAPI::DoSpeak(TuxAPI_LEVEL level, TuxAPI_SPEAK_LOCUTOR locutor, int pitch, char *Text) + { + char cmd[4096]; + strcpy(cmd, "/tts/locutor?name="); + + switch(locutor) + { + case Bruno: strcat(cmd, "Bruno"); break; - - case mouth_motor_on: strcat(cmd, "mouth_motor_on"); + case Julie: strcat(cmd, "Julie"); break; - case mouth_position: strcat(cmd, "mouth_position"); + } + + doUrlAction(level, cmd); //set the locutor + + strcpy(cmd, "/tts/pitch?value="); + char _pitch[256]; + sprintf(_pitch, "%d", pitch); + strcat(cmd, _pitch); + + + doUrlAction(level, cmd); //set the pitch + + strcpy(cmd, "/tts/speak?text="); + strcat(cmd, Text); + + string cmd_ = cmd; + cmd_ = ReplaceAllG(cmd_, " ", "%20"); + strcpy(cmd, cmd_.c_str()); + + + doUrlAction(level, cmd); //speak + } + + void TuxAPI::AttituneControl(TuxAPI_LEVEL level, TuxAPI_ACTION action, char *attitune) + { + char cmd[8128]; + strcpy(cmd, "/attitune/"); + + switch(action) + { + case ATTITUNE_PLAY: + { + strcat(cmd, "load_and_play?path="); + strcat(cmd, attitune); + } + break; + case ATTITUNE_STOP: strcat(cmd, "stop?"); break; - case mouth_remaining_movements: strcat(cmd, "mouth_remaining_movements"); + } + + doUrlAction(level,cmd); + } + + void TuxAPI::WavControl(TuxAPI_LEVEL level, TuxAPI_ACTION action, char *sound) + { + char cmd[8128]; + strcpy(cmd, "/wav/"); + + switch(action) + { + case ATTITUNE_PLAY: + { + strcat(cmd, "play?path="); + strcat(cmd, sound); + } + break; + case ATTITUNE_STOP: strcat(cmd, "stop?"); break; - - case spin_left_motor_on: strcat(cmd, "spin_left_motor_on"); + } + + doUrlAction(level,cmd); + } + + int Split(vector<string>& vecteur, string chaine, char separateur) + { + vecteur.clear(); + + string::size_type stTemp = chaine.find(separateur); + + while(stTemp != string::npos) + { + vecteur.push_back(chaine.substr(0, stTemp)); + chaine = chaine.substr(stTemp + 1); + stTemp = chaine.find(separateur); + } + + vecteur.push_back(chaine); + + return vecteur.size(); + } + + string TuxAPI::getRawStatus(TuxAPI_LEVEL level, TuxAPI_STATUS_REQUESTED status) + { + char cmd[4096]; + strcpy(cmd, "/status/request_one?status_name="); + + switch(status) + { + case flippers_motor_on: strcat(cmd, "flippers_motor_on"); break; - case spin_right_motor_on: strcat(cmd, "spin_right_motor_on"); + case flippers_position: strcat(cmd, "flippers_position"); break; - case spinning_direction: strcat(cmd, "spinning_direction"); - break; - case spinning_remaining_movements: strcat(cmd, "spinning_remaining_movements"); - break; - - case right_led_state: strcat(cmd, "right_led_state"); - break; - case left_led_state: strcat(cmd, "left_led_state"); - break; - - - case light_level: strcat(cmd, "light_level"); - break; - case battery_state: strcat(cmd, "battery_state"); - break; - case battery_level: strcat(cmd, "battery_level"); - break; - case charger_state: strcat(cmd, "charger_state"); - break; - - } - - string data_raw = doUrlAction(level, cmd); - - vector<string> VecStr; - int s = Split(VecStr, data_raw, '>'); - - string data = VecStr[10]; - data = ReplaceAllG(data, "</value", ""); - - - return data; + + + case eyes_motor_on: strcat(cmd, "eyes_motor_on"); + break; + case eyes_position: strcat(cmd,"eyes_position"); + break; + case eyes_remaining_movements: strcat(cmd, "eyes_remaining_movements"); + break; + + case mouth_motor_on: strcat(cmd, "mouth_motor_on"); + break; + case mouth_position: strcat(cmd, "mouth_position"); + break; + case mouth_remaining_movements: strcat(cmd, "mouth_remaining_movements"); + break; + + case spin_left_motor_on: strcat(cmd, "spin_left_motor_on"); + break; + case spin_right_motor_on: strcat(cmd, "spin_right_motor_on"); + break; + case spinning_direction: strcat(cmd, "spinning_direction"); + break; + case spinning_remaining_movements: strcat(cmd, "spinning_remaining_movements"); + break; + + case right_led_state: strcat(cmd, "right_led_state"); + break; + case left_led_state: strcat(cmd, "left_led_state"); + break; + + + case light_level: strcat(cmd, "light_level"); + break; + case battery_state: strcat(cmd, "battery_state"); + break; + case battery_level: strcat(cmd, "battery_level"); + break; + case charger_state: strcat(cmd, "charger_state"); + break; + + } + + string data_raw = doUrlAction(level, cmd); + + vector<string> VecStr; + int s = Split(VecStr, data_raw, '>'); + + string data = VecStr[10]; + data = ReplaceAllG(data, "</value", ""); + + + return data; + } + + + //=============== PUBLIC =============== + + void TuxAPI::Flippers_Up(void) + { + doMotorAction(CLIENT_LEVEL_FREE, FLIPPERS_UP); + } + + void TuxAPI::Flippers_Down(void) + { + doMotorAction(CLIENT_LEVEL_FREE, FLIPPERS_DOWN); + } + + void TuxAPI::Mouth_Open(void) + { + doMotorAction(CLIENT_LEVEL_FREE, MOUTH_OPEN); + } + + void TuxAPI::Mouth_Close(void) + { + doMotorAction(CLIENT_LEVEL_FREE, MOUTH_CLOSE); + } + + void TuxAPI::Eyes_Open(void) + { + doMotorAction(CLIENT_LEVEL_FREE, EYES_OPEN); + } + + void TuxAPI::Eyes_Close(void) + { + doMotorAction(CLIENT_LEVEL_FREE, EYES_CLOSE); + } + + void TuxAPI::Rotation_Left(int rotation) + { + DoRotorAction(CLIENT_LEVEL_FREE, ROTATE_LEFT, rotation); + } + + void TuxAPI::Rotation_Right(int rotation) + { + DoRotorAction(CLIENT_LEVEL_FREE, ROTATE_RIGHT, rotation); + } + + void TuxAPI::Leds_On(void) + { + DoLedsAction(CLIENT_LEVEL_FREE, LEDS_ON, LED_BOTH); + } + + void TuxAPI::Leds_On(TuxAPI_LEDS leds) + { + DoLedsAction(CLIENT_LEVEL_FREE, LEDS_ON, leds); + } + + void TuxAPI::Leds_On(double intensity) + { + DoLedsAction(CLIENT_LEVEL_FREE, LEDS_ON, LED_BOTH, intensity); + } + + void TuxAPI::Leds_On(TuxAPI_LEDS leds, double intensity) + { + DoLedsAction(CLIENT_LEVEL_FREE, LEDS_ON, leds, intensity); + } + + void TuxAPI::Leds_Off(void) + { + DoLedsAction(CLIENT_LEVEL_FREE, LEDS_OFF, LED_BOTH); + } + + void TuxAPI::Leds_Off(TuxAPI_LEDS leds) + { + DoLedsAction(CLIENT_LEVEL_FREE, LEDS_OFF, leds); + } + + void TuxAPI::Leds_Blink(void) + { + DoBlinkLedsAction(CLIENT_LEVEL_FREE, LED_BOTH, 1); + } + + void TuxAPI::Leds_Blink(TuxAPI_LEDS leds) + { + DoBlinkLedsAction(CLIENT_LEVEL_FREE, leds, 1); + } + + void TuxAPI::Leds_Blink(TuxAPI_LEDS leds, int count) + { + DoBlinkLedsAction(CLIENT_LEVEL_FREE, leds, count); + } + + void TuxAPI::Leds_Blink(TuxAPI_LEDS leds, int count, double delay) + { + DoBlinkLedsAction(CLIENT_LEVEL_FREE, leds, count, delay); + } + + void TuxAPI::Speak(char *Text) + { + DoSpeak(CLIENT_LEVEL_FREE, Text); + } + + void TuxAPI::Speak(TuxAPI_SPEAK_LOCUTOR locutor, char *Text) + { + DoSpeak(CLIENT_LEVEL_FREE, locutor, Text); + } + + void TuxAPI::Speak(int pitch, char *Text) + { + DoSpeak(CLIENT_LEVEL_FREE, pitch, Text); + } + + void TuxAPI::Speak(TuxAPI_SPEAK_LOCUTOR locutor, int pitch, char *Text) + { + DoSpeak(CLIENT_LEVEL_FREE, locutor, pitch, Text); + } + + void TuxAPI::PlayAttitune(char *attitune) + { + AttituneControl(CLIENT_LEVEL_FREE, ATTITUNE_PLAY, attitune); + } + + void TuxAPI::StopAttitune(void) + { + AttituneControl(CLIENT_LEVEL_FREE, ATTITUNE_STOP, ""); + } + + void TuxAPI::PlayWav(char *sound) + { + WavControl(CLIENT_LEVEL_FREE, WAV_PLAY, sound); + } + + void TuxAPI::StopWav(void) + { + WavControl(CLIENT_LEVEL_FREE, WAV_STOP, ""); + } + + string TuxAPI::getStatus(TuxAPI_STATUS_REQUESTED status) + { + return getRawStatus(CLIENT_LEVEL_FREE, status); + } + + double strtodbl( const std::string& s ) + { + std::istringstream i(s); + double x; + if (!(i >> x)) + return 0; + return x; + } } - - -//=============== PUBLIC =============== - -void TuxAPI::Flippers_Up(void) -{ - doMotorAction(CLIENT_LEVEL_FREE, FLIPPERS_UP); -} - -void TuxAPI::Flippers_Down(void) -{ - doMotorAction(CLIENT_LEVEL_FREE, FLIPPERS_DOWN); -} - -void TuxAPI::Mouth_Open(void) -{ - doMotorAction(CLIENT_LEVEL_FREE, MOUTH_OPEN); -} - -void TuxAPI::Mouth_Close(void) -{ - doMotorAction(CLIENT_LEVEL_FREE, MOUTH_CLOSE); -} - -void TuxAPI::Eyes_Open(void) -{ - doMotorAction(CLIENT_LEVEL_FREE, EYES_OPEN); -} - -void TuxAPI::Eyes_Close(void) -{ - doMotorAction(CLIENT_LEVEL_FREE, EYES_CLOSE); -} - -void TuxAPI::Rotation_Left(int rotation) -{ - DoRotorAction(CLIENT_LEVEL_FREE, ROTATE_LEFT, rotation); -} - -void TuxAPI::Rotation_Right(int rotation) -{ - DoRotorAction(CLIENT_LEVEL_FREE, ROTATE_RIGHT, rotation); -} - -void TuxAPI::Leds_On(void) -{ - DoLedsAction(CLIENT_LEVEL_FREE, LEDS_ON, LED_BOTH); -} - -void TuxAPI::Leds_On(TuxAPI_LEDS leds) -{ - DoLedsAction(CLIENT_LEVEL_FREE, LEDS_ON, leds); -} - -void TuxAPI::Leds_On(double intensity) -{ - DoLedsAction(CLIENT_LEVEL_FREE, LEDS_ON, LED_BOTH, intensity); -} - -void TuxAPI::Leds_On(TuxAPI_LEDS leds, double intensity) -{ - DoLedsAction(CLIENT_LEVEL_FREE, LEDS_ON, leds, intensity); -} - -void TuxAPI::Leds_Off(void) -{ - DoLedsAction(CLIENT_LEVEL_FREE, LEDS_OFF, LED_BOTH); -} - -void TuxAPI::Leds_Off(TuxAPI_LEDS leds) -{ - DoLedsAction(CLIENT_LEVEL_FREE, LEDS_OFF, leds); -} - -void TuxAPI::Leds_Blink(void) -{ - DoBlinkLedsAction(CLIENT_LEVEL_FREE, LED_BOTH, 1); -} - -void TuxAPI::Leds_Blink(TuxAPI_LEDS leds) -{ - DoBlinkLedsAction(CLIENT_LEVEL_FREE, leds, 1); -} - -void TuxAPI::Leds_Blink(TuxAPI_LEDS leds, int count) -{ - DoBlinkLedsAction(CLIENT_LEVEL_FREE, leds, count); -} - -void TuxAPI::Leds_Blink(TuxAPI_LEDS leds, int count, double delay) -{ - DoBlinkLedsAction(CLIENT_LEVEL_FREE, leds, count, delay); -} - -void TuxAPI::Speak(char *Text) -{ - DoSpeak(CLIENT_LEVEL_FREE, Text); -} - -void TuxAPI::Speak(TuxAPI_SPEAK_LOCUTOR locutor, char *Text) -{ - DoSpeak(CLIENT_LEVEL_FREE, locutor, Text); -} - -void TuxAPI::Speak(int pitch, char *Text) -{ - DoSpeak(CLIENT_LEVEL_FREE, pitch, Text); -} - -void TuxAPI::Speak(TuxAPI_SPEAK_LOCUTOR locutor, int pitch, char *Text) -{ - DoSpeak(CLIENT_LEVEL_FREE, locutor, pitch, Text); -} - -void TuxAPI::PlayAttitune(char *attitune) -{ - AttituneControl(CLIENT_LEVEL_FREE, ATTITUNE_PLAY, attitune); -} - -void TuxAPI::StopAttitune(void) -{ - AttituneControl(CLIENT_LEVEL_FREE, ATTITUNE_STOP, ""); -} - -void TuxAPI::PlayWav(char *sound) -{ - WavControl(CLIENT_LEVEL_FREE, WAV_PLAY, sound); -} - -void TuxAPI::StopWav(void) -{ - WavControl(CLIENT_LEVEL_FREE, WAV_STOP, ""); -} - -string TuxAPI::getStatus(TuxAPI_STATUS_REQUESTED status) -{ - return getRawStatus(CLIENT_LEVEL_FREE, status); -} Modified: software_suite_v3/smart-core/smart-api/cpp/API/TuxAPI.h =================================================================== --- software_suite_v3/smart-core/smart-api/cpp/API/TuxAPI.h 2009-07-31 14:47:05 UTC (rev 5259) +++ software_suite_v3/smart-core/smart-api/cpp/API/TuxAPI.h 2009-07-31 21:05:11 UTC (rev 5260) @@ -41,211 +41,211 @@ using namespace std; -enum TuxAPI_LEVEL -{ - CLIENT_LEVEL_ANONYME = -1, - CLIENT_LEVEL_FREE = 0, - CLIENT_LEVEL_RESTRICTED = 1, - CLIENT_LEVEL_ROOT = 2, -}; -/// <summary> -/// All action can do Tux -/// </summary> -enum TuxAPI_ACTION +namespace TuxDroid { - FLIPPERS_UP = 1, - FLIPPERS_DOWN = 2, - - MOUTH_OPEN = 3, - MOUTH_CLOSE = 4, - - EYES_OPEN = 5, - EYES_CLOSE = 6, - - LEDS_ON = 7, - LEDS_OFF = 8, - - ROTATE_LEFT = 9, - ROTATE_RIGHT = 10, - - ATTITUNE_PLAY = 11, - ATTITUNE_STOP = 12, - - WAV_PLAY = 13, - WAV_STOP = 14, -}; - -/// <summary> -/// The TTS voice (TODO: Add others voices) -/// </summary> -enum TuxAPI_SPEAK_LOCUTOR -{ - Bruno = 0, - Julie = 1, -}; - -/// <summary> -/// //<<LED_BOTH|LED_RIGHT|LED_LEFT>> -/// </summary> -enum TuxAPI_LEDS -{ - LED_BOTH = 0, - LED_LEFT = 1, - LED_RIGHT = 2, -}; - -enum TuxAPI_STATUS_REQUESTED -{ - flippers_motor_on = 0, - flippers_position = 1, - flippers_remaining_movements = 2, - - eyes_motor_on = 3, - eyes_position = 4, - eyes_remaining_movements = 5, - - mouth_motor_on = 6, - mouth_position = 7, - mouth_remaining_movements = 8, - - spin_left_motor_on = 9, - spin_right_motor_on = 10, - spinning_direction = 11, - spinning_remaining_movements = 12, - - light_level = 13, - right_led_state = 14, - left_led_state = 15, - - battery_level = 16, - battery_state = 17, - charger_state = 18, - - //----------- - - /* TODO: modify the number of any status - descriptor_complete = 4, - radio_state = 5, - dongle_plug = 6, - - - connection_quality = 15, + double strtodbl(const std::string& s); - audio_flash_play = 16, - audio_general_play = 17, - - flash_programming_current_track = 18, - flash_programming_last_track_size = 19, - - tuxcore_symbolic_version = 20, - tuxaudio_symbolic_version = 21, - fuxusb_symbolic_version = 22, - fuxrf_symbolic_version = 23, - tuxrf_symbolic_version = 24, - driver_symbolic_version = 25, - - sound_reflash_begin = 26, - sound_reflash_end = 27, - sound_reflash_current_trac = 28, - + enum TuxAPI_LEVEL + { + CLIENT_LEVEL_ANONYME = -1, + CLIENT_LEVEL_FREE = 0, + CLIENT_LEVEL_RESTRICTED = 1, + CLIENT_LEVEL_ROOT = 2, + }; - left_wing_button = 34, - sound_flash_count = 35, - - osl_symbolic_version=38, - general_sound_state = 39, - wav_volume=40, - tts_volume=41, - tts_pitch=42, - tts_locutor=43, - wav_0_sound_state=44, - wav_0_pause_state=45, - wav_0_stop=46, - right_wing_button=47, - wav_1_sound_state=48, - wav_1_pause_state=49, - wav_1_stop=50, - wav_2_sound_state=51, - wav_2_pause_state=52, - wav_2_stop=53, - wav_3_sound_state=54, - wav_3_pause_state=55, - wav_3_stop=56, - tts_0_sound_state=57, - head_button=58, - tts_0_pause_state=59, - tts_0_stop=60, - tts_0_voice_loaded=61, - tts_0_speak_status=62, - tts_0_voice_list=63, - tts_wav_channel_start=64, - None=65, - remote_button=66,*/ -}; - -class TuxAPI -{ -private: - string doUrlAction(TuxAPI_LEVEL level, string url); - void doMotorAction(TuxAPI_LEVEL level, TuxAPI_ACTION action); - void DoRotorAction(TuxAPI_LEVEL level, TuxAPI_ACTION action, int rotation); - - void DoLedsAction(TuxAPI_LEVEL level, TuxAPI_ACTION action, TuxAPI_LEDS leds); - void DoLedsAction(TuxAPI_LEVEL level, TuxAPI_ACTION action, TuxAPI_LEDS leds, double intensity); - - void DoBlinkLedsAction(TuxAPI_LEVEL level, TuxAPI_LEDS leds, int count); - void DoBlinkLedsAction(TuxAPI_LEVEL level, TuxAPI_LEDS leds, int count, double delay); - - void DoSpeak(TuxAPI_LEVEL level, char *Text); - void DoSpeak(TuxAPI_LEVEL level, TuxAPI_SPEAK_LOCUTOR locutor, char *Text); - void DoSpeak(TuxAPI_LEVEL level, int pitch, char *Text); - void DoSpeak(TuxAPI_LEVEL level, TuxAPI_SPEAK_LOCUTOR locutor, int pitch, char *Text); - - void AttituneControl(TuxAPI_LEVEL level, TuxAPI_ACTION action, char *attitune); - - void WavControl(TuxAPI_LEVEL level, TuxAPI_ACTION action, char *sound); - - string getRawStatus(TuxAPI_LEVEL level, TuxAPI_STATUS_REQUESTED status); - -public: - TuxAPI(void); - void Flippers_Up(void); - void Flippers_Down(void); - void Mouth_Open(void); - void Mouth_Close(void); - void Eyes_Open(void); - void Eyes_Close(void); - void Rotation_Left(int rotation); - void Rotation_Right(int rotation); - void Leds_On(void); - void Leds_On(TuxAPI_LEDS leds); - void Leds_On(double intensity); - void Leds_On(TuxAPI_LEDS leds, double intensity); - void Leds_Off(void); - void Leds_Off(TuxAPI_LEDS leds); - - void Leds_Blink(void); - void Leds_Blink(TuxAPI_LEDS leds); - void Leds_Blink(TuxAPI_LEDS leds, int count); - void Leds_Blink(TuxAPI_LEDS leds, int count, double delay); - - void Speak(char *Text); - void Speak(TuxAPI_SPEAK_LOCUTOR locutor, char *Text); - void Speak(int pitch, char *Text); - void Speak(TuxAPI_SPEAK_LOCUTOR locutor, int pitch, char *Text); - - void PlayAttitune(char *attitune); - void StopAttitune(void); + /// <summary> + /// All action can do Tux + /// </summary> + enum TuxAPI_ACTION + { + FLIPPERS_UP = 1, + FLIPPERS_DOWN = 2, + + MOUTH_OPEN = 3, + MOUTH_CLOSE = 4, + + EYES_OPEN = 5, + EYES_CLOSE = 6, + + LEDS_ON = 7, + LEDS_OFF = 8, + + ROTATE_LEFT = 9, + ROTATE_RIGHT = 10, + + ATTITUNE_PLAY = 11, + ATTITUNE_STOP = 12, + + WAV_PLAY = 13, + WAV_STOP = 14, + }; + + /// <summary> + /// The TTS voice (TODO: Add others voices) + /// </summary> + enum TuxAPI_SPEAK_LOCUTOR + { + Bruno = 0, + Julie = 1, + }; + + /// <summary> + /// //<<LED_BOTH|LED_RIGHT|LED_LEFT>> + /// </summary> + enum TuxAPI_LEDS + { + LED_BOTH = 0, + LED_LEFT = 1, + LED_RIGHT = 2, + }; + + enum TuxAPI_STATUS_REQUESTED + { + flippers_motor_on = 0, + flippers_position = 1, + flippers_remaining_movements = 2, + + eyes_motor_on = 3, + eyes_position = 4, + eyes_remaining_movements = 5, + + mouth_motor_on = 6, + mouth_position = 7, + mouth_remaining_movements = 8, + + spin_left_motor_on = 9, + spin_right_motor_on = 10, + spinning_direction = 11, + spinning_remaining_movements = 12, + + light_level = 13, + right_led_state = 14, + left_led_state = 15, + + battery_level = 16, + battery_state = 17, + charger_state = 18, + + //----------- + + /* TODO: modify the number of any status + descriptor_complete = 4, + radio_state = 5, + dongle_plug = 6, + + + connection_quality = 15, - void PlayWav(char *sound); - void StopWav(void); - - string getStatus(TuxAPI_STATUS_REQUESTED status); + audio_flash_play = 16, + audio_general_play = 17, + + flash_programming_current_track = 18, + flash_programming_last_track_size = 19, + + tuxcore_symbolic_version = 20, + tuxaudio_symbolic_version = 21, + fuxusb_symbolic_version = 22, + fuxrf_symbolic_version = 23, + tuxrf_symbolic_version = 24, + driver_symbolic_version = 25, + + sound_reflash_begin = 26, + sound_reflash_end = 27, + sound_reflash_current_trac = 28, + - - - - - -}; + left_wing_button = 34, + sound_flash_count = 35, + + osl_symbolic_version=38, + general_sound_state = 39, + wav_volume=40, + tts_volume=41, + tts_pitch=42, + tts_locutor=43, + wav_0_sound_state=44, + wav_0_pause_state=45, + wav_0_stop=46, + right_wing_button=47, + wav_1_sound_state=48, + wav_1_pause_state=49, + wav_1_stop=50, + wav_2_sound_state=51, + wav_2_pause_state=52, + wav_2_stop=53, + wav_3_sound_state=54, + wav_3_pause_state=55, + wav_3_stop=56, + tts_0_sound_state=57, + head_button=58, + tts_0_pause_state=59, + tts_0_stop=60, + tts_0_voice_loaded=61, + tts_0_speak_status=62, + tts_0_voice_list=63, + tts_wav_channel_start=64, + None=65, + remote_button=66,*/ + }; + + class TuxAPI + { + private: + string doUrlAction(TuxAPI_LEVEL level, string url); + void doMotorAction(TuxAPI_LEVEL level, TuxAPI_ACTION action); + void DoRotorAction(TuxAPI_LEVEL level, TuxAPI_ACTION action, int rotation); + + void DoLedsAction(TuxAPI_LEVEL level, TuxAPI_ACTION action, TuxAPI_LEDS leds); + void DoLedsAction(TuxAPI_LEVEL level, TuxAPI_ACTION action, TuxAPI_LEDS leds, double intensity); + + void DoBlinkLedsAction(TuxAPI_LEVEL level, TuxAPI_LEDS leds, int count); + void DoBlinkLedsAction(TuxAPI_LEVEL level, TuxAPI_LEDS leds, int count, double delay); + + void DoSpeak(TuxAPI_LEVEL level, char *Text); + void DoSpeak(TuxAPI_LEVEL level, TuxAPI_SPEAK_LOCUTOR locutor, char *Text); + void DoSpeak(TuxAPI_LEVEL level, int pitch, char *Text); + void DoSpeak(TuxAPI_LEVEL level, TuxAPI_SPEAK_LOCUTOR locutor, int pitch, char *Text); + + void AttituneControl(TuxAPI_LEVEL level, TuxAPI_ACTION action, char *attitune); + + void WavControl(TuxAPI_LEVEL level, TuxAPI_ACTION action, char *sound); + + string getRawStatus(TuxAPI_LEVEL level, TuxAPI_STATUS_REQUESTED status); + + public: + TuxAPI(void); + void Flippers_Up(void); + void Flippers_Down(void); + void Mouth_Open(void); + void Mouth_Close(void); + void Eyes_Open(void); + void Eyes_Close(void); + void Rotation_Left(int rotation); + void Rotation_Right(int rotation); + void Leds_On(void); + void Leds_On(TuxAPI_LEDS leds); + void Leds_On(double intensity); + void Leds_On(TuxAPI_LEDS leds, double intensity); + void Leds_Off(void); + void Leds_Off(TuxAPI_LEDS leds); + + void Leds_Blink(void); + void Leds_Blink(TuxAPI_LEDS leds); + void Leds_Blink(TuxAPI_LEDS leds, int count); + void Leds_Blink(TuxAPI_LEDS leds, int count, double delay); + + void Speak(char *Text); + void Speak(TuxAPI_SPEAK_LOCUTOR locutor, char *Text); + void Speak(int pitch, char *Text); + void Speak(TuxAPI_SPEAK_LOCUTOR locutor, int pitch, char *Text); + + void PlayAttitune(char *attitune); + void StopAttitune(void); + + void PlayWav(char *sound); + void StopWav(void); + + string getStatus(TuxAPI_STATUS_REQUESTED status); + }; +} |
|
From: remi <c2m...@c2...> - 2009-07-31 14:47:19
|
Author: remi
Date: 2009-07-31 16:47:05 +0200 (Fri, 31 Jul 2009)
New Revision: 5259
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py
Log:
* Default locutor on ugc creation is always the current menu one
Modified: software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py 2009-07-31 14:43:44 UTC (rev 5258)
+++ software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py 2009-07-31 14:47:05 UTC (rev 5259)
@@ -596,8 +596,7 @@
if parameter.isVisible():
defaultValue = parameter.getDefaultValue(language)
if parameter.getName() == "locutor":
- if defaultValue == "":
- defaultValue = ugcContainer.getLocutor().replace("8k", "")
+ defaultValue = ugcContainer.getLocutor().replace("8k", "")
nodeName = "param_%2d" % i
i += 1
ugcDataDict['parameters'][nodeName] = {
|
|
From: remi <c2m...@c2...> - 2009-07-31 14:44:04
|
Author: remi
Date: 2009-07-31 16:43:44 +0200 (Fri, 31 Jul 2009)
New Revision: 5258
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py
Log:
* Fixed default locutor assignation on ugc creation.
Modified: software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py 2009-07-31 13:31:59 UTC (rev 5257)
+++ software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py 2009-07-31 14:43:44 UTC (rev 5258)
@@ -594,11 +594,15 @@
i = 0
for parameter in gadget.getParameters():
if parameter.isVisible():
+ defaultValue = parameter.getDefaultValue(language)
+ if parameter.getName() == "locutor":
+ if defaultValue == "":
+ defaultValue = ugcContainer.getLocutor().replace("8k", "")
nodeName = "param_%2d" % i
i += 1
ugcDataDict['parameters'][nodeName] = {
'name' : parameter.getName(),
- 'value' : parameter.getDefaultValue(language),
+ 'value' : defaultValue,
}
# Tasks
ugcDataDict['tasks'] = {}
|
|
From: remi <c2m...@c2...> - 2009-07-31 14:06:15
|
Author: remi
Date: 2009-07-31 15:31:59 +0200 (Fri, 31 Jul 2009)
New Revision: 5257
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/system/Clipboard.py
Log:
* Removed pygtk dependency for the not functional method of clipboard retrieving.
Modified: software_suite_v3/smart-core/smart-server/trunk/util/system/Clipboard.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/util/system/Clipboard.py 2009-07-31 09:20:54 UTC (rev 5256)
+++ software_suite_v3/smart-core/smart-server/trunk/util/system/Clipboard.py 2009-07-31 13:31:59 UTC (rev 5257)
@@ -8,9 +8,6 @@
if os.name == 'nt':
import win32clipboard
import win32con
-else:
- import pygtk
- import gtk
# ------------------------------------------------------------------------------
# Class to control the clipboard.
@@ -35,13 +32,6 @@
win32clipboard.CloseClipboard()
return text
else:
- text = ""
- clipboard = gtk.clipboard_get(gtk.gdk.SELECTION_CLIPBOARD)
- def acceptText(clipboard, mText, data):
- if not mText or mText == '':
- return
- text = mText
- clipboard.request_text(acceptText)
- return text
+ return ""
getText = staticmethod(getText)
|
|
From: remi <c2m...@c2...> - 2009-07-31 09:21:06
|
Author: remi
Date: 2009-07-31 11:20:54 +0200 (Fri, 31 Jul 2009)
New Revision: 5256
Modified:
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
Log:
* Updated exiting method order
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-31 09:13:29 UTC (rev 5255)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-31 09:20:54 UTC (rev 5256)
@@ -436,6 +436,9 @@
procedure TForm1.ExitApplication(windowsIsShutdown : boolean);
begin
try
+ //Stop server
+ if not windowsIsShutdown then
+ TuxUtils.stopServer();
//Stop connection checker
exitingFlag := true;
smartcoreReady := false;
@@ -449,9 +452,7 @@
begin
//Remove tray icon
Form1.DeleteSysTrayIcon;
- //AppIcon.Free;
- //Stop server
- TuxUtils.stopServer();
+ AppIcon.Free;
end;
Sleep(100);
except
|