summaryrefslogtreecommitdiffstats
path: root/kresources/slox/sloxaccounts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/slox/sloxaccounts.cpp')
-rw-r--r--kresources/slox/sloxaccounts.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kresources/slox/sloxaccounts.cpp b/kresources/slox/sloxaccounts.cpp
index de694b4f5..a32df5fa2 100644
--- a/kresources/slox/sloxaccounts.cpp
+++ b/kresources/slox/sloxaccounts.cpp
@@ -65,7 +65,7 @@ void SloxAccounts::insertUser( const TQString &id, const KABC::Addressee &a )
{
kdDebug() << "SloxAccount::insertUser() " << id << endl;
- mUsers.tqreplace( id, a );
+ mUsers.replace( id, a );
TQString email = a.preferredEmail();
@@ -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.tqfind( id );
+ it = mUsers.find( id );
if ( it == mUsers.end() ) {
requestAccounts();
return KABC::Addressee();
@@ -99,7 +99,7 @@ TQString SloxAccounts::lookupId( const TQString &email )
}
requestAccounts();
- int pos = email.tqfind( '@' );
+ int pos = email.find( '@' );
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, "proptqfind" );
+ TQDomElement root = WebdavHandler::addDavElement( doc, doc, "propfind" );
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.tqfind( ':' ) + 1 ) );
+ tag = tag.right( tag.length() - ( tag.find( ':' ) + 1 ) );
TQString value = e.text();
if ( tag == "uid" ) id = value;
else if ( tag == "mail" ) a.insertEmail( value, true );