author | mickeyl <mickeyl> | 2003-08-11 19:04:52 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-08-11 19:04:52 (UTC) |
commit | e7f79ca3acf58aef3ff150a2974f8087189621f5 (patch) (unidiff) | |
tree | b8397506f85d9a3b547940e416111de4b2da1f18 /noncore/net/wellenreiter/gui/configwindow.cpp | |
parent | 62cb34a352c38f97967882a7ac604d9670f0e75f (diff) | |
download | opie-e7f79ca3acf58aef3ff150a2974f8087189621f5.zip opie-e7f79ca3acf58aef3ff150a2974f8087189621f5.tar.gz opie-e7f79ca3acf58aef3ff150a2974f8087189621f5.tar.bz2 |
assorted fixes and more work on GPS
Diffstat (limited to 'noncore/net/wellenreiter/gui/configwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/configwindow.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/configwindow.cpp b/noncore/net/wellenreiter/gui/configwindow.cpp index 11394d7..a331925 100644 --- a/noncore/net/wellenreiter/gui/configwindow.cpp +++ b/noncore/net/wellenreiter/gui/configwindow.cpp | |||
@@ -190,3 +190,21 @@ void WellenreiterConfigWindow::channelAllClicked(int state) | |||
190 | channel14->setChecked( b ); | 190 | channel14->setChecked( b ); |
191 | } | 191 | } |
192 | 192 | ||
193 | |||
194 | bool WellenreiterConfigWindow::useGPS() const | ||
195 | { | ||
196 | return enableGPS->isChecked(); | ||
197 | } | ||
198 | |||
199 | |||
200 | const QString WellenreiterConfigWindow::gpsHost() const | ||
201 | { | ||
202 | return useGPS() ? gpsdHost->currentText() : QString::null; | ||
203 | } | ||
204 | |||
205 | |||
206 | int WellenreiterConfigWindow::gpsPort() const | ||
207 | { | ||
208 | bool ok; | ||
209 | return useGPS() ? gpsdPort->value() : -1; | ||
210 | } | ||