Diffstat (limited to 'noncore/net/wellenreiter/gui/configwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/configwindow.cpp | 20 |
1 files changed, 19 insertions, 1 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 | |||
@@ -188,5 +188,23 @@ void WellenreiterConfigWindow::channelAllClicked(int state) | |||
188 | channel12->setChecked( b ); | 188 | channel12->setChecked( b ); |
189 | channel13->setChecked( b ); | 189 | channel13->setChecked( b ); |
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 | } | ||