From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- knode/knserverinfo.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'knode/knserverinfo.cpp') diff --git a/knode/knserverinfo.cpp b/knode/knserverinfo.cpp index b79735a2f..d314a7710 100644 --- a/knode/knserverinfo.cpp +++ b/knode/knserverinfo.cpp @@ -25,7 +25,7 @@ using namespace KWallet; #include "knaccountmanager.h" #include "utilities.h" -#include +#include KNServerInfo::KNServerInfo() : t_ype(STnntp), i_d(-1), p_ort(119), h_old(300), @@ -77,7 +77,7 @@ void KNServerInfo::readConf(KConfig *conf) if (Wallet::isOpen( Wallet::NetworkWallet() )) readPassword(); - QString encStr = conf->readEntry( "encryption", "None" ); + TQString encStr = conf->readEntry( "encryption", "None" ); if ( encStr.contains( "SSL", false ) ) mEncryption = SSL; else if ( encStr.contains( "TLS", false ) ) @@ -102,7 +102,7 @@ void KNServerInfo::saveConf(KConfig *conf) // open wallet for storing only if the user actually changed the password if (n_eedsLogon && p_assDirty) { Wallet *wallet = KNAccountManager::wallet(); - if (!wallet || wallet->writePassword(QString::number(i_d), p_ass)) { + if (!wallet || wallet->writePassword(TQString::number(i_d), p_ass)) { if ( KMessageBox::warningYesNo( 0, i18n("KWallet is not available. It is strongly recommended to use " "KWallet for managing your passwords.\n" @@ -151,7 +151,7 @@ bool KNServerInfo::operator==(const KNServerInfo &s) } -const QString &KNServerInfo::pass() +const TQString &KNServerInfo::pass() { // if we need to load the password, load all of them if (n_eedsLogon && !mPassLoaded && p_ass.isEmpty() ) @@ -160,7 +160,7 @@ const QString &KNServerInfo::pass() return p_ass; } -void KNServerInfo::setPass(const QString &s) +void KNServerInfo::setPass(const TQString &s) { if (p_ass != s) { p_ass = s; @@ -178,11 +178,11 @@ void KNServerInfo::readPassword() // check wether there is a chance to find our password at all if (Wallet::folderDoesNotExist(Wallet::NetworkWallet(), "knode") || - Wallet::keyDoesNotExist(Wallet::NetworkWallet(), "knode", QString::number(i_d))) + Wallet::keyDoesNotExist(Wallet::NetworkWallet(), "knode", TQString::number(i_d))) return; // finally try to open the wallet and read the password KWallet::Wallet *wallet = KNAccountManager::wallet(); if ( wallet ) - wallet->readPassword( QString::number(i_d), p_ass ); + wallet->readPassword( TQString::number(i_d), p_ass ); } -- cgit v1.2.1