diff options
Diffstat (limited to 'kmail/distributionlistdialog.cpp')
-rw-r--r-- | kmail/distributionlistdialog.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kmail/distributionlistdialog.cpp b/kmail/distributionlistdialog.cpp index 010fdd9be..031e9108c 100644 --- a/kmail/distributionlistdialog.cpp +++ b/kmail/distributionlistdialog.cpp @@ -51,19 +51,19 @@ class DistributionListItem : public TQCheckListItem { } - void setAddressee( const KABC::Addressee &a, const TQString &email ) + void setAddressee( const TDEABC::Addressee &a, const TQString &email ) { mIsTransient = false; init( a, email ); } - void setTransientAddressee( const KABC::Addressee &a, const TQString &email ) + void setTransientAddressee( const TDEABC::Addressee &a, const TQString &email ) { mIsTransient = true; init( a, email ); } - void init( const KABC::Addressee &a, const TQString &email ) + void init( const TDEABC::Addressee &a, const TQString &email ) { mAddressee = a; mEmail = email; @@ -71,7 +71,7 @@ class DistributionListItem : public TQCheckListItem setText( 2, mEmail ); } - KABC::Addressee addressee() const + TDEABC::Addressee addressee() const { return mAddressee; } @@ -87,7 +87,7 @@ class DistributionListItem : public TQCheckListItem } private: - KABC::Addressee mAddressee; + TDEABC::Addressee mAddressee; TQString mEmail; bool mIsTransient; }; @@ -127,19 +127,19 @@ void DistributionListDialog::setRecipients( const Recipient::List &recipients ) for( it2 = emails.begin(); it2 != emails.end(); ++it2 ) { TQString name; TQString email; - KABC::Addressee::parseEmailAddress( *it2, name, email ); + TDEABC::Addressee::parseEmailAddress( *it2, name, email ); if ( !email.isEmpty() ) { DistributionListItem *item = new DistributionListItem( mRecipientsList ); - KABC::Addressee::List addressees = - KABC::StdAddressBook::self( true )->findByEmail( email ); + TDEABC::Addressee::List addressees = + TDEABC::StdAddressBook::self( true )->findByEmail( email ); if ( addressees.isEmpty() ) { - KABC::Addressee a; + TDEABC::Addressee a; a.setNameFromString( name ); a.insertEmail( email ); item->setTransientAddressee( a, email ); item->setOn( true ); } else { - KABC::Addressee::List::ConstIterator it3; + TDEABC::Addressee::List::ConstIterator it3; for( it3 = addressees.begin(); it3 != addressees.end(); ++it3 ) { item->setAddressee( *it3, email ); if ( it3 == addressees.begin() ) item->setOn( true ); @@ -173,7 +173,7 @@ void DistributionListDialog::slotUser1() } #ifndef TDEPIM_NEW_DISTRLISTS - KABC::DistributionListManager manager( ab ); + TDEABC::DistributionListManager manager( ab ); manager.load(); #endif @@ -187,7 +187,7 @@ void DistributionListDialog::slotUser1() return; } - KABC::AddressBook *ab = KABC::StdAddressBook::self( true ); + TDEABC::AddressBook *ab = TDEABC::StdAddressBook::self( true ); #ifdef TDEPIM_NEW_DISTRLISTS if ( !KPIM::DistributionList::findByName( ab, name ).isEmpty() ) { @@ -200,13 +200,13 @@ void DistributionListDialog::slotUser1() return; } - KABC::Resource* const resource = KAddrBookExternal::selectResourceForSaving( ab ); + TDEABC::Resource* const resource = KAddrBookExternal::selectResourceForSaving( ab ); if ( !resource ) return; // Ask for a save ticket here, we use it for inserting the recipients into the addressbook and // also for saving the addressbook, see https://issues.kolab.org/issue4281 - KABC::Ticket *ticket = ab->requestSaveTicket( resource ); + TDEABC::Ticket *ticket = ab->requestSaveTicket( resource ); if ( !ticket ) { kdWarning(5006) << "Unable to get save ticket!" << endl; return; @@ -235,7 +235,7 @@ void DistributionListDialog::slotUser1() resource->insertAddressee( dlist ); #else - KABC::DistributionList *dlist = new KABC::DistributionList( &manager, name ); + TDEABC::DistributionList *dlist = new TDEABC::DistributionList( &manager, name ); i = mRecipientsList->firstChild(); while( i ) { DistributionListItem *item = static_cast<DistributionListItem *>( i ); |