Author: remi
Date: 2009-03-31 09:46:56 +0200 (Tue, 31 Mar 2009)
New Revision: 4271
Modified:
software_suite_v2/software/development_tools/tuxdroid-gadget-java-kit/branches/0.0.2/tuxdroid-gadget-java-kit/sources/com/kysoh/tuxdroid/gadget/framework/gadget/SimpleGadgetConfiguration.java
Log:
* added the common parameter daemon and its getter
* set default values of the common parameters
Modified:
software_suite_v2/software/development_tools/tuxdroid-gadget-java-kit/branches/0.0.2/tuxdroid-gadget-java-kit/sources/com/kysoh/tuxdroid/gadget/framework/gadget/SimpleGadgetConfiguration.java
===================================================================
---
software_suite_v2/software/development_tools/tuxdroid-gadget-java-kit/branches/0.0.2/tuxdroid-gadget-java-kit/sources/com/kysoh/tuxdroid/gadget/framework/gadget/SimpleGadgetConfiguration.java
2009-03-31 07:38:02 UTC (rev 4270)
+++
software_suite_v2/software/development_tools/tuxdroid-gadget-java-kit/branches/0.0.2/tuxdroid-gadget-java-kit/sources/com/kysoh/tuxdroid/gadget/framework/gadget/SimpleGadgetConfiguration.java
2009-03-31 07:46:56 UTC (rev 4271)
@@ -23,12 +23,13 @@
package com.kysoh.tuxdroid.gadget.framework.gadget;
public class SimpleGadgetConfiguration {
- private boolean traces;
- private int pitch;
- private String language;
- private String country;
- private String locutor;
- private String ip;
+ private boolean traces = false;
+ private int pitch = 100;
+ private String language = "en";
+ private String country = "US";
+ private String locutor = "Ryan";
+ private String ip = "127.0.0.1";
+ private boolean daemon = false;
/**
* @return the pitch
@@ -104,23 +105,32 @@
public void setTraces(boolean traces) {
this.traces = traces;
}
+
+ /**
+ * @param httpserver ip address.
+ */
+ public void setIP(String IP)
+ {
+ this.ip = IP;
+ }
-
- /**
- * @param httpserver ip address.
- */
- public void setIP(String IP)
- {
- this.ip = IP;
- }
-
-
- /**
- * Return current used ip adress.
- * @return
- */
- public String getIP()
- {
- return this.ip;
- }
+
+ /**
+ * Return current used ip adress.
+ * @return
+ */
+ public String getIP()
+ {
+ return this.ip;
+ }
+
+ /**
+ * Get if the gadget is a daemon or not.
+ * @return
+ */
+ public boolean isDaemon()
+ {
+ return this.daemon;
+ }
+
}
------------------------------------------------------------------------------
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn