Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 210 → Rev 211

/DUBwise/trunk/j2me/src/DUBwiseSettings.java
13,12 → 13,11
import java.io.*;
 
public class DUBwiseSettings
implements org.ligi.ufo.DUBwiseDefinitions
implements org.ligi.ufo.DUBwiseDefinitions,DUBwiseUIDefinitions
{
// name/handle for the recordStore to memorize some stuff
private final static String RECORD_STORE_NAME="DUBSETT_V2";
private final static String RECORD_STORE_NAME="DUBSETT_V3";
 
 
/* all settings hold here */
//holds id of actual skin
public byte act_skin=SKINID_DARK;
32,6 → 31,11
public boolean do_scrollbg=false;
 
 
public byte gps_format=GPS_FORMAT_DECIMAL;
public byte speed_format=SPEED_FORMAT_KMH;
 
 
 
//#if devicecontrol=="on"
public boolean keep_lighton=false;
//#endif
63,9 → 67,25
fullscreen=din.readBoolean();
//#if devicecontrol=="on"
keep_lighton=din.readBoolean();
//#else
din.readBoolean();
//#endif
 
 
gps_format=din.readByte();
speed_format=din.readByte();
 
// reserve
din.readBoolean();
din.readBoolean();
din.readBoolean();
din.readByte();
din.readByte();
din.readByte();
din.readUTF();
din.readUTF();
din.readUTF();
 
for ( int i=0;i<5;i++)
{
act_proxy_ip[i]=din.readInt();
106,8 → 126,25
dout.writeBoolean(fullscreen);
//#if devicecontrol=="on"
dout.writeBoolean(keep_lighton);
//#else
dout.writeBoolean(false);
//#endif
 
dout.writeByte(gps_format);
dout.writeByte(speed_format);
 
dout.writeBoolean(false);
dout.writeBoolean(false);
dout.writeBoolean(false);
dout.writeByte(0);
dout.writeByte(0);
dout.writeByte(0);
dout.writeUTF("");
dout.writeUTF("");
dout.writeUTF("");
 
 
 
for ( int i=0;i<5;i++)
{
dout.writeInt(act_proxy_ip[i]);