Last change
on this file since 6417 was 3073, checked in by christofd, 17 years ago |
rewrote livegpsplugin
- added a dialog showing the information
- using events/listeners to pass the gps data
|
File size:
1019 bytes
|
Line | |
---|
1 | /**
|
---|
2 | *
|
---|
3 | */
|
---|
4 | package livegps;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * @author cdaller
|
---|
8 | *
|
---|
9 | */
|
---|
10 | public class LiveGpsStatus {
|
---|
11 | public enum GpsStatus {CONNECTING, CONNECTED, DISCONNECTED, CONNECTION_FAILED};
|
---|
12 | private String statusMessage;
|
---|
13 | private GpsStatus status;
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * @param status
|
---|
17 | * @param statusMessage
|
---|
18 | */
|
---|
19 | public LiveGpsStatus(GpsStatus status, String statusMessage) {
|
---|
20 | super();
|
---|
21 | this.status = status;
|
---|
22 | this.statusMessage = statusMessage;
|
---|
23 | }
|
---|
24 | /**
|
---|
25 | * @return the status
|
---|
26 | */
|
---|
27 | public GpsStatus getStatus() {
|
---|
28 | return this.status;
|
---|
29 | }
|
---|
30 | /**
|
---|
31 | * @param status the status to set
|
---|
32 | */
|
---|
33 | public void setStatus(GpsStatus status) {
|
---|
34 | this.status = status;
|
---|
35 | }
|
---|
36 | /**
|
---|
37 | * @return the statusMessage
|
---|
38 | */
|
---|
39 | public String getStatusMessage() {
|
---|
40 | return this.statusMessage;
|
---|
41 | }
|
---|
42 | /**
|
---|
43 | * @param statusMessage the statusMessage to set
|
---|
44 | */
|
---|
45 | public void setStatusMessage(String statusMessage) {
|
---|
46 | this.statusMessage = statusMessage;
|
---|
47 | }
|
---|
48 |
|
---|
49 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.