summaryrefslogtreecommitdiffstats
path: root/kioslaves/imap4/mailaddress.cc
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 /kioslaves/imap4/mailaddress.cc
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 'kioslaves/imap4/mailaddress.cc')
-rw-r--r--kioslaves/imap4/mailaddress.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/kioslaves/imap4/mailaddress.cc b/kioslaves/imap4/mailaddress.cc
index a70b2d591..227defa97 100644
--- a/kioslaves/imap4/mailaddress.cc
+++ b/kioslaves/imap4/mailaddress.cc
@@ -93,15 +93,15 @@ mailAddress::parseAddress (char *aCStr)
{
case '"':
advance = mimeHdrLine::parseQuoted ('"', '"', aCStr);
- rawFullName += QCString (aCStr, advance + 1);
+ rawFullName += TQCString (aCStr, advance + 1);
break;
case '(':
advance = mimeHdrLine::parseQuoted ('(', ')', aCStr);
- rawComment += QCString (aCStr, advance + 1);
+ rawComment += TQCString (aCStr, advance + 1);
break;
case '<':
advance = mimeHdrLine::parseQuoted ('<', '>', aCStr);
- user = QCString (aCStr, advance + 1); // copy it
+ user = TQCString (aCStr, advance + 1); // copy it
len = advance;
user = user.mid (1, len - 2); // strip <>
len -= 2;
@@ -116,7 +116,7 @@ mailAddress::parseAddress (char *aCStr)
{
if (*aCStr != ',')
{
- rawFullName += QCString (aCStr, advance + 1);
+ rawFullName += TQCString (aCStr, advance + 1);
if (mimeHdrLine::skipWS ((const char *) &aCStr[advance]) > 0)
{
rawFullName += ' ';
@@ -199,7 +199,7 @@ mailAddress::parseAddress (char *aCStr)
const QCString
mailAddress::getStr ()
{
- QCString retVal(128); // Should be generally big enough
+ TQCString retVal(128); // Should be generally big enough
if (!rawFullName.isEmpty ())
{
@@ -231,7 +231,7 @@ mailAddress::isEmpty () const
}
void
-mailAddress::setFullName (const QString & _str)
+mailAddress::setFullName (const TQString & _str)
{
rawFullName = rfcDecoder::encodeRFC2047String (_str).latin1 ();
}
@@ -242,13 +242,13 @@ mailAddress::getFullName () const
}
void
-mailAddress::setCommentRaw (const QCString & _str)
+mailAddress::setCommentRaw (const TQCString & _str)
{
rawComment = _str;
}
void
-mailAddress::setComment (const QString & _str)
+mailAddress::setComment (const TQString & _str)
{
rawComment = rfcDecoder::encodeRFC2047String (_str).latin1 ();
}
@@ -258,7 +258,7 @@ mailAddress::getComment () const
return rfcDecoder::decodeRFC2047String (rawComment);
}
-const QCString &
+const TQCString &
mailAddress::getCommentRaw () const
{
return rawComment;
@@ -267,7 +267,7 @@ mailAddress::getCommentRaw () const
QString
mailAddress::emailAddrAsAnchor (const mailAddress & adr, bool shortAdr)
{
- QString retVal;
+ TQString retVal;
if (!adr.getFullName ().isEmpty ())
{
// should do some umlaut escaping
@@ -288,7 +288,7 @@ mailAddress::emailAddrAsAnchor (const mailAddress & adr, bool shortAdr)
if (!adr.getUser ().isEmpty ())
{
- QString mail;
+ TQString mail;
mail = adr.getUser ();
if (!mail.isEmpty () && !adr.getHost ().isEmpty ())
mail += "@" + adr.getHost ();
@@ -299,10 +299,10 @@ mailAddress::emailAddrAsAnchor (const mailAddress & adr, bool shortAdr)
}
QString
-mailAddress::emailAddrAsAnchor (const QPtrList < mailAddress > &list, bool value)
+mailAddress::emailAddrAsAnchor (const TQPtrList < mailAddress > &list, bool value)
{
- QString retVal;
- QPtrListIterator < mailAddress > it (list);
+ TQString retVal;
+ TQPtrListIterator < mailAddress > it (list);
while (it.current ())
{