Rev 206 | Rev 214 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 206 | Rev 211 | ||
---|---|---|---|
Line 11... | Line 11... | ||
11 | import javax.microedition.rms.*; |
11 | import javax.microedition.rms.*; |
Line 12... | Line 12... | ||
12 | 12 | ||
Line 13... | Line 13... | ||
13 | import java.io.*; |
13 | import java.io.*; |
14 | 14 | ||
15 | public class DUBwiseSettings |
15 | public class DUBwiseSettings |
16 | implements org.ligi.ufo.DUBwiseDefinitions |
16 | implements org.ligi.ufo.DUBwiseDefinitions,DUBwiseUIDefinitions |
17 | { |
17 | { |
18 | // name/handle for the recordStore to memorize some stuff |
- | |
Line 19... | Line 18... | ||
19 | private final static String RECORD_STORE_NAME="DUBSETT_V2"; |
18 | // name/handle for the recordStore to memorize some stuff |
20 | 19 | private final static String RECORD_STORE_NAME="DUBSETT_V3"; |
|
21 | 20 | ||
Line 30... | Line 29... | ||
30 | public boolean do_sound=true; |
29 | public boolean do_sound=true; |
31 | public boolean fullscreen=false; |
30 | public boolean fullscreen=false; |
32 | public boolean do_scrollbg=false; |
31 | public boolean do_scrollbg=false; |
Line -... | Line 32... | ||
- | 32 | ||
- | 33 | ||
- | 34 | public byte gps_format=GPS_FORMAT_DECIMAL; |
|
- | 35 | public byte speed_format=SPEED_FORMAT_KMH; |
|
- | 36 | ||
33 | 37 | ||
34 | 38 | ||
35 | //#if devicecontrol=="on" |
39 | //#if devicecontrol=="on" |
Line 36... | Line 40... | ||
36 | public boolean keep_lighton=false; |
40 | public boolean keep_lighton=false; |
Line 61... | Line 65... | ||
61 | do_vibra=din.readBoolean(); |
65 | do_vibra=din.readBoolean(); |
62 | do_scrollbg=din.readBoolean(); |
66 | do_scrollbg=din.readBoolean(); |
63 | fullscreen=din.readBoolean(); |
67 | fullscreen=din.readBoolean(); |
64 | //#if devicecontrol=="on" |
68 | //#if devicecontrol=="on" |
65 | keep_lighton=din.readBoolean(); |
69 | keep_lighton=din.readBoolean(); |
- | 70 | //#else |
|
- | 71 | din.readBoolean(); |
|
66 | //#endif |
72 | //#endif |
Line -... | Line 73... | ||
- | 73 | ||
- | 74 | ||
- | 75 | gps_format=din.readByte(); |
|
- | 76 | speed_format=din.readByte(); |
|
- | 77 | ||
- | 78 | // reserve |
|
- | 79 | din.readBoolean(); |
|
- | 80 | din.readBoolean(); |
|
- | 81 | din.readBoolean(); |
|
- | 82 | din.readByte(); |
|
- | 83 | din.readByte(); |
|
- | 84 | din.readByte(); |
|
- | 85 | din.readUTF(); |
|
- | 86 | din.readUTF(); |
|
67 | 87 | din.readUTF(); |
|
68 | 88 | ||
69 | for ( int i=0;i<5;i++) |
89 | for ( int i=0;i<5;i++) |
70 | { |
90 | { |
71 | act_proxy_ip[i]=din.readInt(); |
91 | act_proxy_ip[i]=din.readInt(); |
Line 104... | Line 124... | ||
104 | dout.writeBoolean(do_vibra); |
124 | dout.writeBoolean(do_vibra); |
105 | dout.writeBoolean(do_scrollbg); |
125 | dout.writeBoolean(do_scrollbg); |
106 | dout.writeBoolean(fullscreen); |
126 | dout.writeBoolean(fullscreen); |
107 | //#if devicecontrol=="on" |
127 | //#if devicecontrol=="on" |
108 | dout.writeBoolean(keep_lighton); |
128 | dout.writeBoolean(keep_lighton); |
- | 129 | //#else |
|
- | 130 | dout.writeBoolean(false); |
|
109 | //#endif |
131 | //#endif |
Line -... | Line 132... | ||
- | 132 | ||
- | 133 | dout.writeByte(gps_format); |
|
- | 134 | dout.writeByte(speed_format); |
|
- | 135 | ||
- | 136 | dout.writeBoolean(false); |
|
- | 137 | dout.writeBoolean(false); |
|
- | 138 | dout.writeBoolean(false); |
|
- | 139 | dout.writeByte(0); |
|
- | 140 | dout.writeByte(0); |
|
- | 141 | dout.writeByte(0); |
|
- | 142 | dout.writeUTF(""); |
|
- | 143 | dout.writeUTF(""); |
|
- | 144 | dout.writeUTF(""); |
|
- | 145 | ||
- | 146 | ||
110 | 147 | ||
111 | for ( int i=0;i<5;i++) |
148 | for ( int i=0;i<5;i++) |
112 | { |
149 | { |
113 | dout.writeInt(act_proxy_ip[i]); |
150 | dout.writeInt(act_proxy_ip[i]); |
114 | dout.writeInt(act_conn_ip[i]); |
151 | dout.writeInt(act_conn_ip[i]); |