From 10308be19ef7fa44699562cc75946e7ea1fdf6b9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 7 Jan 2011 03:45:53 +0000 Subject: Revert automated changes Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kio/misc/kwalletd/kbetterthankdialogbase.ui | 10 ++--- kio/misc/kwalletd/ktimeout.cpp | 6 +-- kio/misc/kwalletd/kwalletd.cpp | 68 ++++++++++++++--------------- kio/misc/kwalletd/kwalletd.h | 2 +- kio/misc/kwalletd/kwalletwizard.ui | 40 ++++++++--------- 5 files changed, 63 insertions(+), 63 deletions(-) (limited to 'kio/misc/kwalletd') diff --git a/kio/misc/kwalletd/kbetterthankdialogbase.ui b/kio/misc/kwalletd/kbetterthankdialogbase.ui index e3fadec5d..ecf2d236f 100644 --- a/kio/misc/kwalletd/kbetterthankdialogbase.ui +++ b/kio/misc/kwalletd/kbetterthankdialogbase.ui @@ -4,7 +4,7 @@ KBetterThanKDialogBase - + 0 0 @@ -37,7 +37,7 @@ Expanding - + 41 21 @@ -46,7 +46,7 @@ - tqlayout1 + layout1 @@ -99,7 +99,7 @@ Expanding - + 61 21 @@ -147,7 +147,7 @@ accept() reject() - + kactivelabel.h diff --git a/kio/misc/kwalletd/ktimeout.cpp b/kio/misc/kwalletd/ktimeout.cpp index d4c87bd28..c431ecf69 100644 --- a/kio/misc/kwalletd/ktimeout.cpp +++ b/kio/misc/kwalletd/ktimeout.cpp @@ -39,7 +39,7 @@ void KTimeout::clear() { void KTimeout::removeTimer(int id) { - TQTimer *t = _timers.tqfind(id); + TQTimer *t = _timers.find(id); if (t != 0L) { _timers.remove(id); // autodeletes } @@ -47,7 +47,7 @@ void KTimeout::removeTimer(int id) { void KTimeout::addTimer(int id, int timeout) { - if (_timers.tqfind(id) != 0L) { + if (_timers.find(id) != 0L) { return; } @@ -59,7 +59,7 @@ void KTimeout::addTimer(int id, int timeout) { void KTimeout::resetTimer(int id, int timeout) { - TQTimer *t = _timers.tqfind(id); + TQTimer *t = _timers.find(id); if (t) { t->changeInterval(timeout); } diff --git a/kio/misc/kwalletd/kwalletd.cpp b/kio/misc/kwalletd/kwalletd.cpp index 8df3ddb63..069575710 100644 --- a/kio/misc/kwalletd/kwalletd.cpp +++ b/kio/misc/kwalletd/kwalletd.cpp @@ -121,7 +121,7 @@ int KWalletD::generateHandle() { // ASSUMPTION: RAND_MAX is fairly large. do { rc = rand(); - } while (_wallets.tqfind(rc) || rc == 0); + } while (_wallets.find(rc) || rc == 0); return rc; } @@ -308,7 +308,7 @@ void KWalletD::checkActiveDialog() { } int KWalletD::doTransactionOpen(const TQCString& appid, const TQString& wallet, uint wId, bool modal) { - if (_firstUse && !wallets().tqcontains(KWallet::Wallet::LocalWallet())) { + if (_firstUse && !wallets().contains(KWallet::Wallet::LocalWallet())) { // First use wizard KWalletWizard *wiz = new KWalletWizard(0); setupDialog( wiz, wId, appid, modal ); @@ -529,11 +529,11 @@ int KWalletD::internalOpen(const TQCString& appid, const TQString& wallet, bool KApplication::startServiceByDesktopName("kwalletmanager-kwalletd"); } } else { - if (!_handles[appid].tqcontains(rc) && _openPrompt && !isAuthorizedApp(appid, wallet, w)) { + if (!_handles[appid].contains(rc) && _openPrompt && !isAuthorizedApp(appid, wallet, w)) { return -1; } _handles[appid].append(rc); - _wallets.tqfind(rc)->ref(); + _wallets.find(rc)->ref(); } return rc; @@ -567,7 +567,7 @@ bool KWalletD::isAuthorizedApp(const TQCString& appid, const TQString& wallet, W KConfig cfg("kwalletrc"); cfg.setGroup("Auto Allow"); TQStringList apps = cfg.readListEntry(wallet); - if (!apps.tqcontains(thisApp)) { + if (!apps.contains(thisApp)) { apps += thisApp; _implicitAllowMap[wallet] += thisApp; cfg.writeEntry(wallet, apps); @@ -578,7 +578,7 @@ bool KWalletD::isAuthorizedApp(const TQCString& appid, const TQString& wallet, W KConfig cfg("kwalletrc"); cfg.setGroup("Auto Deny"); TQStringList apps = cfg.readListEntry(wallet); - if (!apps.tqcontains(thisApp)) { + if (!apps.contains(thisApp)) { apps += thisApp; _implicitDenyMap[wallet] += thisApp; cfg.writeEntry(wallet, apps); @@ -646,7 +646,7 @@ void KWalletD::doTransactionChangePassword(const TQCString& appid, const TQStrin return; } - w = _wallets.tqfind(handle); + w = _wallets.find(handle); reclose = true; } else { handle = it.currentKey(); @@ -710,14 +710,14 @@ int KWalletD::close(const TQString& wallet, bool force) { int KWalletD::closeWallet(KWallet::Backend *w, int handle, bool force) { if (w) { const TQString& wallet = w->walletName(); - assert(_passwords.tqcontains(wallet)); + assert(_passwords.contains(wallet)); if (w->refCount() == 0 || force) { - tqinvalidateHandle(handle); + invalidateHandle(handle); if (_closeIdle && _timeouts) { _timeouts->removeTimer(handle); } _wallets.remove(handle); - if (_passwords.tqcontains(wallet)) { + if (_passwords.contains(wallet)) { w->close(TQByteArray().duplicate(_passwords[wallet].data(), _passwords[wallet].length())); _passwords[wallet].fill(0); _passwords.remove(wallet); @@ -735,15 +735,15 @@ int KWalletD::closeWallet(KWallet::Backend *w, int handle, bool force) { int KWalletD::close(int handle, bool force) { TQCString appid = friendlyDCOPPeerName(); - KWallet::Backend *w = _wallets.tqfind(handle); - bool tqcontains = false; + KWallet::Backend *w = _wallets.find(handle); + bool contains = false; if (w) { // the handle is valid - if (_handles.tqcontains(appid)) { // we know this app - if (_handles[appid].tqcontains(handle)) { + if (_handles.contains(appid)) { // we know this app + if (_handles[appid].contains(handle)) { // the app owns this handle - _handles[appid].remove(_handles[appid].tqfind(handle)); - tqcontains = true; + _handles[appid].remove(_handles[appid].find(handle)); + contains = true; if (_handles[appid].isEmpty()) { _handles.remove(appid); } @@ -751,15 +751,15 @@ int KWalletD::close(int handle, bool force) { } // watch the side effect of the deref() - if ((tqcontains && w->deref() == 0 && !_leaveOpen) || force) { + if ((contains && w->deref() == 0 && !_leaveOpen) || force) { if (_closeIdle && _timeouts) { _timeouts->removeTimer(handle); } _wallets.remove(handle); if (force) { - tqinvalidateHandle(handle); + invalidateHandle(handle); } - if (_passwords.tqcontains(w->walletName())) { + if (_passwords.contains(w->walletName())) { w->close(TQByteArray().duplicate(_passwords[w->walletName()].data(), _passwords[w->walletName()].length())); _passwords[w->walletName()].fill(0); _passwords.remove(w->walletName()); @@ -792,7 +792,7 @@ bool KWalletD::isOpen(int handle) { return false; } - KWallet::Backend *rc = _wallets.tqfind(handle); + KWallet::Backend *rc = _wallets.find(handle); if (rc == 0 && ++_failed > 5) { _failed = 0; @@ -1179,11 +1179,11 @@ int KWalletD::removeEntry(int handle, const TQString& folder, const TQString& ke void KWalletD::slotAppUnregistered(const TQCString& app) { - if (_handles.tqcontains(app)) { + if (_handles.contains(app)) { TQValueList l = _handles[app]; for (TQValueList::Iterator i = l.begin(); i != l.end(); ++i) { _handles[app].remove(*i); - KWallet::Backend *w = _wallets.tqfind(*i); + KWallet::Backend *w = _wallets.find(*i); if (w && !_leaveOpen && 0 == w->deref()) { close(w->walletName(), true); } @@ -1193,7 +1193,7 @@ void KWalletD::slotAppUnregistered(const TQCString& app) { } -void KWalletD::tqinvalidateHandle(int handle) { +void KWalletD::invalidateHandle(int handle) { for (TQMap >::Iterator i = _handles.begin(); i != _handles.end(); ++i) { @@ -1207,11 +1207,11 @@ KWallet::Backend *KWalletD::getWallet(const TQCString& appid, int handle) { return 0L; } - KWallet::Backend *w = _wallets.tqfind(handle); + KWallet::Backend *w = _wallets.find(handle); if (w) { // the handle is valid - if (_handles.tqcontains(appid)) { // we know this app - if (_handles[appid].tqcontains(handle)) { + if (_handles.contains(appid)) { // we know this app + if (_handles[appid].contains(handle)) { // the app owns this handle _failed = 0; if (_closeIdle && _timeouts) { @@ -1285,7 +1285,7 @@ TQStringList KWalletD::users(const TQString& wallet) const { ++it) { if (it.current()->walletName() == wallet) { for (TQMap >::ConstIterator hit = _handles.begin(); hit != _handles.end(); ++hit) { - if (hit.data().tqcontains(it.currentKey())) { + if (hit.data().contains(it.currentKey())) { rc += hit.key(); } } @@ -1302,7 +1302,7 @@ bool KWalletD::disconnectApplication(const TQString& wallet, const TQCString& ap it.current(); ++it) { if (it.current()->walletName() == wallet) { - if (_handles[application].tqcontains(it.currentKey())) { + if (_handles[application].contains(it.currentKey())) { _handles[application].remove(it.currentKey()); if (_handles[application].isEmpty()) { @@ -1416,7 +1416,7 @@ bool KWalletD::isEnabled() const { bool KWalletD::folderDoesNotExist(const TQString& wallet, const TQString& folder) { - if (!wallets().tqcontains(wallet)) { + if (!wallets().contains(wallet)) { return true; } @@ -1435,7 +1435,7 @@ bool KWalletD::folderDoesNotExist(const TQString& wallet, const TQString& folder bool KWalletD::keyDoesNotExist(const TQString& wallet, const TQString& folder, const TQString& key) { - if (!wallets().tqcontains(wallet)) { + if (!wallets().contains(wallet)) { return true; } @@ -1454,12 +1454,12 @@ bool KWalletD::keyDoesNotExist(const TQString& wallet, const TQString& folder, c bool KWalletD::implicitAllow(const TQString& wallet, const TQCString& app) { - return _implicitAllowMap[wallet].tqcontains(TQString::fromLocal8Bit(app)); + return _implicitAllowMap[wallet].contains(TQString::fromLocal8Bit(app)); } bool KWalletD::implicitDeny(const TQString& wallet, const TQCString& app) { - return _implicitDenyMap[wallet].tqcontains(TQString::fromLocal8Bit(app)); + return _implicitDenyMap[wallet].contains(TQString::fromLocal8Bit(app)); } @@ -1468,12 +1468,12 @@ TQCString KWalletD::friendlyDCOPPeerName() { if (!dc) { return ""; } - return dc->senderId().tqreplace(TQRegExp("-[0-9]+$"), ""); + return dc->senderId().replace(TQRegExp("-[0-9]+$"), ""); } void KWalletD::timedOut(int id) { - KWallet::Backend *w = _wallets.tqfind(id); + KWallet::Backend *w = _wallets.find(id); if (w) { closeWallet(w, id, true); } diff --git a/kio/misc/kwalletd/kwalletd.h b/kio/misc/kwalletd/kwalletd.h index ba83b4efc..2aea371ba 100644 --- a/kio/misc/kwalletd/kwalletd.h +++ b/kio/misc/kwalletd/kwalletd.h @@ -161,7 +161,7 @@ class KWalletD : public KDEDModule { // Generate a new unique handle. int generateHandle(); // Invalidate a handle (remove it from the TQMap) - void tqinvalidateHandle(int handle); + void invalidateHandle(int handle); // Emit signals about closing wallets void doCloseSignals(int,const TQString&); void emitFolderUpdated(const TQString&, const TQString&); diff --git a/kio/misc/kwalletd/kwalletwizard.ui b/kio/misc/kwalletd/kwalletwizard.ui index a6278e3e9..609508e11 100644 --- a/kio/misc/kwalletd/kwalletwizard.ui +++ b/kio/misc/kwalletd/kwalletwizard.ui @@ -4,7 +4,7 @@ KWalletWizard - + 0 0 @@ -36,7 +36,7 @@ Expanding - + 21 21 @@ -58,7 +58,7 @@ RichText - + WordBreak|AlignCenter @@ -83,7 +83,7 @@ RichText - + WordBreak|AlignVCenter @@ -135,7 +135,7 @@ Expanding - + 140 21 @@ -152,7 +152,7 @@ Expanding - + 140 31 @@ -209,7 +209,7 @@ - tqlayout7 + layout7 @@ -217,7 +217,7 @@ - tqlayout5 + layout5 @@ -233,7 +233,7 @@ Enter a new password: - + AlignVCenter|AlignRight @@ -250,7 +250,7 @@ Verify password: - + AlignVCenter|AlignRight @@ -261,7 +261,7 @@ - tqlayout4 + layout4 @@ -311,7 +311,7 @@ Expanding - + 21 51 @@ -328,7 +328,7 @@ Expanding - + 101 21 @@ -345,7 +345,7 @@ Expanding - + 111 31 @@ -362,7 +362,7 @@ Expanding - + 21 70 @@ -376,7 +376,7 @@ - + WordBreak|AlignVCenter|AlignRight @@ -403,7 +403,7 @@ RichText - + WordBreak|AlignVCenter @@ -417,7 +417,7 @@ Expanding - + 21 121 @@ -450,7 +450,7 @@ Expanding - + 21 51 @@ -541,5 +541,5 @@ setBasic() destroy() - + -- cgit v1.2.1