diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kmail/callback.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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 'kmail/callback.cpp')
-rw-r--r-- | kmail/callback.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kmail/callback.cpp b/kmail/callback.cpp index e124e0cc0..0e25758c1 100644 --- a/kmail/callback.cpp +++ b/kmail/callback.cpp @@ -56,8 +56,8 @@ Callback::Callback( KMMessage* msg, KMReaderWin* readerWin ) { } -bool Callback::mailICal( const QString& to, const QString &iCal, - const QString& subject, const QString &status, +bool Callback::mailICal( const TQString& to, const TQString &iCal, + const TQString& subject, const TQString &status, bool delMessage ) const { kdDebug(5006) << "Mailing message:\n" << iCal << endl; @@ -66,14 +66,14 @@ bool Callback::mailICal( const QString& to, const QString &iCal, msg->initHeader(); msg->setSubject( subject ); if ( GlobalSettings::self()->exchangeCompatibleInvitations() ) { - if ( status == QString("cancel") ) - msg->setSubject( QString("Declined: %1").arg(subject).replace("Answer: ","") ); - else if ( status == QString("tentative") ) - msg->setSubject(QString("Tentative: %1").arg(subject).replace("Answer: ","") ); - else if ( status == QString("accepted") ) - msg->setSubject( QString("Accepted: %1").arg(subject).replace("Answer: ","") ); - else if ( status == QString("delegated") ) - msg->setSubject( QString("Delegated: %1").arg(subject).replace("Answer: ","") ); + if ( status == TQString("cancel") ) + msg->setSubject( TQString("Declined: %1").arg(subject).replace("Answer: ","") ); + else if ( status == TQString("tentative") ) + msg->setSubject(TQString("Tentative: %1").arg(subject).replace("Answer: ","") ); + else if ( status == TQString("accepted") ) + msg->setSubject( TQString("Accepted: %1").arg(subject).replace("Answer: ","") ); + else if ( status == TQString("delegated") ) + msg->setSubject( TQString("Delegated: %1").arg(subject).replace("Answer: ","") ); } msg->setTo( to ); msg->setFrom( receiver() ); @@ -99,7 +99,7 @@ bool Callback::mailICal( const QString& to, const QString &iCal, if( identity != KPIM::Identity::null() ) { // Identity found. Use this msg->setFrom( identity.fullEmailAddr() ); - msg->setHeaderField("X-KMail-Identity", QString::number( identity.uoid() )); + msg->setHeaderField("X-KMail-Identity", TQString::number( identity.uoid() )); } // Remove BCC from identity on ical invitations (https://intevation.de/roundup/kolab/issue474) msg->setBcc( "" ); @@ -136,7 +136,7 @@ bool Callback::mailICal( const QString& to, const QString &iCal, return true; } -QString Callback::receiver() const +TQString Callback::receiver() const { if ( mReceiverSet ) // Already figured this out @@ -144,9 +144,9 @@ QString Callback::receiver() const mReceiverSet = true; - QStringList addrs = KPIM::splitEmailAddrList( mMsg->to() ); + TQStringList addrs = KPIM::splitEmailAddrList( mMsg->to() ); int found = 0; - for( QStringList::Iterator it = addrs.begin(); it != addrs.end(); ++it ) { + for( TQStringList::Iterator it = addrs.begin(); it != addrs.end(); ++it ) { if( kmkernel->identityManager()->identityForAddress( *it ) != KPIM::Identity::null() ) { // Ok, this could be us @@ -154,8 +154,8 @@ QString Callback::receiver() const mReceiver = *it; } } - QStringList ccaddrs = KPIM::splitEmailAddrList( mMsg->cc() ); - for( QStringList::Iterator it = ccaddrs.begin(); it != ccaddrs.end(); ++it ) { + TQStringList ccaddrs = KPIM::splitEmailAddrList( mMsg->cc() ); + for( TQStringList::Iterator it = ccaddrs.begin(); it != ccaddrs.end(); ++it ) { if( kmkernel->identityManager()->identityForAddress( *it ) != KPIM::Identity::null() ) { // Ok, this could be us @@ -165,7 +165,7 @@ QString Callback::receiver() const } if( found != 1 ) { bool ok; - QString selectMessage; + TQString selectMessage; if (found == 0) { selectMessage = i18n("<qt>None of your identities match the " "receiver of this message,<br>please " @@ -184,7 +184,7 @@ QString Callback::receiver() const selectMessage, addrs+ccaddrs, 0, FALSE, &ok, kmkernel->mainWin() ); if( !ok ) - mReceiver = QString::null; + mReceiver = TQString::null; } return mReceiver; @@ -213,7 +213,7 @@ bool Callback::deleteInvitationAfterReply() const return GlobalSettings::self()->deleteInvitationEmailsAfterSendingReply(); } -QString Callback::sender() const +TQString Callback::sender() const { return mMsg->from(); } |