summaryrefslogtreecommitdiffstats
path: root/kaddressbook/features/resourceselection.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-20 16:27:27 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-20 16:27:27 -0600
commit94273bcb909fac42ef9427e3d8a614cab8c29c66 (patch)
tree91b99186971ecb475db3ca41b1b12df24029e389 /kaddressbook/features/resourceselection.cpp
parent41b65d69967ad0d35f8b4dd37ac63aad1cebdae9 (diff)
downloadtdepim-94273bcb909fac42ef9427e3d8a614cab8c29c66.tar.gz
tdepim-94273bcb909fac42ef9427e3d8a614cab8c29c66.zip
Rename KABC namespace
Diffstat (limited to 'kaddressbook/features/resourceselection.cpp')
-rw-r--r--kaddressbook/features/resourceselection.cpp26
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 );