summaryrefslogtreecommitdiffstats
path: root/wizards/kmailchanges.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 /wizards/kmailchanges.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 'wizards/kmailchanges.cpp')
-rw-r--r--wizards/kmailchanges.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/wizards/kmailchanges.cpp b/wizards/kmailchanges.cpp
index 93c11195..ca2969a5 100644
--- a/wizards/kmailchanges.cpp
+++ b/wizards/kmailchanges.cpp
@@ -42,7 +42,7 @@ static const char* s_folderContentsType[] = {
Wallet* CreateImapAccount::mWallet = 0;
-CreateImapAccount::CreateImapAccount( const QString &accountName, const QString &title )
+CreateImapAccount::CreateImapAccount( const TQString &accountName, const TQString &title )
: KConfigPropagator::Change( title ),
mAccountName( accountName ), mPort( 993 ), mEnableSieve( false ), mEnableSavePassword( true ),
mEncryption( None ), mAuthentication( NONE ), mAuthenticationSend( PLAIN ), mSmtpPort( 25 ),
@@ -56,22 +56,22 @@ CreateImapAccount::~CreateImapAccount()
delete mCustomWriter;
}
-void CreateImapAccount::setServer( const QString &s )
+void CreateImapAccount::setServer( const TQString &s )
{
mServer = s;
}
-void CreateImapAccount::setUser( const QString &s )
+void CreateImapAccount::setUser( const TQString &s )
{
mUser = s;
}
-void CreateImapAccount::setPassword( const QString &s )
+void CreateImapAccount::setPassword( const TQString &s )
{
mPassword = s;
}
-void CreateImapAccount::setRealName( const QString &s )
+void CreateImapAccount::setRealName( const TQString &s )
{
mRealName = s;
}
@@ -81,7 +81,7 @@ void CreateImapAccount::setPort( int port )
mPort = port;
}
-void CreateImapAccount::setEmail( const QString &s )
+void CreateImapAccount::setEmail( const TQString &s )
{
mEmail = s;
}
@@ -91,7 +91,7 @@ void CreateImapAccount::enableSieve( bool b )
mEnableSieve = b;
}
-void CreateImapAccount::setSieveVacationFileName( const QString& f )
+void CreateImapAccount::setSieveVacationFileName( const TQString& f )
{
mSieveVacationFileName = f;
}
@@ -113,7 +113,7 @@ void CreateImapAccount::setAuthentication(
mAuthentication = a;
}
-void CreateImapAccount::setDefaultDomain(const QString &d)
+void CreateImapAccount::setDefaultDomain(const TQString &d)
{
mDefaultDomain = d;
}
@@ -146,7 +146,7 @@ void CreateImapAccount::setCustomWriter(
}
-CreateDisconnectedImapAccount::CreateDisconnectedImapAccount(const QString & accountName) :
+CreateDisconnectedImapAccount::CreateDisconnectedImapAccount(const TQString & accountName) :
CreateImapAccount( accountName, i18n("Create Disconnected IMAP Account for KMail") ),
mLocalSubscription( false ), mGroupwareType( GroupwareKolab )
{
@@ -176,7 +176,7 @@ void CreateDisconnectedImapAccount::apply()
transportId = mExistingTransportId;
}
- c.setGroup( QString("Account %1").arg( accountId ) );
+ c.setGroup( TQString("Account %1").arg( accountId ) );
int uid;
if ( mExistingAccountId < 0 ) {
uid = kapp->random();
@@ -240,7 +240,7 @@ void CreateDisconnectedImapAccount::apply()
}
- c.setGroup( QString("Folder-%1").arg( uid ) );
+ c.setGroup( TQString("Folder-%1").arg( uid ) );
c.writeEntry( "isOpen", true );
if ( mEnableSavePassword ) {
@@ -248,7 +248,7 @@ void CreateDisconnectedImapAccount::apply()
c.writeEntry( "store-passwd", true );
}
- c.setGroup( QString("Transport %1").arg( transportId ) );
+ c.setGroup( TQString("Transport %1").arg( transportId ) );
c.writeEntry( "name", mAccountName );
c.writeEntry( "host", mServer );
c.writeEntry( "type", "smtp" );
@@ -282,14 +282,14 @@ void CreateDisconnectedImapAccount::apply()
if ( !identityManager.allEmails().contains( mEmail ) ) {
// Not sure how to name the identity. First one is "Default", next one mAccountName, but then...
// let's use the server name after that.
- QString accountName = mAccountName;
- const QStringList identities = identityManager.identities();
+ TQString accountName = mAccountName;
+ const TQStringList identities = identityManager.identities();
if ( identities.find( accountName ) != identities.end() ) {
accountName = mServer;
int i = 2;
// And if there's already one, number them
while ( identities.find( accountName ) != identities.end() ) {
- accountName = mServer + " " + QString::number( i++ );
+ accountName = mServer + " " + TQString::number( i++ );
}
}
@@ -305,7 +305,7 @@ void CreateDisconnectedImapAccount::apply()
}
}
-CreateOnlineImapAccount::CreateOnlineImapAccount(const QString & accountName) :
+CreateOnlineImapAccount::CreateOnlineImapAccount(const TQString & accountName) :
CreateImapAccount( accountName, i18n("Create Online IMAP Account for KMail") )
{
}
@@ -317,7 +317,7 @@ void CreateOnlineImapAccount::apply()
uint accCnt = c.readNumEntry( "accounts", 0 );
c.writeEntry( "accounts", accCnt+1 );
- c.setGroup( QString("Account %1").arg(accCnt+1) );
+ c.setGroup( TQString("Account %1").arg(accCnt+1) );
int uid = kapp->random();
c.writeEntry( "Folder", uid );
c.writeEntry( "Id", uid );
@@ -352,17 +352,17 @@ void CreateOnlineImapAccount::apply()
// locally unsubscribe the default folders
c.writeEntry( "locally-subscribed-folders", true );
- QString groupwareFolders = QString("/INBOX/%1/,/INBOX/%2/,/INBOX/%3/,/INBOX/%4/,/INBOX/%5/")
+ TQString groupwareFolders = TQString("/INBOX/%1/,/INBOX/%2/,/INBOX/%3/,/INBOX/%4/,/INBOX/%5/")
.arg( i18n(s_folderContentsType[0]) ).arg( i18n(s_folderContentsType[1]) )
.arg( i18n(s_folderContentsType[2]) ).arg( i18n(s_folderContentsType[3]) )
.arg( i18n(s_folderContentsType[4]) );
c.writeEntry( "locallyUnsubscribedFolders", groupwareFolders );
- c.setGroup( QString("Folder-%1").arg( uid ) );
+ c.setGroup( TQString("Folder-%1").arg( uid ) );
c.writeEntry( "isOpen", true );
}
-bool CreateImapAccount::writeToWallet(const QString & type, int id)
+bool CreateImapAccount::writeToWallet(const TQString & type, int id)
{
if ( !Wallet::isEnabled() )
return false;
@@ -378,5 +378,5 @@ bool CreateImapAccount::writeToWallet(const QString & type, int id)
mWallet->createFolder( "kmail" );
mWallet->setFolder( "kmail" );
}
- return mWallet->writePassword( type + "-" + QString::number( id ), mPassword );
+ return mWallet->writePassword( type + "-" + TQString::number( id ), mPassword );
}