diff options
| author | manut <manut@58fc9717-fb00-483d-b79c-3a878c4e3be5> | 2007-08-12 11:39:18 +0000 |
|---|---|---|
| committer | manut <manut@58fc9717-fb00-483d-b79c-3a878c4e3be5> | 2007-08-12 11:39:18 +0000 |
| commit | 1caba29952307e005eae662fcace54b2252b8c97 (patch) | |
| tree | 57a5977cedc20b92a9878916c1095cb152fc79e5 /trunk/build/preprocessed/nav/processState.java | |
git-svn-id: svn+ssh://mecka.net/home/svn/geoc@1 58fc9717-fb00-483d-b79c-3a878c4e3be5
Diffstat (limited to 'trunk/build/preprocessed/nav/processState.java')
| -rwxr-xr-x | trunk/build/preprocessed/nav/processState.java | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/trunk/build/preprocessed/nav/processState.java b/trunk/build/preprocessed/nav/processState.java new file mode 100755 index 0000000..9c7d756 --- /dev/null +++ b/trunk/build/preprocessed/nav/processState.java @@ -0,0 +1,50 @@ +/* + * processState.java + * + * Created on July 14, 2007, 5:02 PM + * + * To change this template, choose Tools | Template Manager + * and open the template in the editor. + */ + +package nav; + +import gui.*; +import java.lang.Thread; +import javax.microedition.location.*; + +/** + * + * @author manut + */ +public class processState extends Thread{ + + private geoc gui; + private int state; + + /** Creates a new instance of processState */ + public processState(geoc _gui) { + gui = _gui; + } + + public void set(int _state){ + state = _state; + } + + public void run(){ + switch(state){ + case LocationProvider.AVAILABLE: + gui.get_stringItemHead2().setLabel("GPS available"); + break; + case LocationProvider.OUT_OF_SERVICE: + gui.get_stringItemHead2().setLabel("no GPS!"); + break; + case LocationProvider.TEMPORARILY_UNAVAILABLE: + gui.get_stringItemHead2().setLabel("weak GPS signal"); + break; + default: + gui.get_stringItemHead2().setLabel("Location API Error"); + } + } + +} |
