diff options
Diffstat (limited to 'kmail/partnodebodypart.cpp')
-rw-r--r-- | kmail/partnodebodypart.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kmail/partnodebodypart.cpp b/kmail/partnodebodypart.cpp index 50ec3cda4..37e37353f 100644 --- a/kmail/partnodebodypart.cpp +++ b/kmail/partnodebodypart.cpp @@ -35,45 +35,45 @@ #include "partNode.h" -#include <qstring.h> -#include <qcstring.h> +#include <tqstring.h> +#include <tqcstring.h> static int serial = 0; -KMail::PartNodeBodyPart::PartNodeBodyPart( partNode & n, const QTextCodec * codec ) +KMail::PartNodeBodyPart::PartNodeBodyPart( partNode & n, const TQTextCodec * codec ) : KMail::Interface::BodyPart(), mPartNode( n ), mCodec( codec ), mDefaultDisplay( KMail::Interface::BodyPart::None ) {} -QString KMail::PartNodeBodyPart::makeLink( const QString & path ) const { +TQString KMail::PartNodeBodyPart::makeLink( const TQString & path ) const { static const int utf8 = 106; // FIXME: use a PRNG for the first arg, instead of a serial number - return QString( "x-kmail:/bodypart/%1/%2/%3" ) + return TQString( "x-kmail:/bodypart/%1/%2/%3" ) .arg( serial++ ).arg( mPartNode.nodeId() ) .arg( KURL::encode_string_no_slash( path, utf8 ) ); } -QString KMail::PartNodeBodyPart::asText() const { +TQString KMail::PartNodeBodyPart::asText() const { if ( mPartNode.type() != DwMime::kTypeText ) - return QString::null; + return TQString::null; return mPartNode.msgPart().bodyToUnicode( mCodec ); } -QByteArray KMail::PartNodeBodyPart::asBinary() const { +TQByteArray KMail::PartNodeBodyPart::asBinary() const { return mPartNode.msgPart().bodyDecodedBinary(); } -QString KMail::PartNodeBodyPart::contentTypeParameter( const char * param ) const { +TQString KMail::PartNodeBodyPart::contentTypeParameter( const char * param ) const { return mPartNode.contentTypeParameter( param ); } -QString KMail::PartNodeBodyPart::contentDescription() const { +TQString KMail::PartNodeBodyPart::contentDescription() const { return mPartNode.msgPart().contentDescription(); } -QString KMail::PartNodeBodyPart::contentDispositionParameter( const char * ) const { +TQString KMail::PartNodeBodyPart::contentDispositionParameter( const char * ) const { kdWarning( 5006 ) << "Sorry, not yet implemented: PartNodeBodyPart::contentDispositionParameter()" << endl; - return QString::null; + return TQString::null; } bool KMail::PartNodeBodyPart::hasCompleteBody() const { |