summaryrefslogtreecommitdiffstats
path: root/libtdepim/addresseeselector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libtdepim/addresseeselector.cpp')
-rw-r--r--libtdepim/addresseeselector.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/libtdepim/addresseeselector.cpp b/libtdepim/addresseeselector.cpp
index 30288d0aa..2234b9a75 100644
--- a/libtdepim/addresseeselector.cpp
+++ b/libtdepim/addresseeselector.cpp
@@ -43,7 +43,7 @@ class AddresseeSelector::AddressBookManager
public:
TQStringList titles() const;
- void addResource( KABC::Resource* );
+ void addResource( TDEABC::Resource* );
void addAddressBook( const TQString &title, SelectionItem::List &list );
void clear();
@@ -55,7 +55,7 @@ class AddresseeSelector::AddressBookManager
SelectionItem::List list;
};
- TQValueList<KABC::Resource*> mResources;
+ TQValueList<TDEABC::Resource*> mResources;
TQValueList<AddressBookEntry> mAddressBooks;
};
@@ -66,7 +66,7 @@ TQStringList AddresseeSelector::AddressBookManager::titles() const
// we've always an 'all' entry
titles.append( i18n( "All" ) );
- TQValueList<KABC::Resource*>::ConstIterator resIt;
+ TQValueList<TDEABC::Resource*>::ConstIterator resIt;
for ( resIt = mResources.begin(); resIt != mResources.end(); ++resIt )
titles.append( (*resIt)->resourceName() );
@@ -77,7 +77,7 @@ TQStringList AddresseeSelector::AddressBookManager::titles() const
return titles;
}
-void AddresseeSelector::AddressBookManager::addResource( KABC::Resource *resource )
+void AddresseeSelector::AddressBookManager::addResource( TDEABC::Resource *resource )
{
if ( mResources.find( resource ) == mResources.end() )
mResources.append( resource );
@@ -135,13 +135,13 @@ bool AddresseeSelector::AddressBookManager::contains( uint index, const Selectio
}
-SelectionItem::SelectionItem( const KABC::Addressee &addressee, uint index )
+SelectionItem::SelectionItem( const TDEABC::Addressee &addressee, uint index )
: mAddressee( addressee ), mDistributionList( 0 ), mIndex( index )
{
mField.fill( false, 10 );
}
-SelectionItem::SelectionItem( KABC::DistributionList *list, uint index )
+SelectionItem::SelectionItem( TDEABC::DistributionList *list, uint index )
: mDistributionList( list ), mIndex( index )
{
mField.fill( false, 10 );
@@ -168,12 +168,12 @@ bool SelectionItem::isInField( int index )
return mField.testBit( index );
}
-KABC::Addressee SelectionItem::addressee() const
+TDEABC::Addressee SelectionItem::addressee() const
{
return mAddressee;
}
-KABC::DistributionList* SelectionItem::distributionList() const
+TDEABC::DistributionList* SelectionItem::distributionList() const
{
return mDistributionList;
}
@@ -250,7 +250,7 @@ AddresseeSelector::~AddresseeSelector()
void AddresseeSelector::init()
{
- connect( KABC::StdAddressBook::self( true ), TQT_SIGNAL( addressBookChanged( AddressBook* ) ),
+ connect( TDEABC::StdAddressBook::self( true ), TQT_SIGNAL( addressBookChanged( AddressBook* ) ),
this, TQT_SLOT( reloadAddressBook() ) );
connect( mAddresseeFilter, TQT_SIGNAL( textChanged( const TQString& ) ),
this, TQT_SLOT( updateAddresseeView() ) );
@@ -400,7 +400,7 @@ void AddresseeSelector::remove( int index )
}
}
-void AddresseeSelector::setItemSelected( uint fieldIndex, const KABC::Addressee &addr, uint itemIndex )
+void AddresseeSelector::setItemSelected( uint fieldIndex, const TDEABC::Addressee &addr, uint itemIndex )
{
bool found = false;
@@ -422,7 +422,7 @@ void AddresseeSelector::setItemSelected( uint fieldIndex, const KABC::Addressee
updateSelectionView( fieldIndex );
}
-void AddresseeSelector::setItemSelected( uint fieldIndex, const KABC::Addressee &addr,
+void AddresseeSelector::setItemSelected( uint fieldIndex, const TDEABC::Addressee &addr,
uint itemIndex, const TQString &text )
{
bool found = false;
@@ -466,8 +466,8 @@ void AddresseeSelector::updateSelectionViews()
void AddresseeSelector::reloadAddressBook()
{
// load contacts
- KABC::Addressee::List list = KABC::StdAddressBook::self( true )->allAddressees();
- KABC::Addressee::List::Iterator it;
+ TDEABC::Addressee::List list = TDEABC::StdAddressBook::self( true )->allAddressees();
+ TDEABC::Addressee::List::Iterator it;
SelectionItem::List selectedItems;
@@ -510,7 +510,7 @@ void AddresseeSelector::reloadAddressBook()
// load distribution lists
delete mManager;
- mManager = new KABC::DistributionListManager( KABC::StdAddressBook::self( true ) );
+ mManager = new TDEABC::DistributionListManager( TDEABC::StdAddressBook::self( true ) );
mManager->load();
@@ -518,7 +518,7 @@ void AddresseeSelector::reloadAddressBook()
TQStringList::Iterator listIt;
for ( listIt = lists.begin(); listIt != lists.end(); ++listIt ) {
- KABC::DistributionList *list = mManager->list( *listIt );
+ TDEABC::DistributionList *list = mManager->list( *listIt );
SelectionItem item( list, 0 );
mSelectionItems.append( item );
}
@@ -528,8 +528,8 @@ void AddresseeSelector::reloadAddressBook()
// update address book combo
mAddressBookCombo->clear();
- TQPtrList<KABC::Resource> resources = KABC::StdAddressBook::self( true )->resources();
- TQPtrListIterator<KABC::Resource> resIt( resources );
+ TQPtrList<TDEABC::Resource> resources = TDEABC::StdAddressBook::self( true )->resources();
+ TQPtrListIterator<TDEABC::Resource> resIt( resources );
while ( resIt.current() ) {
if ( resIt.current()->isActive() )
mAddressBookManager->addResource( resIt );
@@ -540,7 +540,7 @@ void AddresseeSelector::reloadAddressBook()
for ( uint i = 0; i < mSelection->addressBookCount(); ++i ) {
SelectionItem::List itemList;
- KABC::Addressee::List addrList = mSelection->addressBookContent( i );
+ TDEABC::Addressee::List addrList = mSelection->addressBookContent( i );
for ( it = addrList.begin(); it != addrList.end(); ++it ) {
uint itemCount = mSelection->itemCount( *it );
for ( uint index = 0; index < itemCount; ++index ) {