summaryrefslogtreecommitdiffstats
path: root/kresources/slox/sloxaccounts.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/sloxaccounts.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/sloxaccounts.cpp')
-rw-r--r--kresources/slox/sloxaccounts.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kresources/slox/sloxaccounts.cpp b/kresources/slox/sloxaccounts.cpp
index a49594ea7..de694b4f5 100644
--- a/kresources/slox/sloxaccounts.cpp
+++ b/kresources/slox/sloxaccounts.cpp
@@ -78,7 +78,7 @@ void SloxAccounts::insertUser( const TQString &id, const KABC::Addressee &a )
KABC::Addressee SloxAccounts::lookupUser( const TQString &id )
{
TQMap<TQString, KABC::Addressee>::ConstIterator it;
- it = mUsers.find( id );
+ it = mUsers.tqfind( id );
if ( it == mUsers.end() ) {
requestAccounts();
return KABC::Addressee();
@@ -99,7 +99,7 @@ TQString SloxAccounts::lookupId( const TQString &email )
}
requestAccounts();
- int pos = email.find( '@' );
+ int pos = email.tqfind( '@' );
if ( pos < 0 ) return email;
else return email.left( pos );
}
@@ -127,7 +127,7 @@ void SloxAccounts::requestAccounts()
url.setPath( "/servlet/webdav.groupuser/" );
TQDomDocument doc;
- TQDomElement root = WebdavHandler::addDavElement( doc, doc, "propfind" );
+ TQDomElement root = WebdavHandler::addDavElement( doc, doc, "proptqfind" );
TQDomElement prop = WebdavHandler::addDavElement( doc, root, "prop" );
WebdavHandler::addSloxElement( mRes, doc, prop, "user", "*" );
WebdavHandler::addSloxElement( mRes, doc, prop, "group", "*" );
@@ -207,7 +207,7 @@ void SloxAccounts::readAccounts()
TQDomElement e = n.toElement();
TQString tag = e.tagName();
// remove XML namespace
- tag = tag.right( tag.length() - ( tag.find( ':' ) + 1 ) );
+ tag = tag.right( tag.length() - ( tag.tqfind( ':' ) + 1 ) );
TQString value = e.text();
if ( tag == "uid" ) id = value;
else if ( tag == "mail" ) a.insertEmail( value, true );