summaryrefslogtreecommitdiffstats
path: root/kresources/slox/webdavhandler.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kresources/slox/webdavhandler.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources/slox/webdavhandler.cpp')
-rw-r--r--kresources/slox/webdavhandler.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kresources/slox/webdavhandler.cpp b/kresources/slox/webdavhandler.cpp
index 576def371..b010e0e92 100644
--- a/kresources/slox/webdavhandler.cpp
+++ b/kresources/slox/webdavhandler.cpp
@@ -129,9 +129,9 @@ TQValueList<SloxItem> WebdavHandler::getSloxItems( SloxBase *res, const TQDomDoc
item.status = SloxItem::New;
}
- TQDomNode sloxStatus = prop.namedItem( res->fieldName( SloxBase::ObjecStatus ) );
- if ( !sloxStatus.isNull() ) {
- TQDomElement sloxStatusElement = sloxStatus.toElement();
+ TQDomNode sloxtqStatus = prop.namedItem( res->fieldName( SloxBase::ObjectqStatus ) );
+ if ( !sloxtqStatus.isNull() ) {
+ TQDomElement sloxStatusElement = sloxtqStatus.toElement();
if ( sloxStatusElement.text() == "DELETE" ) {
item.status = SloxItem::Delete;
} else if ( sloxStatusElement.text() == "CREATE" ) {
@@ -186,7 +186,7 @@ TQString WebdavHandler::qDateTimeToSlox( const TQDateTime &dt,
return TQString::number( ticks ) + "000";
}
-TQDateTime WebdavHandler::sloxToQDateTime( const TQString &str )
+TQDateTime WebdavHandler::sloxToTQDateTime( const TQString &str )
{
TQString s = str.mid( 0, str.length() - 3 );
@@ -199,7 +199,7 @@ TQDateTime WebdavHandler::sloxToQDateTime( const TQString &str )
TQDateTime dt;
if (preEpoch) {
- dt.setTime_t( 0, Qt::UTC );
+ dt.setTime_t( 0, TQt::UTC );
if (ticks > INT_MAX) {
dt = dt.addSecs(-INT_MAX);
ticks -= INT_MAX;
@@ -208,16 +208,16 @@ TQDateTime WebdavHandler::sloxToQDateTime( const TQString &str )
}
else
{
- dt.setTime_t( ticks, Qt::UTC );
+ dt.setTime_t( ticks, TQt::UTC );
}
return dt;
}
-TQDateTime WebdavHandler::sloxToQDateTime( const TQString &str,
+TQDateTime WebdavHandler::sloxToTQDateTime( const TQString &str,
const TQString &timeZoneId )
{
- return KPimPrefs::utcToLocalTime( sloxToQDateTime(str), timeZoneId );
+ return KPimPrefs::utcToLocalTime( sloxToTQDateTime(str), timeZoneId );
}
TQDomElement WebdavHandler::addElement( TQDomDocument &doc, TQDomNode &node,
@@ -276,7 +276,7 @@ void WebdavHandler::parseSloxAttribute( const TQDomElement &e )
}
}
-void WebdavHandler::clearSloxAttributeStatus()
+void WebdavHandler::clearSloxAttributetqStatus()
{
if ( mRes->resType() == "ox" )
mWritable = true; // parseSloxAttribute() won't work for OX