summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/configwindow.cpp
Side-by-side diff
Diffstat (limited to 'noncore/net/wellenreiter/gui/configwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/configwindow.cpp20
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
@@ -187,6 +187,24 @@ void WellenreiterConfigWindow::channelAllClicked(int state)
channel11->setChecked( b );
channel12->setChecked( b );
channel13->setChecked( b );
- channel14->setChecked( b );
+ channel14->setChecked( b );
}
+
+bool WellenreiterConfigWindow::useGPS() const
+{
+ return enableGPS->isChecked();
+}
+
+
+const QString WellenreiterConfigWindow::gpsHost() const
+{
+ return useGPS() ? gpsdHost->currentText() : QString::null;
+}
+
+
+int WellenreiterConfigWindow::gpsPort() const
+{
+ bool ok;
+ return useGPS() ? gpsdPort->value() : -1;
+}