From 94273bcb909fac42ef9427e3d8a614cab8c29c66 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 20 Feb 2013 16:27:27 -0600 Subject: Rename KABC namespace --- tderesources/egroupware/tdeabc_resourcexmlrpc.cpp | 26 +++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'tderesources/egroupware/tdeabc_resourcexmlrpc.cpp') diff --git a/tderesources/egroupware/tdeabc_resourcexmlrpc.cpp b/tderesources/egroupware/tdeabc_resourcexmlrpc.cpp index 7c5911d87..1929bd19c 100644 --- a/tderesources/egroupware/tdeabc_resourcexmlrpc.cpp +++ b/tderesources/egroupware/tdeabc_resourcexmlrpc.cpp @@ -39,7 +39,7 @@ #include "synchronizer.h" #include "xmlrpciface.h" -using namespace KABC; +using namespace TDEABC; static const TQString SearchContactsCommand = "addressbook.boaddressbook.search"; static const TQString AddContactCommand = "addressbook.boaddressbook.write"; @@ -47,12 +47,12 @@ static const TQString DeleteContactCommand = "addressbook.boaddressbook.delete"; static const TQString LoadCategoriesCommand = "addressbook.boaddressbook.categories"; static const TQString LoadCustomFieldsCommand = "addressbook.boaddressbook.customfields"; -static void setRights( KABC::Addressee &addr, int rights ) +static void setRights( TDEABC::Addressee &addr, int rights ) { addr.insertCustom( "EGWRESOURCE", "RIGHTS", TQString::number( rights ) ); } -static int rights( const KABC::Addressee &addr ) +static int rights( const TDEABC::Addressee &addr ) { return addr.custom( "EGWRESOURCE", "RIGHTS" ).toInt(); } @@ -227,19 +227,19 @@ bool ResourceXMLRPC::save( Ticket *ticket ) bool ResourceXMLRPC::asyncSave( Ticket* ) { - KABC::Addressee::List::ConstIterator it; + TDEABC::Addressee::List::ConstIterator it; - const KABC::Addressee::List addedList = addedAddressees(); + const TDEABC::Addressee::List addedList = addedAddressees(); for ( it = addedList.begin(); it != addedList.end(); ++it ) { addContact( *it ); } - const KABC::Addressee::List changedList = changedAddressees(); + const TDEABC::Addressee::List changedList = changedAddressees(); for ( it = changedList.begin(); it != changedList.end(); ++it ) { updateContact( *it ); } - const KABC::Addressee::List deletedList = deletedAddressees(); + const TDEABC::Addressee::List deletedList = deletedAddressees(); for ( it = deletedList.begin(); it != deletedList.end(); ++it ) { deleteContact( *it ); } @@ -333,7 +333,7 @@ void ResourceXMLRPC::listContactsFinished( const TQValueList &mapList const TQValueList contactList = mapList[ 0 ].toList(); TQValueList::ConstIterator contactIt; - KABC::Addressee::List serverContacts; + TDEABC::Addressee::List serverContacts; for ( contactIt = contactList.begin(); contactIt != contactList.end(); ++contactIt ) { const TQMap map = (*contactIt).toMap(); @@ -403,7 +403,7 @@ void ResourceXMLRPC::fault( int error, const TQString &errorMsg, void ResourceXMLRPC::addContactFault( int, const TQString &errorMsg, const TQVariant &id ) { - KABC::Addressee addr = mAddrMap[ id.toString() ]; + TDEABC::Addressee addr = mAddrMap[ id.toString() ]; mAddrMap.remove( addr.uid() ); @@ -414,7 +414,7 @@ void ResourceXMLRPC::addContactFault( int, const TQString &errorMsg, void ResourceXMLRPC::updateContactFault( int, const TQString &errorMsg, const TQVariant &id ) { - KABC::Addressee addr = mAddrMap[ id.toString() ]; + TDEABC::Addressee addr = mAddrMap[ id.toString() ]; TQString msg = i18n( "Unable to update contact %1 on server. (%2)" ); addressBook()->error( msg.arg( addr.formattedName(), errorMsg ) ); @@ -423,10 +423,10 @@ void ResourceXMLRPC::updateContactFault( int, const TQString &errorMsg, void ResourceXMLRPC::deleteContactFault( int, const TQString &errorMsg, const TQVariant &id ) { - KABC::Addressee addr; + TDEABC::Addressee addr; - const KABC::Addressee::List deletedList = deletedAddressees(); - KABC::Addressee::List::ConstIterator it; + const TDEABC::Addressee::List deletedList = deletedAddressees(); + TDEABC::Addressee::List::ConstIterator it; for ( it = deletedList.begin(); it != deletedList.end(); ++it ) { if ( (*it).uid() == id.toString() ) { addr = *it; -- cgit v1.2.1