author | zecke <zecke> | 2004-02-21 11:32:55 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-02-21 11:32:55 (UTC) |
commit | f80b38b2e348b588bf7560161d7551e6bd4939c0 (patch) (side-by-side diff) | |
tree | 34c4359580641cb1447dab8df8731c9733e1d39f /core/launcher/transferserver.cpp | |
parent | b38daa3f05f3a250a8c5114890158863ab02a99f (diff) | |
download | opie-f80b38b2e348b588bf7560161d7551e6bd4939c0.zip opie-f80b38b2e348b588bf7560161d7551e6bd4939c0.tar.gz opie-f80b38b2e348b588bf7560161d7551e6bd4939c0.tar.bz2 |
Move to LibOpie2
remove launcher global and use OGlobal
Diffstat (limited to 'core/launcher/transferserver.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/launcher/transferserver.cpp | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/core/launcher/transferserver.cpp b/core/launcher/transferserver.cpp index 9519d11..9cb9d7a 100644 --- a/core/launcher/transferserver.cpp +++ b/core/launcher/transferserver.cpp @@ -21,3 +21,3 @@ -#include <qtopia/global.h> +#include <opie2/oglobal.h> #include <qtopia/qpeapplication.h> @@ -34,3 +34,3 @@ #include <crypt.h> -#endif /* Q_OS_MACX */ +#endif /* Q_OS_MACX */ @@ -65,3 +65,2 @@ -#include "launcherglobal.h" @@ -116,3 +115,3 @@ QString SyncAuthentication::serverId() if ( r.isEmpty() ) { - r = Opie::Global::uuid(); + r = OGlobal::generateUuid(); cfg.writeEntry("serverid", r ); @@ -195,7 +194,7 @@ bool SyncAuthentication::checkPassword( const QString& password ) int now = time(0); - + Config cfg("Security"); - cfg.setGroup("Sync"); + cfg.setGroup("Sync"); QString syncapp = cfg.readEntry("syncapp","Qtopia"); - + //No password needed if the user really wants it @@ -203,6 +202,6 @@ bool SyncAuthentication::checkPassword( const QString& password ) return TRUE; - } - + } + // Detect old Qtopia Desktop (no password) - if ( password.isEmpty() ) { + if ( password.isEmpty() ) { if ( denials < 3 || now > lastdenial+600 ) { @@ -221,6 +220,6 @@ bool SyncAuthentication::checkPassword( const QString& password ) lastdenial=now; - } + } return FALSE; - - } + + } @@ -231,3 +230,3 @@ bool SyncAuthentication::checkPassword( const QString& password ) - ++lock; + ++lock; |