summaryrefslogtreecommitdiffstats
path: root/libkmime/kmime_mdn.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkmime/kmime_mdn.cpp')
-rw-r--r--libkmime/kmime_mdn.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/libkmime/kmime_mdn.cpp b/libkmime/kmime_mdn.cpp
index 678589d65..75f1a91e9 100644
--- a/libkmime/kmime_mdn.cpp
+++ b/libkmime/kmime_mdn.cpp
@@ -37,7 +37,7 @@
#include <klocale.h>
#include <kdebug.h>
-#include <qcstring.h>
+#include <tqcstring.h>
#include <unistd.h> // gethostname
@@ -156,11 +156,11 @@ namespace MDN {
return 0;
}
- static QCString dispositionField( DispositionType d, ActionMode a, SendingMode s,
- const QValueList<DispositionModifier> & m ) {
+ static TQCString dispositionField( DispositionType d, ActionMode a, SendingMode s,
+ const TQValueList<DispositionModifier> & m ) {
// mandatory parts: Disposition: foo/baz; bar
- QCString result = "Disposition: ";
+ TQCString result = "Disposition: ";
result += stringFor( a );
result += "/";
result += stringFor( s );
@@ -169,7 +169,7 @@ namespace MDN {
// optional parts: Disposition: foo/baz; bar/mod1,mod2,mod3
bool first = true;
- for ( QValueList<DispositionModifier>::const_iterator mt = m.begin() ;
+ for ( TQValueList<DispositionModifier>::const_iterator mt = m.begin() ;
mt != m.end() ; ++mt ) {
if ( first ) {
result += "/";
@@ -182,56 +182,56 @@ namespace MDN {
return result + "\n";
}
- static QCString finalRecipient( const QString & recipient ) {
+ static TQCString finalRecipient( const TQString & recipient ) {
if ( recipient.isEmpty() )
- return QCString();
+ return TQCString();
else
return "Final-Recipient: rfc822; "
+ encodeRFC2047String( recipient, "utf-8" ) + "\n";
}
- static QCString orginalRecipient( const QCString & recipient ) {
+ static TQCString orginalRecipient( const TQCString & recipient ) {
if ( recipient.isEmpty() )
- return QCString();
+ return TQCString();
else
return "Original-Recipient: " + recipient + "\n";
}
- static QCString originalMessageID( const QCString & msgid ) {
+ static TQCString originalMessageID( const TQCString & msgid ) {
if ( msgid.isEmpty() )
- return QCString();
+ return TQCString();
else
return "Original-Message-ID: " + msgid + "\n";
}
- static QCString reportingUAField() {
+ static TQCString reportingUAField() {
char hostName[256];
if ( gethostname( hostName, 255 ) )
hostName[0] = '\0'; // gethostname failed: pretend empty string
else
hostName[255] = '\0'; // gethostname may have returned 255 chars (man page)
- return QCString("Reporting-UA: ") + hostName
+ return TQCString("Reporting-UA: ") + hostName
+ "; KMime " KMIME_VERSION_STRING "\n";
}
- QCString dispositionNotificationBodyContent( const QString & r,
- const QCString & o,
- const QCString & omid,
+ TQCString dispositionNotificationBodyContent( const TQString & r,
+ const TQCString & o,
+ const TQCString & omid,
DispositionType d,
ActionMode a,
SendingMode s,
- const QValueList<DispositionModifier> & m,
- const QString & special )
+ const TQValueList<DispositionModifier> & m,
+ const TQString & special )
{
// in Perl: chomp(special)
- QString spec;
+ TQString spec;
if ( special.endsWith("\n") )
spec = special.left( special.length() - 1 );
else
spec = special;
// std headers:
- QCString result = reportingUAField();
+ TQCString result = reportingUAField();
result += orginalRecipient( o );
result += finalRecipient( r );
result += originalMessageID( omid );
@@ -248,14 +248,14 @@ namespace MDN {
return result;
}
- QString descriptionFor( DispositionType d,
- const QValueList<DispositionModifier> & ) {
+ TQString descriptionFor( DispositionType d,
+ const TQValueList<DispositionModifier> & ) {
for ( int i = 0 ; i < numDispositionTypes ; ++i )
if ( dispositionTypes[i].dispositionType == d )
return i18n( dispositionTypes[i].description );
kdWarning() << "KMime::MDN::descriptionFor(): No such disposition type: "
<< (int)d << endl;
- return QString::null;
+ return TQString::null;
}
} // namespace MDN