summaryrefslogtreecommitdiffstats
path: root/libtdepim/addresseelineedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libtdepim/addresseelineedit.cpp')
-rw-r--r--libtdepim/addresseelineedit.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/libtdepim/addresseelineedit.cpp b/libtdepim/addresseelineedit.cpp
index 2277182bc..adb3a7300 100644
--- a/libtdepim/addresseelineedit.cpp
+++ b/libtdepim/addresseelineedit.cpp
@@ -555,16 +555,16 @@ void AddresseeLineEdit::loadContacts()
TDEConfig config( "kpimcompletionorder" ); // The weights for non-imap kabc resources is there.
config.setGroup( "CompletionWeights" );
- KABC::AddressBook *addressBook = KABC::StdAddressBook::self( true );
+ TDEABC::AddressBook *addressBook = TDEABC::StdAddressBook::self( true );
// Can't just use the addressbook's iterator, we need to know which subresource
// is behind which contact.
- TQPtrList<KABC::Resource> resources( addressBook->resources() );
- for( TQPtrListIterator<KABC::Resource> resit( resources ); *resit; ++resit ) {
- KABC::Resource* resource = *resit;
+ TQPtrList<TDEABC::Resource> resources( addressBook->resources() );
+ for( TQPtrListIterator<TDEABC::Resource> resit( resources ); *resit; ++resit ) {
+ TDEABC::Resource* resource = *resit;
KPIM::ResourceABC* resabc = dynamic_cast<ResourceABC *>( resource );
if ( resabc ) { // IMAP KABC resource; need to associate each contact with the subresource
const TQMap<TQString, TQString> uidToResourceMap = resabc->uidToResourceMap();
- KABC::Resource::Iterator it;
+ TDEABC::Resource::Iterator it;
for ( it = resource->begin(); it != resource->end(); ++it ) {
TQString uid = (*it).uid();
TQMap<TQString, TQString>::const_iterator wit = uidToResourceMap.find( uid );
@@ -578,7 +578,7 @@ void AddresseeLineEdit::loadContacts()
} else { // KABC non-imap resource
int weight = config.readNumEntry( resource->identifier(), 60 );
int sourceIndex = addCompletionSource( resource->resourceName(), weight );
- KABC::Resource::Iterator it;
+ TDEABC::Resource::Iterator it;
for ( it = resource->begin(); it != resource->end(); ++it ) {
addContact( *it, weight, sourceIndex );
}
@@ -587,7 +587,7 @@ void AddresseeLineEdit::loadContacts()
#ifndef TDEPIM_NEW_DISTRLISTS // new distr lists are normal contact, already done above
int weight = config.readNumEntry( "DistributionLists", 60 );
- KABC::DistributionListManager manager( addressBook );
+ TDEABC::DistributionListManager manager( addressBook );
manager.load();
const TQStringList distLists = manager.listNames();
TQStringList::const_iterator listIt;
@@ -612,7 +612,7 @@ void AddresseeLineEdit::loadContacts()
}
}
-void AddresseeLineEdit::addContact( const KABC::Addressee& addr, int weight, int source )
+void AddresseeLineEdit::addContact( const TDEABC::Addressee& addr, int weight, int source )
{
#ifdef TDEPIM_NEW_DISTRLISTS
if ( KPIM::DistributionList::isDistributionList( addr ) ) {
@@ -817,7 +817,7 @@ void AddresseeLineEdit::slotLDAPSearchData( const KPIM::LdapResultList& adrs )
return;
for ( KPIM::LdapResultList::ConstIterator it = adrs.begin(); it != adrs.end(); ++it ) {
- KABC::Addressee addr;
+ TDEABC::Addressee addr;
addr.setNameFromString( (*it).name );
addr.setEmails( (*it).email );