author | mickeyl <mickeyl> | 2003-09-25 15:02:43 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-09-25 15:02:43 (UTC) |
commit | 9047b6d4ffe0cbcecd90fd994ce2353277c378a1 (patch) (side-by-side diff) | |
tree | c649c9c85c9c5846c0019e26bb3aaafbfbc76757 /noncore/net/wellenreiter/gui/configwindow.cpp | |
parent | 990e3c5834b33227b327e1fec0d7f7f429e75952 (diff) | |
download | opie-9047b6d4ffe0cbcecd90fd994ce2353277c378a1.zip opie-9047b6d4ffe0cbcecd90fd994ce2353277c378a1.tar.gz opie-9047b6d4ffe0cbcecd90fd994ce2353277c378a1.tar.bz2 |
start with persistent configuration
Diffstat (limited to 'noncore/net/wellenreiter/gui/configwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/configwindow.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/configwindow.cpp b/noncore/net/wellenreiter/gui/configwindow.cpp index a331925..d255c6a 100644 --- a/noncore/net/wellenreiter/gui/configwindow.cpp +++ b/noncore/net/wellenreiter/gui/configwindow.cpp @@ -57,2 +57,4 @@ WellenreiterConfigWindow::WellenreiterConfigWindow( QWidget * parent, const char + if ( !load() ) // no configuration present + { // try to guess device type @@ -79,2 +81,3 @@ WellenreiterConfigWindow::WellenreiterConfigWindow( QWidget * parent, const char } + } @@ -97,2 +100,8 @@ WellenreiterConfigWindow::WellenreiterConfigWindow( QWidget * parent, const char +WellenreiterConfigWindow::~WellenreiterConfigWindow() +{ + save(); +} + + int WellenreiterConfigWindow::driverType() const @@ -210 +219,23 @@ int WellenreiterConfigWindow::gpsPort() const } + + +bool WellenreiterConfigWindow::load() +{ +#ifdef Q_WS_X11 + #warning Persistent Configuration not yet implemented for standalone X11 build + return false; +#else + qDebug( "loading configuration settings..." ); + return true; +#endif +} + + +void WellenreiterConfigWindow::save() +{ +#ifdef Q_WS_X11 + #warning Persistent Configuration not yet implemented for standalone X11 build +#else + qDebug( "saving configuration settings..." ); +#endif +} |