summaryrefslogtreecommitdiffstats
path: root/kabc/vcard
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-16 02:40:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-16 02:40:35 +0000
commitbab40890696ec68c337dc290880423a0602b83c7 (patch)
tree6ba03f720b1fa88235ba339e7aedb4455430357e /kabc/vcard
parentf7e71d47719ab6094cf4a9fafffa5ea351973522 (diff)
downloadtdelibs-bab40890696ec68c337dc290880423a0602b83c7.tar.gz
tdelibs-bab40890696ec68c337dc290880423a0602b83c7.zip
Finished remaining porting to new TQt API
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214736 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kabc/vcard')
-rw-r--r--kabc/vcard/ContentLine.cpp4
-rw-r--r--kabc/vcard/DateValue.cpp12
-rw-r--r--kabc/vcard/Entity.cpp2
-rw-r--r--kabc/vcard/Enum.cpp4
-rw-r--r--kabc/vcard/LangValue.cpp4
-rw-r--r--kabc/vcard/OrgValue.cpp2
-rw-r--r--kabc/vcard/Param.cpp4
-rw-r--r--kabc/vcard/TextListValue.cpp2
-rw-r--r--kabc/vcard/URIValue.cpp4
-rw-r--r--kabc/vcard/include/VCardAdrParam.h4
-rw-r--r--kabc/vcard/include/VCardContentLine.h8
-rw-r--r--kabc/vcard/include/VCardEmailParam.h4
-rw-r--r--kabc/vcard/include/VCardVCard.h2
13 files changed, 28 insertions, 28 deletions
diff --git a/kabc/vcard/ContentLine.cpp b/kabc/vcard/ContentLine.cpp
index 31151be9f..a301a0244 100644
--- a/kabc/vcard/ContentLine.cpp
+++ b/kabc/vcard/ContentLine.cpp
@@ -140,7 +140,7 @@ ContentLine::_parse()
vDebug("parse");
// Unqote newlines
- strRep_ = strRep_.replace( TQRegExp( "\\\\n" ), "\n" );
+ strRep_ = strRep_.tqreplace( TQRegExp( "\\\\n" ), "\n" );
int split = strRep_.tqfind(':');
@@ -275,7 +275,7 @@ ContentLine::_assemble()
}
// Quote newlines
- line = line.replace( TQRegExp( "\n" ), "\\n" );
+ line = line.tqreplace( TQRegExp( "\n" ), "\\n" );
// Fold lines longer than 72 chars
const int maxLen = 72;
diff --git a/kabc/vcard/DateValue.cpp b/kabc/vcard/DateValue.cpp
index 0311ac2e2..6828380fc 100644
--- a/kabc/vcard/DateValue.cpp
+++ b/kabc/vcard/DateValue.cpp
@@ -173,7 +173,7 @@ DateValue::_parse()
/////////////////////////////////////////////////////////////// DATE
- dateStr.replace(TQRegExp("-"), "");
+ dateStr.tqreplace(TQRegExp("-"), "");
kdDebug(5710) << "dateStr: " << dateStr << endl;
@@ -208,7 +208,7 @@ DateValue::_parse()
//////////////////////////////////////////////////// SECOND FRACTION
- int secFracSep = timeStr.findRev(',');
+ int secFracSep = timeStr.tqfindRev(',');
if (secFracSep != -1 && zoneSep != -1) { // zoneSep checked to avoid errors.
TQCString quirkafleeg = "0." + timeStr.mid(secFracSep + 1, zoneSep);
@@ -217,7 +217,7 @@ DateValue::_parse()
/////////////////////////////////////////////////////////////// HMS
- timeStr.replace(TQRegExp(":"), "");
+ timeStr.tqreplace(TQRegExp(":"), "");
hour_ = timeStr.left(2).toInt();
minute_ = timeStr.mid(2, 2).toInt();
@@ -398,7 +398,7 @@ DateValue::setZoneMinute(unsigned int i)
assembled_ = false;
}
- QDate
+ TQDate
DateValue::qdate()
{
parse();
@@ -406,7 +406,7 @@ DateValue::qdate()
return d;
}
- QTime
+ TQTime
DateValue::qtime()
{
parse();
@@ -415,7 +415,7 @@ DateValue::qtime()
return t;
}
- QDateTime
+ TQDateTime
DateValue::qdt()
{
parse();
diff --git a/kabc/vcard/Entity.cpp b/kabc/vcard/Entity.cpp
index 83ee8d40d..5eaf6a1d0 100644
--- a/kabc/vcard/Entity.cpp
+++ b/kabc/vcard/Entity.cpp
@@ -99,7 +99,7 @@ Entity::~Entity()
// empty
}
- QCString
+ TQCString
Entity::asString()
{
// vDebug("Entity::asString()");
diff --git a/kabc/vcard/Enum.cpp b/kabc/vcard/Enum.cpp
index 4d8d167a0..bcb48f98a 100644
--- a/kabc/vcard/Enum.cpp
+++ b/kabc/vcard/Enum.cpp
@@ -31,7 +31,7 @@ using namespace VCARD;
// There are 31 possible types, not including extensions.
// URI is a custom field designed to store the upstream URI for each contact
// in order to handle certain limited CardDAV systems such as Zimbra
- const QCString
+ const TQCString
VCARD::paramNames [] =
{
"NAME",
@@ -228,7 +228,7 @@ VCARD::EntityTypeToValueType(EntityType e)
return t;
}
- QCString
+ TQCString
VCARD::EntityTypeToParamName(EntityType e)
{
if ( e > EntityUnknown ) e = EntityUnknown;
diff --git a/kabc/vcard/LangValue.cpp b/kabc/vcard/LangValue.cpp
index 6ef46c98f..f7e5a759e 100644
--- a/kabc/vcard/LangValue.cpp
+++ b/kabc/vcard/LangValue.cpp
@@ -97,14 +97,14 @@ LangValue::_assemble()
strRep_ += TQCString('-') + it.current();
}
- QCString
+ TQCString
LangValue::primary()
{
parse();
return primary_;
}
- QStrList
+ TQStrList
LangValue::subtags()
{
parse();
diff --git a/kabc/vcard/OrgValue.cpp b/kabc/vcard/OrgValue.cpp
index cfd9c6f73..94ca18243 100644
--- a/kabc/vcard/OrgValue.cpp
+++ b/kabc/vcard/OrgValue.cpp
@@ -98,7 +98,7 @@ OrgValue::numValues()
return valueList_.count();
}
- QCString
+ TQCString
OrgValue::value(unsigned int i)
{
parse();
diff --git a/kabc/vcard/Param.cpp b/kabc/vcard/Param.cpp
index d631f2319..8c5ad9e2c 100644
--- a/kabc/vcard/Param.cpp
+++ b/kabc/vcard/Param.cpp
@@ -116,13 +116,13 @@ Param::setValue(const TQCString & value)
assembled_ = false;
}
- QCString
+ TQCString
Param::name()
{
return name_;
}
- QCString
+ TQCString
Param::value()
{
return value_;
diff --git a/kabc/vcard/TextListValue.cpp b/kabc/vcard/TextListValue.cpp
index e29a8dcc2..2bec2e181 100644
--- a/kabc/vcard/TextListValue.cpp
+++ b/kabc/vcard/TextListValue.cpp
@@ -98,7 +98,7 @@ TextListValue::numValues()
return valueList_.count();
}
- QCString
+ TQCString
TextListValue::value(unsigned int i)
{
parse();
diff --git a/kabc/vcard/URIValue.cpp b/kabc/vcard/URIValue.cpp
index ea598c5f5..9b13119d3 100644
--- a/kabc/vcard/URIValue.cpp
+++ b/kabc/vcard/URIValue.cpp
@@ -103,14 +103,14 @@ URIValue::_assemble()
strRep_ = scheme_ + ':' + schemeSpecificPart_;
}
- QCString
+ TQCString
URIValue::scheme()
{
parse();
return scheme_;
}
- QCString
+ TQCString
URIValue::schemeSpecificPart()
{
parse();
diff --git a/kabc/vcard/include/VCardAdrParam.h b/kabc/vcard/include/VCardAdrParam.h
index ed5497deb..d40165f4a 100644
--- a/kabc/vcard/include/VCardAdrParam.h
+++ b/kabc/vcard/include/VCardAdrParam.h
@@ -56,8 +56,8 @@ class KVCARD_EXPORT AdrParam : public Param
private:
- QStrList adrTypeList_;
- QCString textParam_;
+ TQStrList adrTypeList_;
+ TQCString textParam_;
};
}
diff --git a/kabc/vcard/include/VCardContentLine.h b/kabc/vcard/include/VCardContentLine.h
index 20d5c5033..ea59444a0 100644
--- a/kabc/vcard/include/VCardContentLine.h
+++ b/kabc/vcard/include/VCardContentLine.h
@@ -39,8 +39,8 @@ class KVCARD_EXPORT ContentLine : public Entity
#include "ContentLine-generated.h"
- QCString group() { parse(); return group_; }
- QCString name() { parse(); return name_; }
+ TQCString group() { parse(); return group_; }
+ TQCString name() { parse(); return name_; }
Value * value() { parse(); return value_; }
ParamList paramList() { parse(); return paramList_; }
ParamType paramType() { parse(); return paramType_; }
@@ -63,8 +63,8 @@ class KVCARD_EXPORT ContentLine : public Entity
private:
- QCString group_;
- QCString name_;
+ TQCString group_;
+ TQCString name_;
TQPtrList<Param> paramList_;
Value * value_;
diff --git a/kabc/vcard/include/VCardEmailParam.h b/kabc/vcard/include/VCardEmailParam.h
index 55086faec..1fe558afd 100644
--- a/kabc/vcard/include/VCardEmailParam.h
+++ b/kabc/vcard/include/VCardEmailParam.h
@@ -36,7 +36,7 @@ class KVCARD_EXPORT EmailParam : public Param
#include "EmailParam-generated.h"
- QCString emailType() { parse(); return emailType_; }
+ TQCString emailType() { parse(); return emailType_; }
bool pref() { parse(); return pref_; }
void setEmailType(const TQCString & s)
@@ -47,7 +47,7 @@ class KVCARD_EXPORT EmailParam : public Param
private:
- QCString emailType_;
+ TQCString emailType_;
bool pref_;
};
diff --git a/kabc/vcard/include/VCardVCard.h b/kabc/vcard/include/VCardVCard.h
index 64ed5c787..53563e8c0 100644
--- a/kabc/vcard/include/VCardVCard.h
+++ b/kabc/vcard/include/VCardVCard.h
@@ -54,7 +54,7 @@ class KVCARD_EXPORT VCard : public Entity
private:
- QCString group_;
+ TQCString group_;
TQPtrList<ContentLine> contentLineList_;
};