summaryrefslogtreecommitdiffstats
path: root/kmail/partNode.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 /kmail/partNode.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 'kmail/partNode.cpp')
-rw-r--r--kmail/partNode.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kmail/partNode.cpp b/kmail/partNode.cpp
index 4fd51c857..80e0545bf 100644
--- a/kmail/partNode.cpp
+++ b/kmail/partNode.cpp
@@ -35,7 +35,7 @@
#include <kdebug.h>
#include "kmmimeparttree.h"
#include <mimelib/utility.h>
-#include <qregexp.h>
+#include <tqregexp.h>
#include <kasciistricmp.h>
#include "util.h"
@@ -164,7 +164,7 @@ partNode::~partNode() {
#ifndef NDEBUG
void partNode::dump( int chars ) const {
- kdDebug(5006) << QString().fill( ' ', chars ) << "+ "
+ kdDebug(5006) << TQString().fill( ' ', chars ) << "+ "
<< typeString() << '/' << subTypeString() << endl;
if ( mChild )
mChild->dump( chars + 1 );
@@ -175,7 +175,7 @@ void partNode::dump( int chars ) const {
void partNode::dump( int ) const {}
#endif
-const QCString & partNode::encodedBody() {
+const TQCString & partNode::encodedBody() {
if ( mEncodedOk )
return mEncodedBody;
@@ -218,13 +218,13 @@ void partNode::buildObjectTree( bool processSiblings )
}
}
-QCString partNode::typeString() const {
+TQCString partNode::typeString() const {
DwString s;
DwTypeEnumToStr( type(), s );
return s.c_str();
}
-QCString partNode::subTypeString() const {
+TQCString partNode::subTypeString() const {
DwString s;
DwSubtypeEnumToStr( subType(), s );
return s.c_str();
@@ -237,22 +237,22 @@ int partNode::childCount() const {
return count;
}
-QString partNode::contentTypeParameter( const char * name ) const {
+TQString partNode::contentTypeParameter( const char * name ) const {
if ( !mDwPart || !mDwPart->hasHeaders() )
- return QString::null;
+ return TQString::null;
DwHeaders & headers = mDwPart->Headers();
if ( !headers.HasContentType() )
- return QString::null;
+ return TQString::null;
DwString attr = name;
attr.ConvertToLowerCase();
for ( DwParameter * param = headers.ContentType().FirstParameter() ; param ; param = param->Next() ) {
DwString this_attr = param->Attribute();
this_attr.ConvertToLowerCase(); // what a braindead design!
if ( this_attr == attr )
- return QString::fromLatin1( param->Value().data(), param->Value().size() );
+ return TQString::fromLatin1( param->Value().data(), param->Value().size() );
// warning: misses rfc2231 handling!
}
- return QString::null;
+ return TQString::null;
}
KMMsgEncryptionState partNode::overallEncryptionState() const
@@ -441,9 +441,9 @@ partNode* partNode::findTypeNot( int type, int subType, bool deep, bool wide )
void partNode::fillMimePartTree( KMMimePartTreeItem* parentItem,
KMMimePartTree* mimePartTree,
- QString labelDescr,
- QString labelCntType,
- QString labelEncoding,
+ TQString labelDescr,
+ TQString labelCntType,
+ TQString labelEncoding,
KIO::filesize_t size,
bool revertOrder )
{
@@ -451,10 +451,10 @@ void partNode::fillMimePartTree( KMMimePartTreeItem* parentItem,
if( mNext )
mNext->fillMimePartTree( parentItem, mimePartTree,
- QString::null, QString::null, QString::null, 0,
+ TQString::null, TQString::null, TQString::null, 0,
revertOrder );
- QString cntDesc, cntType, cntEnc;
+ TQString cntDesc, cntType, cntEnc;
KIO::filesize_t cntSize = 0;
if( labelDescr.isEmpty() ) {
@@ -492,7 +492,7 @@ void partNode::fillMimePartTree( KMMimePartTreeItem* parentItem,
cntSize = size;
}
// remove linebreak+whitespace from folded Content-Description
- cntDesc.replace( QRegExp("\\n\\s*"), " " );
+ cntDesc.replace( TQRegExp("\\n\\s*"), " " );
kdDebug(5006) << " Inserting one item into MimePartTree" << endl;
kdDebug(5006) << " Content-Type: " << cntType << endl;
@@ -514,7 +514,7 @@ kdDebug(5006) << " Content-Type: " << cntType << endl;
mMimePartTreeItem->setOpen( true );
if( mChild )
mChild->fillMimePartTree( mMimePartTreeItem, 0,
- QString::null, QString::null, QString::null, 0,
+ TQString::null, TQString::null, TQString::null, 0,
revertOrder );
}
@@ -603,7 +603,7 @@ bool partNode::hasContentDispositionInline() const
return false;
}
-const QString& partNode::trueFromAddress() const
+const TQString& partNode::trueFromAddress() const
{
const partNode* node = this;
while( node->mFromAddress.isEmpty() && node->mRoot )