summaryrefslogtreecommitdiffstats
path: root/tderesources/slox/tdeabcresourceslox.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 /tderesources/slox/tdeabcresourceslox.cpp
parent41b65d69967ad0d35f8b4dd37ac63aad1cebdae9 (diff)
downloadtdepim-94273bcb909fac42ef9427e3d8a614cab8c29c66.tar.gz
tdepim-94273bcb909fac42ef9427e3d8a614cab8c29c66.zip
Rename KABC namespace
Diffstat (limited to 'tderesources/slox/tdeabcresourceslox.cpp')
-rw-r--r--tderesources/slox/tdeabcresourceslox.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/tderesources/slox/tdeabcresourceslox.cpp b/tderesources/slox/tdeabcresourceslox.cpp
index 77fea0b01..248e3f395 100644
--- a/tderesources/slox/tdeabcresourceslox.cpp
+++ b/tderesources/slox/tdeabcresourceslox.cpp
@@ -38,7 +38,7 @@
#include "tdeabcresourceslox.h"
-using namespace KABC;
+using namespace TDEABC;
ResourceSlox::ResourceSlox( const TDEConfig *config )
: ResourceCached( config ), SloxBase( this )
@@ -106,13 +106,13 @@ void ResourceSlox::init()
ResourceSlox::~ResourceSlox()
{
- kdDebug() << "KABC::~ResourceSlox()" << endl;
+ kdDebug() << "TDEABC::~ResourceSlox()" << endl;
if ( mDownloadJob ) mDownloadJob->kill();
delete mPrefs;
- kdDebug() << "KABC::~ResourceSlox() done" << endl;
+ kdDebug() << "TDEABC::~ResourceSlox() done" << endl;
}
void ResourceSlox::readConfig( const TDEConfig * )
@@ -158,22 +158,22 @@ void ResourceSlox::doClose()
bool ResourceSlox::load()
{
- kdDebug() << "KABC::ResourceSlox::load()" << endl;
+ kdDebug() << "TDEABC::ResourceSlox::load()" << endl;
#if 0
return asyncLoad();
#else
- kdDebug() << "KABC::ResourceSlox::load() is a nop." << endl;
+ kdDebug() << "TDEABC::ResourceSlox::load() is a nop." << endl;
return true;
#endif
}
bool ResourceSlox::asyncLoad()
{
- kdDebug() << "KABC::ResourceSlox::asyncLoad()" << endl;
+ kdDebug() << "TDEABC::ResourceSlox::asyncLoad()" << endl;
if ( mDownloadJob ) {
- kdDebug() << "KABC::ResourceSlox::asyncLoad(): Loading still in progress."
+ kdDebug() << "TDEABC::ResourceSlox::asyncLoad(): Loading still in progress."
<< endl;
return true;
}
@@ -408,11 +408,11 @@ void ResourceSlox::parseContactAttribute( const TQDomElement &e, Addressee &a )
// read addresses
Address addr;
if ( tag.startsWith( fieldName( BusinessPrefix ) ) ) {
- addr = a.address( KABC::Address::Work );
+ addr = a.address( TDEABC::Address::Work );
} else if ( tag.startsWith( fieldName( OtherPrefix ) ) ) {
addr = a.address( 0 );
} else {
- addr = a.address( KABC::Address::Home );
+ addr = a.address( TDEABC::Address::Home );
}
if ( tag.endsWith( fieldName( Street ) ) ) {
addr.setStreet( text );
@@ -484,9 +484,9 @@ void ResourceSlox::uploadContacts()
bool isDelete = false;
- KABC::Addressee::List addedAddr = addedAddressees();
- KABC::Addressee::List changedAddr = changedAddressees();
- KABC::Addressee::List deletedAddr = deletedAddressees();
+ TDEABC::Addressee::List addedAddr = addedAddressees();
+ TDEABC::Addressee::List changedAddr = changedAddressees();
+ TDEABC::Addressee::List deletedAddr = deletedAddressees();
if ( !addedAddr.isEmpty() ) {
mUploadAddressee = addedAddr.first();
@@ -624,15 +624,15 @@ void ResourceSlox::createAddresseeFields( TQDomDocument &doc, TQDomElement &prop
}
// write addresses
- createAddressFields( doc, prop, fieldName( HomePrefix ), a.address( KABC::Address::Home ) );
+ createAddressFields( doc, prop, fieldName( HomePrefix ), a.address( TDEABC::Address::Home ) );
if ( type() == "ox" ) {
- createAddressFields( doc, prop, fieldName( BusinessPrefix ), a.address( KABC::Address::Work ) );
+ createAddressFields( doc, prop, fieldName( BusinessPrefix ), a.address( TDEABC::Address::Work ) );
createAddressFields( doc, prop, fieldName( OtherPrefix ), a.address( 0 ) );
}
}
-void KABC::ResourceSlox::createAddressFields( TQDomDocument &doc, TQDomElement &parent,
- const TQString &prefix, const KABC::Address &addr )
+void TDEABC::ResourceSlox::createAddressFields( TQDomDocument &doc, TQDomElement &parent,
+ const TQString &prefix, const TDEABC::Address &addr )
{
WebdavHandler::addSloxElement( this, doc, parent, prefix + fieldName( Street ), addr.street() );
WebdavHandler::addSloxElement( this, doc, parent, prefix + fieldName( PostalCode ), addr.postalCode() );
@@ -668,15 +668,15 @@ void ResourceSlox::cancelUpload()
void ResourceSlox::setReadOnly( bool b )
{
if ( type() == "ox" )
- KABC::Resource::setReadOnly( b );
+ TDEABC::Resource::setReadOnly( b );
else
- KABC::Resource::setReadOnly( true );
+ TDEABC::Resource::setReadOnly( true );
}
bool ResourceSlox::readOnly() const
{
if ( type() == "ox" )
- return KABC::Resource::readOnly();
+ return TDEABC::Resource::readOnly();
else
return true;
}