@ -72,9 +72,9 @@ KABCPersistence *KABCPersistence::s_self = 0L;
bool KABCPersistence : : s_addrBookWritePending = false ;
TQPtrList < K ABC: : Resource > KABCPersistence : : s_pendingResources ;
TQPtrList < TDE ABC: : Resource > KABCPersistence : : s_pendingResources ;
K ABC: : AddressBook * KABCPersistence : : s_addressBook = 0 ;
TDE ABC: : AddressBook * KABCPersistence : : s_addressBook = 0 ;
KABCPersistence * KABCPersistence : : self ( )
{
@ -84,12 +84,12 @@ KABCPersistence *KABCPersistence::self()
return s_self ;
}
K ABC: : AddressBook * KABCPersistence : : addressBook ( )
TDE ABC: : AddressBook * KABCPersistence : : addressBook ( )
{
if ( s_addressBook = = 0L )
{
s_addressBook = K ABC: : StdAddressBook : : self ( ) ;
K ABC: : StdAddressBook : : setAutomaticSave ( false ) ;
s_addressBook = TDE ABC: : StdAddressBook : : self ( ) ;
TDE ABC: : 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
K ABC: : AddressBook * ab = addressBook ( ) ;
TDE ABC: : AddressBook * ab = addressBook ( ) ;
kdDebug ( 14010 ) < < k_funcinfo < < " looking up Addressee for " < < mc - > displayName ( ) < < " ... " < < endl ;
// Look up the address book entry
K ABC: : Addressee theAddressee = ab - > findByUid ( mc - > metaContactId ( ) ) ;
TDE ABC: : 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 K ABC: : Resource * res )
void KABCPersistence : : writeAddressBook ( const TDE ABC: : 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;
K ABC: : AddressBook * ab = addressBook ( ) ;
TQPtrListIterator < K ABC: : Resource > it ( s_pendingResources ) ;
TDE ABC: : AddressBook * ab = addressBook ( ) ;
TQPtrListIterator < TDE ABC: : Resource > it ( s_pendingResources ) ;
for ( ; it . current ( ) ; + + it )
{
//kdDebug( 14010 ) << "Writing resource " << it.current()->resourceName() << endl;
K ABC: : Ticket * ticket = ab - > requestSaveTicket ( it . current ( ) ) ;
TDE ABC: : 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
K ABC: : AddressBook * ab = addressBook ( ) ;
TDE ABC: : 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
K ABC: : Addressee theAddressee = ab - > findByUid ( metaContactId ( ) ) ;
TDE ABC: : 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
K ABC: : AddressBook * ab = addressBook ( ) ;
K ABC: : Addressee addr = ab - > findByUid ( mc - > metaContactId ( ) ) ;
TDE ABC: : AddressBook * ab = addressBook ( ) ;
TDE ABC: : 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 ( )
{
K ABC: : AddressBook * ab = addressBook ( ) ;
TDE ABC: : AddressBook * ab = addressBook ( ) ;
kdDebug ( 14010 ) < < k_funcinfo < < " DUMPING ADDRESSBOOK " < < endl ;
K ABC: : AddressBook : : ConstIterator dumpit = ab - > begin ( ) ;
TDE ABC: : AddressBook : : ConstIterator dumpit = ab - > begin ( ) ;
for ( ; dumpit ! = ab - > end ( ) ; + + dumpit )
{
( * dumpit ) . dump ( ) ;