diff options
author | Timothy Pearson <[email protected]> | 2013-02-20 16:27:19 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-20 16:27:19 -0600 |
commit | abed891d4e05028ca7fdfa1aecb047d2cc9e3da9 (patch) | |
tree | 3886579911eba100500e673e5c994dbcae42a6d2 /kopete/libkopete/kabcpersistence.cpp | |
parent | 795ed72fdb980600d4da57fdf9e689cdbbfc9a9a (diff) | |
download | tdenetwork-abed891d4e05028ca7fdfa1aecb047d2cc9e3da9.tar.gz tdenetwork-abed891d4e05028ca7fdfa1aecb047d2cc9e3da9.zip |
Rename KABC namespace
Diffstat (limited to 'kopete/libkopete/kabcpersistence.cpp')
-rw-r--r-- | kopete/libkopete/kabcpersistence.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kopete/libkopete/kabcpersistence.cpp b/kopete/libkopete/kabcpersistence.cpp index 2e0e5b61..0d03fc07 100644 --- a/kopete/libkopete/kabcpersistence.cpp +++ b/kopete/libkopete/kabcpersistence.cpp @@ -72,9 +72,9 @@ KABCPersistence *KABCPersistence::s_self = 0L; bool KABCPersistence::s_addrBookWritePending = false; -TQPtrList<KABC::Resource> KABCPersistence::s_pendingResources; +TQPtrList<TDEABC::Resource> KABCPersistence::s_pendingResources; -KABC::AddressBook* KABCPersistence::s_addressBook = 0; +TDEABC::AddressBook* KABCPersistence::s_addressBook = 0; KABCPersistence *KABCPersistence::self() { @@ -84,12 +84,12 @@ KABCPersistence *KABCPersistence::self() return s_self; } -KABC::AddressBook* KABCPersistence::addressBook() +TDEABC::AddressBook* KABCPersistence::addressBook() { if ( s_addressBook == 0L ) { - s_addressBook = KABC::StdAddressBook::self(); - KABC::StdAddressBook::setAutomaticSave( false ); + s_addressBook = TDEABC::StdAddressBook::self(); + TDEABC::StdAddressBook::setAutomaticSave( false ); } return s_addressBook; } @@ -97,11 +97,11 @@ KABC::AddressBook* KABCPersistence::addressBook() void KABCPersistence::write( MetaContact * mc ) { // Save any changes in each contact's addressBookFields to KABC - KABC::AddressBook* ab = addressBook(); + TDEABC::AddressBook* ab = addressBook(); kdDebug( 14010 ) << k_funcinfo << "looking up Addressee for " << mc->displayName() << "..." << endl; // Look up the address book entry - KABC::Addressee theAddressee = ab->findByUid( mc->metaContactId() ); + TDEABC::Addressee theAddressee = ab->findByUid( mc->metaContactId() ); // Check that if addressee is not deleted or if the link is spurious // (inherited from Kopete < 0.8, where all metacontacts had random ids) if ( theAddressee.isEmpty() ) @@ -171,7 +171,7 @@ void KABCPersistence::write( MetaContact * mc ) }*/ } -void KABCPersistence::writeAddressBook( const KABC::Resource * res) +void KABCPersistence::writeAddressBook( const TDEABC::Resource * res) { if ( !s_pendingResources.containsRef( res ) ) s_pendingResources.append( res ); @@ -185,12 +185,12 @@ void KABCPersistence::writeAddressBook( const KABC::Resource * res) void KABCPersistence::slotWriteAddressBook() { //kdDebug( 14010 ) << k_funcinfo << endl; - KABC::AddressBook* ab = addressBook(); - TQPtrListIterator<KABC::Resource> it( s_pendingResources ); + TDEABC::AddressBook* ab = addressBook(); + TQPtrListIterator<TDEABC::Resource> it( s_pendingResources ); for ( ; it.current(); ++it ) { //kdDebug( 14010 ) << "Writing resource " << it.current()->resourceName() << endl; - KABC::Ticket *ticket = ab->requestSaveTicket( it.current() ); + TDEABC::Ticket *ticket = ab->requestSaveTicket( it.current() ); if ( !ticket ) kdWarning( 14010 ) << "WARNING: Resource is locked by other application!" << endl; else @@ -211,7 +211,7 @@ void KABCPersistence::removeKABC( MetaContact *) { /* // remove any data this KMC has written to the TDE address book // Save any changes in each contact's addressBookFields to KABC - KABC::AddressBook* ab = addressBook(); + TDEABC::AddressBook* ab = addressBook(); // Wipe out the existing addressBook entries d->addressBook.clear(); @@ -223,7 +223,7 @@ void KABCPersistence::removeKABC( MetaContact *) { //kdDebug( 14010 ) << k_funcinfo << "looking up Addressee for " << displayName() << "..." << endl; // Look up the address book entry - KABC::Addressee theAddressee = ab->findByUid( metaContactId() ); + TDEABC::Addressee theAddressee = ab->findByUid( metaContactId() ); if ( theAddressee.isEmpty() ) { @@ -259,8 +259,8 @@ bool KABCPersistence::syncWithKABC( MetaContact * mc ) kdDebug(14010) << k_funcinfo << endl; bool contactAdded = false; // check whether the dontShowAgain was checked - KABC::AddressBook* ab = addressBook(); - KABC::Addressee addr = ab->findByUid( mc->metaContactId() ); + TDEABC::AddressBook* ab = addressBook(); + TDEABC::Addressee addr = ab->findByUid( mc->metaContactId() ); if ( !addr.isEmpty() ) // if we are associated with KABC { @@ -435,9 +435,9 @@ void KABCPersistence::splitField( const TQString &str, TQString &app, TQString & void KABCPersistence::dumpAB() { - KABC::AddressBook * ab = addressBook(); + TDEABC::AddressBook * ab = addressBook(); kdDebug( 14010 ) << k_funcinfo << " DUMPING ADDRESSBOOK" << endl; - KABC::AddressBook::ConstIterator dumpit = ab->begin(); + TDEABC::AddressBook::ConstIterator dumpit = ab->begin(); for ( ; dumpit != ab->end(); ++dumpit ) { (*dumpit).dump(); |