summaryrefslogtreecommitdiffstats
path: root/kmail/kmmsginfo.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/kmmsginfo.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/kmmsginfo.cpp')
-rw-r--r--kmail/kmmsginfo.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/kmail/kmmsginfo.cpp b/kmail/kmmsginfo.cpp
index 67c33588a..3b1112dc4 100644
--- a/kmail/kmmsginfo.cpp
+++ b/kmail/kmmsginfo.cpp
@@ -27,7 +27,7 @@ public:
ALL_SET = 0xFFFFFF, NONE_SET = 0x000000
};
uint modifiers;
- QString subject, from, to, replyToIdMD5, replyToAuxIdMD5,
+ TQString subject, from, to, replyToIdMD5, replyToAuxIdMD5,
strippedSubjectMD5, msgIdMD5, xmark, file;
off_t folderOffset;
size_t msgSize, msgSizeServer;
@@ -178,15 +178,15 @@ KMMsgInfo& KMMsgInfo::operator=(const KMMessage& msg)
}
//-----------------------------------------------------------------------------
-void KMMsgInfo::init(const QCString& aSubject, const QCString& aFrom,
- const QCString& aTo, time_t aDate,
- KMMsgStatus aStatus, const QCString& aXMark,
- const QCString& replyToId, const QCString& replyToAuxId,
- const QCString& msgId,
+void KMMsgInfo::init(const TQCString& aSubject, const TQCString& aFrom,
+ const TQCString& aTo, time_t aDate,
+ KMMsgStatus aStatus, const TQCString& aXMark,
+ const TQCString& replyToId, const TQCString& replyToAuxId,
+ const TQCString& msgId,
KMMsgEncryptionState encryptionState,
KMMsgSignatureState signatureState,
KMMsgMDNSentState mdnSentState,
- const QCString& prefCharset,
+ const TQCString& prefCharset,
off_t aFolderOffset, size_t aMsgSize,
size_t aMsgSizeServer, ulong aUID)
{
@@ -216,16 +216,16 @@ void KMMsgInfo::init(const QCString& aSubject, const QCString& aFrom,
mDirty = false;
}
-void KMMsgInfo::init(const QCString& aSubject, const QCString& aFrom,
- const QCString& aTo, time_t aDate,
- KMMsgStatus aStatus, const QCString& aXMark,
- const QCString& replyToId, const QCString& replyToAuxId,
- const QCString& msgId,
- const QCString& aFileName,
+void KMMsgInfo::init(const TQCString& aSubject, const TQCString& aFrom,
+ const TQCString& aTo, time_t aDate,
+ KMMsgStatus aStatus, const TQCString& aXMark,
+ const TQCString& replyToId, const TQCString& replyToAuxId,
+ const TQCString& msgId,
+ const TQCString& aFileName,
KMMsgEncryptionState encryptionState,
KMMsgSignatureState signatureState,
KMMsgMDNSentState mdnSentState,
- const QCString& prefCharset,
+ const TQCString& prefCharset,
size_t aMsgSize,
size_t aMsgSizeServer, ulong aUID)
{
@@ -238,7 +238,7 @@ void KMMsgInfo::init(const QCString& aSubject, const QCString& aFrom,
//-----------------------------------------------------------------------------
-QString KMMsgInfo::subject(void) const
+TQString KMMsgInfo::subject(void) const
{
if (kd && kd->modifiers & KMMsgInfoPrivate::SUBJECT_SET)
return kd->subject;
@@ -247,7 +247,7 @@ QString KMMsgInfo::subject(void) const
//-----------------------------------------------------------------------------
-QString KMMsgInfo::fromStrip(void) const
+TQString KMMsgInfo::fromStrip(void) const
{
if (kd && kd->modifiers & KMMsgInfoPrivate::FROM_SET)
return kd->from;
@@ -255,7 +255,7 @@ QString KMMsgInfo::fromStrip(void) const
}
//-----------------------------------------------------------------------------
-QString KMMsgInfo::fileName(void) const
+TQString KMMsgInfo::fileName(void) const
{
if (kd && kd->modifiers & KMMsgInfoPrivate::FILE_SET)
return kd->file;
@@ -264,7 +264,7 @@ QString KMMsgInfo::fileName(void) const
//-----------------------------------------------------------------------------
-QString KMMsgInfo::toStrip(void) const
+TQString KMMsgInfo::toStrip(void) const
{
if (kd && kd->modifiers & KMMsgInfoPrivate::TO_SET)
return kd->to;
@@ -272,7 +272,7 @@ QString KMMsgInfo::toStrip(void) const
}
//-----------------------------------------------------------------------------
-QString KMMsgInfo::xmark(void) const
+TQString KMMsgInfo::xmark(void) const
{
if (kd && kd->modifiers & KMMsgInfoPrivate::XMARK_SET)
return kd->xmark;
@@ -281,7 +281,7 @@ QString KMMsgInfo::xmark(void) const
//-----------------------------------------------------------------------------
-QString KMMsgInfo::replyToIdMD5(void) const
+TQString KMMsgInfo::replyToIdMD5(void) const
{
if (kd && kd->modifiers & KMMsgInfoPrivate::REPLYTO_SET)
return kd->replyToIdMD5;
@@ -289,7 +289,7 @@ QString KMMsgInfo::replyToIdMD5(void) const
}
//-----------------------------------------------------------------------------
-QString KMMsgInfo::replyToAuxIdMD5() const
+TQString KMMsgInfo::replyToAuxIdMD5() const
{
if( kd && kd->modifiers & KMMsgInfoPrivate::REPLYTOAUX_SET )
return kd->replyToAuxIdMD5;
@@ -297,7 +297,7 @@ QString KMMsgInfo::replyToAuxIdMD5() const
}
//-----------------------------------------------------------------------------
-QString KMMsgInfo::strippedSubjectMD5() const
+TQString KMMsgInfo::strippedSubjectMD5() const
{
if( kd && kd->modifiers & KMMsgInfoPrivate::STRIPPEDSUBJECT_SET )
return kd->strippedSubjectMD5;
@@ -312,7 +312,7 @@ bool KMMsgInfo::subjectIsPrefixed() const
}
//-----------------------------------------------------------------------------
-QString KMMsgInfo::msgIdMD5(void) const
+TQString KMMsgInfo::msgIdMD5(void) const
{
if (kd && kd->modifiers & KMMsgInfoPrivate::MSGID_SET)
return kd->msgIdMD5;
@@ -321,7 +321,7 @@ QString KMMsgInfo::msgIdMD5(void) const
//-----------------------------------------------------------------------------
-void KMMsgInfo::setSubject(const QString& aSubject)
+void KMMsgInfo::setSubject(const TQString& aSubject)
{
if(aSubject == subject())
return;
@@ -335,7 +335,7 @@ void KMMsgInfo::setSubject(const QString& aSubject)
//-----------------------------------------------------------------------------
-void KMMsgInfo::setXMark(const QString& aXMark)
+void KMMsgInfo::setXMark(const TQString& aXMark)
{
if (aXMark == xmark())
return;
@@ -349,7 +349,7 @@ void KMMsgInfo::setXMark(const QString& aXMark)
//-----------------------------------------------------------------------------
-void KMMsgInfo::setReplyToIdMD5(const QString& aReplyToIdMD5)
+void KMMsgInfo::setReplyToIdMD5(const TQString& aReplyToIdMD5)
{
if (aReplyToIdMD5 == replyToIdMD5())
return;
@@ -363,7 +363,7 @@ void KMMsgInfo::setReplyToIdMD5(const QString& aReplyToIdMD5)
//-----------------------------------------------------------------------------
-void KMMsgInfo::setReplyToAuxIdMD5( const QString& aReplyToAuxIdMD5 )
+void KMMsgInfo::setReplyToAuxIdMD5( const TQString& aReplyToAuxIdMD5 )
{
if( aReplyToAuxIdMD5 == replyToAuxIdMD5() )
return;
@@ -381,8 +381,8 @@ void KMMsgInfo::initStrippedSubjectMD5()
{
if( kd && kd->modifiers & KMMsgInfoPrivate::STRIPPEDSUBJECT_SET )
return;
- QString rawSubject = KMMessage::stripOffPrefixes( subject() );
- QString subjectMD5 = base64EncodedMD5( rawSubject, true /*utf8*/ );
+ TQString rawSubject = KMMessage::stripOffPrefixes( subject() );
+ TQString subjectMD5 = base64EncodedMD5( rawSubject, true /*utf8*/ );
if( !kd )
kd = new KMMsgInfoPrivate;
kd->modifiers |= KMMsgInfoPrivate::STRIPPEDSUBJECT_SET;
@@ -392,7 +392,7 @@ void KMMsgInfo::initStrippedSubjectMD5()
//-----------------------------------------------------------------------------
-void KMMsgInfo::setMsgIdMD5(const QString& aMsgIdMD5)
+void KMMsgInfo::setMsgIdMD5(const TQString& aMsgIdMD5)
{
if (aMsgIdMD5 == msgIdMD5())
return;
@@ -623,7 +623,7 @@ void KMMsgInfo::setFolderOffset(off_t offs)
}
//-----------------------------------------------------------------------------
-void KMMsgInfo::setFileName(const QString& file)
+void KMMsgInfo::setFileName(const TQString& file)
{
if (fileName() == file)
return;
@@ -657,7 +657,7 @@ void KMMsgInfo::setDate(time_t aUnixTime)
}
//--- For compatability with old index files
-void KMMsgInfo::compat_fromOldIndexString(const QCString& str, bool toUtf8)
+void KMMsgInfo::compat_fromOldIndexString(const TQCString& str, bool toUtf8)
{
char *start, *offset;
@@ -676,15 +676,15 @@ void KMMsgInfo::compat_fromOldIndexString(const QCString& str, bool toUtf8)
} else {
start = offset = str.data() + 37;
while (*start == ' ' && start - offset < 100) start++;
- kd->subject = QString::fromUtf8(str.mid(start - str.data(),
+ kd->subject = TQString::fromUtf8(str.mid(start - str.data(),
100 - (start - offset)), 100 - (start - offset));
start = offset = str.data() + 138;
while (*start == ' ' && start - offset < 50) start++;
- kd->from = QString::fromUtf8(str.mid(start - str.data(),
+ kd->from = TQString::fromUtf8(str.mid(start - str.data(),
50 - (start - offset)), 50 - (start - offset));
start = offset = str.data() + 189;
while (*start == ' ' && start - offset < 50) start++;
- kd->to = QString::fromUtf8(str.mid(start - str.data(),
+ kd->to = TQString::fromUtf8(str.mid(start - str.data(),
50 - (start - offset)), 50 - (start - offset));
}
kd->replyToIdMD5 = str.mid(240, 22).stripWhiteSpace();