diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-20 16:27:27 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-20 16:27:27 -0600 |
commit | 94273bcb909fac42ef9427e3d8a614cab8c29c66 (patch) | |
tree | 91b99186971ecb475db3ca41b1b12df24029e389 /kaddressbook/features/distributionlistwidget.cpp | |
parent | 41b65d69967ad0d35f8b4dd37ac63aad1cebdae9 (diff) | |
download | tdepim-94273bcb909fac42ef9427e3d8a614cab8c29c66.tar.gz tdepim-94273bcb909fac42ef9427e3d8a614cab8c29c66.zip |
Rename KABC namespace
Diffstat (limited to 'kaddressbook/features/distributionlistwidget.cpp')
-rw-r--r-- | kaddressbook/features/distributionlistwidget.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/kaddressbook/features/distributionlistwidget.cpp b/kaddressbook/features/distributionlistwidget.cpp index 95bf46607..dce024a87 100644 --- a/kaddressbook/features/distributionlistwidget.cpp +++ b/kaddressbook/features/distributionlistwidget.cpp @@ -44,7 +44,7 @@ typedef KPIM::DistributionList DistributionList; #else #include <tdeabc/distributionlist.h> -typedef KABC::DistributionList DistributionList; +typedef TDEABC::DistributionList DistributionList; #endif #include <tdeabc/stdaddressbook.h> #include <tdeabc/vcardconverter.h> @@ -109,7 +109,7 @@ class DeletePressedCatcher : public TQObject class ContactItem : public TQListViewItem { public: - ContactItem( DistributionListView *parent, const KABC::Addressee &addressee, + ContactItem( DistributionListView *parent, const TDEABC::Addressee &addressee, const TQString &email = TQString() ) : TQListViewItem( parent ), mAddressee( addressee ), @@ -125,7 +125,7 @@ class ContactItem : public TQListViewItem } } - KABC::Addressee addressee() const + TDEABC::Addressee addressee() const { return mAddressee; } @@ -142,7 +142,7 @@ class ContactItem : public TQListViewItem } private: - KABC::Addressee mAddressee; + TDEABC::Addressee mAddressee; TQString mEmail; }; @@ -206,9 +206,9 @@ DistributionListWidget::DistributionListWidget( KAB::Core *core, TQWidget *paren connect( core, TQT_SIGNAL( contactsUpdated() ), this, TQT_SLOT( updateNameCombo() ) ); #else - mManager = new KABC::DistributionListManager( core->addressBook() ); + mManager = new TDEABC::DistributionListManager( core->addressBook() ); - connect( KABC::DistributionListWatcher::self(), TQT_SIGNAL( changed() ), + connect( TDEABC::DistributionListWatcher::self(), TQT_SIGNAL( changed() ), this, TQT_SLOT( updateNameCombo() ) ); #endif @@ -274,7 +274,7 @@ void DistributionListWidget::createList() return; } #ifdef TDEPIM_NEW_DISTRLISTS - KABC::Resource* resource = core()->requestResource( this ); + TDEABC::Resource* resource = core()->requestResource( this ); if ( !resource ) return; @@ -287,7 +287,7 @@ void DistributionListWidget::createList() core()->addressBook()->insertAddressee( dist ); #else - new KABC::DistributionList( mManager, newName ); + new TDEABC::DistributionList( mManager, newName ); changed(); updateNameCombo(); @@ -324,7 +324,7 @@ void DistributionListWidget::editList() changed( dist ); #else - KABC::DistributionList *list = mManager->list( oldName ); + TDEABC::DistributionList *list = mManager->list( oldName ); list->setName( newName ); mManager->save(); updateNameCombo(); @@ -377,14 +377,14 @@ void DistributionListWidget::addContact() return; } #else - KABC::DistributionList *list = mManager->list( mNameCombo->currentText() ); + TDEABC::DistributionList *list = mManager->list( mNameCombo->currentText() ); if ( !list ) return; - KABC::DistributionList& dist = *list; + TDEABC::DistributionList& dist = *list; #endif - const KABC::Addressee::List addrList = selectedContacts(); - KABC::Addressee::List::ConstIterator it; + const TDEABC::Addressee::List addrList = selectedContacts(); + TDEABC::Addressee::List::ConstIterator it; for ( it = addrList.begin(); it != addrList.end(); ++it ) dist.insertEntry( *it ); @@ -405,10 +405,10 @@ void DistributionListWidget::removeContact() if ( dist.isEmpty() ) // not found return; #else - KABC::DistributionList *list = mManager->list( mNameCombo->currentText() ); + TDEABC::DistributionList *list = mManager->list( mNameCombo->currentText() ); if ( !list ) return; - KABC::DistributionList& dist = *list; + TDEABC::DistributionList& dist = *list; #endif ContactItem *contactItem = @@ -435,10 +435,10 @@ void DistributionListWidget::changeEmail() if ( dist.isEmpty() ) // not found return; #else - KABC::DistributionList *list = mManager->list( mNameCombo->currentText() ); + TDEABC::DistributionList *list = mManager->list( mNameCombo->currentText() ); if ( !list ) return; - KABC::DistributionList& dist = *list; + TDEABC::DistributionList& dist = *list; #endif ContactItem *contactItem = @@ -475,7 +475,7 @@ void DistributionListWidget::updateContactView() core()->addressBook(), mNameCombo->currentText() ); isListSelected = !dist.isEmpty(); #else - KABC::DistributionList *list = mManager->list( mNameCombo->currentText() ); + TDEABC::DistributionList *list = mManager->list( mNameCombo->currentText() ); isListSelected = list != 0; #endif if ( !isListSelected ) { @@ -495,8 +495,8 @@ void DistributionListWidget::updateContactView() const KPIM::DistributionList::Entry::List entries = dist.entries( core()->addressBook() ); KPIM::DistributionList::Entry::List::ConstIterator it; #else - const KABC::DistributionList::Entry::List entries = list->entries(); - KABC::DistributionList::Entry::List::ConstIterator it; + const TDEABC::DistributionList::Entry::List entries = list->entries(); + TDEABC::DistributionList::Entry::List::ConstIterator it; #endif for ( it = entries.begin(); it != entries.end(); ++it, ++entryCount ) new ContactItem( mContactView, (*it).addressee, (*it).email ); @@ -535,17 +535,17 @@ void DistributionListWidget::dropEvent( TQDropEvent *e ) if ( dist.isEmpty() ) return; #else - KABC::DistributionList *list = mManager->list( mNameCombo->currentText() ); + TDEABC::DistributionList *list = mManager->list( mNameCombo->currentText() ); if ( !list ) return; - KABC::DistributionList& dist = *list; + TDEABC::DistributionList& dist = *list; #endif TQString vcards; if ( KVCardDrag::decode( e, vcards ) ) { - KABC::VCardConverter converter; - const KABC::Addressee::List lst = converter.parseVCards( vcards ); - for ( KABC::Addressee::List::ConstIterator it = lst.begin(); it != lst.end(); ++it ) + TDEABC::VCardConverter converter; + const TDEABC::Addressee::List lst = converter.parseVCards( vcards ); + for ( TDEABC::Addressee::List::ConstIterator it = lst.begin(); it != lst.end(); ++it ) dist.insertEntry( *it ); #ifdef TDEPIM_NEW_DISTRLISTS @@ -579,9 +579,9 @@ void DistributionListWidget::dropped( TQDropEvent *e, TQListViewItem* ) } #ifdef TDEPIM_NEW_DISTRLISTS -void DistributionListWidget::changed( const KABC::Addressee& dist ) +void DistributionListWidget::changed( const TDEABC::Addressee& dist ) { - emit modified( KABC::Addressee::List() << dist ); + emit modified( TDEABC::Addressee::List() << dist ); } #else void DistributionListWidget::changed() |