Date: | 2010-11-04 18:57:31 (13 years 4 months ago) |
---|---|
Author: | nielsk |
Commit: | 0dd2f334d083e0ff86bdcd480c3e3c1379f78ab6 |
Message: | emit a signal if the gps device got a fix |
Files: |
gpsclient.cpp (1 diff) gpsclient.h (1 diff) |
Change Details
gpsclient.cpp | ||
---|---|---|
78 | 78 | } |
79 | 79 | } |
80 | 80 | if (mode > 1) { |
81 | emit fixed(true); | |
81 | 82 | emit position(QPointF(lon, lat)); |
83 | } else { | |
84 | emit fixed(false); | |
82 | 85 | } |
83 | 86 | } |
84 | 87 | } |
gpsclient.h | ||
---|---|---|
41 | 41 | void speed(qreal speed); |
42 | 42 | void connected(); |
43 | 43 | void disconnected(); |
44 | void fixed(bool fix); | |
44 | 45 | |
45 | 46 | private slots: |
46 | 47 | void readData(); |
Branches:
master