summaryrefslogtreecommitdiffstats
path: root/knode/knserverinfo.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /knode/knserverinfo.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knode/knserverinfo.cpp')
-rw-r--r--knode/knserverinfo.cpp14
1 files changed, 7 insertions, 7 deletions
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 <qwidget.h>
+#include <tqwidget.h>
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 );
}