author | zecke <zecke> | 2003-09-20 18:23:58 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-09-20 18:23:58 (UTC) |
commit | 2fbd2230957098e5601d9d5c4b04a4af220afbce (patch) (side-by-side diff) | |
tree | d187f0e8b61f97f36764591f6daa81d5bc2cda41 /core/settings/security/security.cpp | |
parent | a986ab57229fa7a0d039d320001dc48018951bf1 (diff) | |
download | opie-2fbd2230957098e5601d9d5c4b04a4af220afbce.zip opie-2fbd2230957098e5601d9d5c4b04a4af220afbce.tar.gz opie-2fbd2230957098e5601d9d5c4b04a4af220afbce.tar.bz2 |
Thanks to treke for tweaking the ui file
Allow the user to set how the QCOP bridge should response
Either in Qtopia1.7 mode or the one found prior including Opie1.0
or respond in both ways
We still need to check what sync utilities can cope with 'both'
Diffstat (limited to 'core/settings/security/security.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/settings/security/security.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/settings/security/security.cpp b/core/settings/security/security.cpp index 75a181b..c4726b3 100644 --- a/core/settings/security/security.cpp +++ b/core/settings/security/security.cpp @@ -24,4 +24,5 @@ #include <qpe/password.h> #include <qpe/qpedialog.h> +#include <qpe/qcopenvelope_qws.h> #include <qcheckbox.h> @@ -73,4 +74,7 @@ } + cfg.setGroup("SyncMode"); + int mode = cfg.readNumEntry("Mode",2); // Default to Sharp + syncModeCombo->setCurrentItem( mode - 1 ); connect(autologinToggle, SIGNAL(toggled(bool)), this, SLOT(toggleAutoLogin(bool))); @@ -133,4 +137,5 @@ void Security::accept() applySecurity(); QDialog::accept(); + QCopEnvelope env("QPE/System", "securityChanged()" ); } @@ -256,4 +261,6 @@ void Security::applySecurity() } + cfg.setGroup("SyncMode"); + cfg.writeEntry("Mode", syncModeCombo->currentItem()+1 ); } } |