summaryrefslogtreecommitdiffstats
path: root/kmail/templateparser.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kmail/templateparser.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/templateparser.cpp')
-rw-r--r--kmail/templateparser.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kmail/templateparser.cpp b/kmail/templateparser.cpp
index 26355ac5b..d497f1846 100644
--- a/kmail/templateparser.cpp
+++ b/kmail/templateparser.cpp
@@ -126,7 +126,7 @@ TQString TemplateParser::getFName( const TQString &str )
// last resort -- return 'name' from 'name@domain'
int sep_pos;
TQString res;
- if ( ( sep_pos = str.find( '@' ) ) > 0 ) {
+ if ( ( sep_pos = str.tqfind( '@' ) ) > 0 ) {
int i;
for ( i = (sep_pos - 1); i >= 0; --i ) {
TQChar c = str[i];
@@ -136,7 +136,7 @@ TQString TemplateParser::getFName( const TQString &str )
break;
}
}
- } else if ( ( sep_pos = str.find(',') ) > 0 ) {
+ } else if ( ( sep_pos = str.tqfind(',') ) > 0 ) {
unsigned int i;
bool begin = false;
for ( i = sep_pos; i < str.length(); ++i ) {
@@ -169,7 +169,7 @@ TQString TemplateParser::getLName( const TQString &str )
// else format is 'First Last'
int sep_pos;
TQString res;
- if ( ( sep_pos = str.find(',') ) > 0 ) {
+ if ( ( sep_pos = str.tqfind(',') ) > 0 ) {
int i;
for ( i = sep_pos; i >= 0; --i ) {
TQChar c = str[i];
@@ -180,7 +180,7 @@ TQString TemplateParser::getLName( const TQString &str )
}
}
} else {
- if ( ( sep_pos = str.find( ' ' ) ) > 0 ) {
+ if ( ( sep_pos = str.tqfind( ' ' ) ) > 0 ) {
unsigned int i;
bool begin = false;
for ( i = sep_pos; i < str.length(); ++i ) {
@@ -297,11 +297,11 @@ void TemplateParser::processWithTemplate( const TQString &tmpl )
arg( path ).arg(file.errorString() ));
}
- } else if ( cmd.startsWith( "QUOTEPIPE=" ) ) {
+ } else if ( cmd.startsWith( "TQUOTEPIPE=" ) ) {
// pipe message body throw command and insert it as quotation
- kdDebug() << "Command: QUOTEPIPE=" << endl;
+ kdDebug() << "Command: TQUOTEPIPE=" << endl;
TQString q;
- int len = parseQuotes( "QUOTEPIPE=", cmd, q );
+ int len = parseQuotes( "TQUOTEPIPE=", cmd, q );
i += len;
TQString pipe_cmd = q;
if ( mOrigMsg ) {
@@ -311,18 +311,18 @@ void TemplateParser::processWithTemplate( const TQString &tmpl )
body.append( quote );
}
- } else if ( cmd.startsWith( "QUOTE" ) ) {
- kdDebug() << "Command: QUOTE" << endl;
- i += strlen( "QUOTE" );
+ } else if ( cmd.startsWith( "TQUOTE" ) ) {
+ kdDebug() << "Command: TQUOTE" << endl;
+ i += strlen( "TQUOTE" );
if ( mOrigMsg ) {
TQString quote = mOrigMsg->asQuotedString( "", mQuoteString, messageText( true ),
shouldStripSignature(), mAllowDecryption );
body.append( quote );
}
- } else if ( cmd.startsWith( "QHEADERS" ) ) {
- kdDebug() << "Command: QHEADERS" << endl;
- i += strlen( "QHEADERS" );
+ } else if ( cmd.startsWith( "TQHEADERS" ) ) {
+ kdDebug() << "Command: TQHEADERS" << endl;
+ i += strlen( "TQHEADERS" );
if ( mOrigMsg ) {
TQString quote = mOrigMsg->asQuotedString( "", mQuoteString,
mOrigMsg->headerAsSendableString(),
@@ -1004,10 +1004,10 @@ TQString TemplateParser::findTemplate()
TQString tmpl;
if ( !mFolder ) { // find folder message belongs to
- mFolder = mMsg->parent();
+ mFolder = mMsg->tqparent();
if ( !mFolder ) {
if ( mOrigMsg ) {
- mFolder = mOrigMsg->parent();
+ mFolder = mOrigMsg->tqparent();
}
if ( !mFolder ) {
kdDebug(5006) << "Oops! No folder for message" << endl;