Author: jerome
Date: 2008-12-05 11:39:44 +0100 (Fri, 05 Dec 2008)
New Revision: 3016
Modified:
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/.classpath
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/container/Gadget.java
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/container/GadgetsContainer.java
Log:
* Added invisible gadget parameter into the gadget container (tgp_ip).
Modified:
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/.classpath
===================================================================
---
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/.classpath
2008-12-05 10:38:46 UTC (rev 3015)
+++
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/.classpath
2008-12-05 10:39:44 UTC (rev 3016)
@@ -3,7 +3,7 @@
<classpathentry kind="src" path="sources"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con"
path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3"/>
- <classpathentry kind="lib" path="libraries/javassist-3.7.ga.jar"/>
<classpathentry combineaccessrules="false" kind="src"
path="/karmalab-commons"/>
+ <classpathentry kind="lib"
path="/usr/share/tuxdroid/resources/control_center/deps/javassist-3.7.ga.jar"/>
<classpathentry kind="output" path="targets/eclipse"/>
</classpath>
Modified:
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/container/Gadget.java
===================================================================
---
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/container/Gadget.java
2008-12-05 10:38:46 UTC (rev 3015)
+++
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/container/Gadget.java
2008-12-05 10:39:44 UTC (rev 3016)
@@ -184,11 +184,13 @@
/** called by the container when the gadget is fully loaded. */
void loaded() {
+ parameters.add(new GadgetParameter("ip", "string",
GadgetsContainer.getConnectionIP(), "Server address"));
parameters.add(new GadgetParameter("traces", "boolean",
"false", "Verbose mode"));
parameters.add(new GadgetParameter("language", "string",
GadgetsContainer.getLanguage(), "Language"));
parameters.add(new GadgetParameter("locutor", "string",
GadgetsContainer.getLocutor(), "Locutor"));
parameters.add(new GadgetParameter("country", "string",
GadgetsContainer.getCountry(), "Country"));
parameters.add(new GadgetParameter("pitch", "integer",
GadgetsContainer.getPitch(), "Pitch"));
+
for (GadgetParameter parameter : parameters) {
parameter.setParent(this);
}
Modified:
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/container/GadgetsContainer.java
===================================================================
---
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/container/GadgetsContainer.java
2008-12-05 10:38:46 UTC (rev 3015)
+++
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/container/GadgetsContainer.java
2008-12-05 10:39:44 UTC (rev 3016)
@@ -51,12 +51,14 @@
private static String locutor;
private static String country;
private static int pitch;
+ private static String ip;
- public static void setLocale(String language, String locutor, String
country, int pitch) {
+ public static void setLocale(String language, String locutor, String
country, int pitch, String ip) {
GadgetsContainer.language = language;
GadgetsContainer.locutor = locutor;
GadgetsContainer.country = country;
GadgetsContainer.pitch = pitch;
+ GadgetsContainer.ip = ip;
}
/**
@@ -86,6 +88,16 @@
public static int getPitch() {
return pitch;
}
+
+
+ /**
+ * Return used ip adress to get connected with Tux server.
+ * @return
+ */
+ public static String getConnectionIP()
+ {
+ return ip;
+ }
class AutoDeployerObserver implements AutoDeployerListener {
public void deployementError(Throwable exception) {
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn