diff options
Diffstat (limited to 'kaddressbook/features/resourceselection.cpp')
-rw-r--r-- | kaddressbook/features/resourceselection.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kaddressbook/features/resourceselection.cpp b/kaddressbook/features/resourceselection.cpp index 132d0bc8a..66d75b985 100644 --- a/kaddressbook/features/resourceselection.cpp +++ b/kaddressbook/features/resourceselection.cpp @@ -43,12 +43,12 @@ #include "resourceselection.h" #include <libtdepim/resourceabc.h> -class AddressBookWrapper : public KABC::AddressBook +class AddressBookWrapper : public TDEABC::AddressBook { public: - AddressBookWrapper( KABC::AddressBook* ); + AddressBookWrapper( TDEABC::AddressBook* ); - KRES::Manager<KABC::Resource>* getResourceManager() + KRES::Manager<TDEABC::Resource>* getResourceManager() { return resourceManager(); } @@ -57,7 +57,7 @@ class AddressBookWrapper : public KABC::AddressBook class ResourceItem : public TQCheckListItem { public: - ResourceItem( TDEListView *parent, KABC::Resource *resource ) + ResourceItem( TDEListView *parent, TDEABC::Resource *resource ) : TQCheckListItem( parent, resource->resourceName(), CheckBox ), mResource( resource ), mChecked( false ), mIsSubresource( false ), mSubItemsCreated( false ), @@ -88,14 +88,14 @@ class ResourceItem : public TQCheckListItem setOn(state); } bool checked() const { return mChecked; } - KABC::Resource *resource() const { return mResource; } + TDEABC::Resource *resource() const { return mResource; } TQString resourceIdentifier() const { return mResourceIdentifier; } bool isSubResource() const { return mIsSubresource; } virtual void stateChange( bool active ); private: - KABC::Resource * const mResource; + TDEABC::Resource * const mResource; bool mChecked; const bool mIsSubresource; bool mSubItemsCreated; @@ -194,7 +194,7 @@ void ResourceSelection::reloadResource() ResourceItem *item = selectedItem(); if ( !item ) return; - KABC::Resource *r = item->resource(); + TDEABC::Resource *r = item->resource(); r->load(); } @@ -203,8 +203,8 @@ void ResourceSelection::saveResource() ResourceItem *item = selectedItem(); if ( !item ) return; - KABC::Resource *r = item->resource(); - KABC::Ticket *ticket = core()->addressBook()->requestSaveTicket( r ); + TDEABC::Resource *r = item->resource(); + TDEABC::Ticket *ticket = core()->addressBook()->requestSaveTicket( r ); if ( ticket ) { r->save( ticket ); } @@ -244,7 +244,7 @@ void ResourceSelection::add() TQString type = types[ descs.findIndex( desc ) ]; // Create new resource - KABC::Resource *resource = mManager->createResource( type ); + TDEABC::Resource *resource = mManager->createResource( type ); if ( !resource ) { KMessageBox::error( this, i18n("<qt>Unable to create an address book of type <b>%1</b>.</qt>") .arg( type ) ); @@ -277,7 +277,7 @@ void ResourceSelection::edit() // view items can change during "edit", e.g. sub resources being removed -> // sub resource item removed // thus keep their data rather than their pointer - KABC::Resource *resource = item->resource(); + TDEABC::Resource *resource = item->resource(); KRES::ConfigDialog dlg( this, TQString( "contact" ), resource ); @@ -323,7 +323,7 @@ void ResourceSelection::currentChanged( TQListViewItem *item ) if ( !resItem ) return; - KABC::Resource *resource = resItem->resource(); + TDEABC::Resource *resource = resItem->resource(); if ( resItem->checked() != resItem->isOn() ) { resItem->setChecked( resItem->isOn() ); @@ -361,7 +361,7 @@ void ResourceSelection::updateView() mListView->clear(); - KRES::Manager<KABC::Resource>::Iterator it; + KRES::Manager<TDEABC::Resource>::Iterator it; for ( it = mManager->begin(); it != mManager->end(); ++it ) { ResourceItem *item = new ResourceItem( mListView, *it ); |