summaryrefslogtreecommitdiffstats
path: root/kmail/callback.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/callback.cpp')
-rw-r--r--kmail/callback.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kmail/callback.cpp b/kmail/callback.cpp
index e124e0cc..0e25758c 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();
}