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 /tderesources/egroupware | |
parent | 41b65d69967ad0d35f8b4dd37ac63aad1cebdae9 (diff) | |
download | tdepim-94273bcb909fac42ef9427e3d8a614cab8c29c66.tar.gz tdepim-94273bcb909fac42ef9427e3d8a614cab8c29c66.zip |
Rename KABC namespace
Diffstat (limited to 'tderesources/egroupware')
7 files changed, 24 insertions, 24 deletions
diff --git a/tderesources/egroupware/kcal_resourcexmlrpc.cpp b/tderesources/egroupware/kcal_resourcexmlrpc.cpp index 7c568e4e6..7ce11dd90 100644 --- a/tderesources/egroupware/kcal_resourcexmlrpc.cpp +++ b/tderesources/egroupware/kcal_resourcexmlrpc.cpp @@ -155,7 +155,7 @@ void ResourceXMLRPC::init() mPrefs = new EGroupwarePrefs; mLoaded = 0; - mLock = new KABC::LockNull( true ); + mLock = new TDEABC::LockNull( true ); mSynchronizer = new Synchronizer(); } @@ -321,7 +321,7 @@ bool ResourceXMLRPC::isSaving() return false; } -KABC::Lock *ResourceXMLRPC::lock() +TDEABC::Lock *ResourceXMLRPC::lock() { return mLock; } diff --git a/tderesources/egroupware/kcal_resourcexmlrpc.h b/tderesources/egroupware/kcal_resourcexmlrpc.h index 9be4662fb..271995819 100644 --- a/tderesources/egroupware/kcal_resourcexmlrpc.h +++ b/tderesources/egroupware/kcal_resourcexmlrpc.h @@ -67,7 +67,7 @@ class KDE_EXPORT ResourceXMLRPC : public ResourceCached bool isSaving(); - KABC::Lock *lock(); + TDEABC::Lock *lock(); /** Add Event to calendar. @@ -228,7 +228,7 @@ class KDE_EXPORT ResourceXMLRPC : public ResourceCached Synchronizer *mSynchronizer; - KABC::Lock *mLock; + TDEABC::Lock *mLock; int mLoaded; }; diff --git a/tderesources/egroupware/tdeabc_resourcexmlrpc.cpp b/tderesources/egroupware/tdeabc_resourcexmlrpc.cpp index 7c5911d87..1929bd19c 100644 --- a/tderesources/egroupware/tdeabc_resourcexmlrpc.cpp +++ b/tderesources/egroupware/tdeabc_resourcexmlrpc.cpp @@ -39,7 +39,7 @@ #include "synchronizer.h" #include "xmlrpciface.h" -using namespace KABC; +using namespace TDEABC; static const TQString SearchContactsCommand = "addressbook.boaddressbook.search"; static const TQString AddContactCommand = "addressbook.boaddressbook.write"; @@ -47,12 +47,12 @@ static const TQString DeleteContactCommand = "addressbook.boaddressbook.delete"; static const TQString LoadCategoriesCommand = "addressbook.boaddressbook.categories"; static const TQString LoadCustomFieldsCommand = "addressbook.boaddressbook.customfields"; -static void setRights( KABC::Addressee &addr, int rights ) +static void setRights( TDEABC::Addressee &addr, int rights ) { addr.insertCustom( "EGWRESOURCE", "RIGHTS", TQString::number( rights ) ); } -static int rights( const KABC::Addressee &addr ) +static int rights( const TDEABC::Addressee &addr ) { return addr.custom( "EGWRESOURCE", "RIGHTS" ).toInt(); } @@ -227,19 +227,19 @@ bool ResourceXMLRPC::save( Ticket *ticket ) bool ResourceXMLRPC::asyncSave( Ticket* ) { - KABC::Addressee::List::ConstIterator it; + TDEABC::Addressee::List::ConstIterator it; - const KABC::Addressee::List addedList = addedAddressees(); + const TDEABC::Addressee::List addedList = addedAddressees(); for ( it = addedList.begin(); it != addedList.end(); ++it ) { addContact( *it ); } - const KABC::Addressee::List changedList = changedAddressees(); + const TDEABC::Addressee::List changedList = changedAddressees(); for ( it = changedList.begin(); it != changedList.end(); ++it ) { updateContact( *it ); } - const KABC::Addressee::List deletedList = deletedAddressees(); + const TDEABC::Addressee::List deletedList = deletedAddressees(); for ( it = deletedList.begin(); it != deletedList.end(); ++it ) { deleteContact( *it ); } @@ -333,7 +333,7 @@ void ResourceXMLRPC::listContactsFinished( const TQValueList<TQVariant> &mapList const TQValueList<TQVariant> contactList = mapList[ 0 ].toList(); TQValueList<TQVariant>::ConstIterator contactIt; - KABC::Addressee::List serverContacts; + TDEABC::Addressee::List serverContacts; for ( contactIt = contactList.begin(); contactIt != contactList.end(); ++contactIt ) { const TQMap<TQString, TQVariant> map = (*contactIt).toMap(); @@ -403,7 +403,7 @@ void ResourceXMLRPC::fault( int error, const TQString &errorMsg, void ResourceXMLRPC::addContactFault( int, const TQString &errorMsg, const TQVariant &id ) { - KABC::Addressee addr = mAddrMap[ id.toString() ]; + TDEABC::Addressee addr = mAddrMap[ id.toString() ]; mAddrMap.remove( addr.uid() ); @@ -414,7 +414,7 @@ void ResourceXMLRPC::addContactFault( int, const TQString &errorMsg, void ResourceXMLRPC::updateContactFault( int, const TQString &errorMsg, const TQVariant &id ) { - KABC::Addressee addr = mAddrMap[ id.toString() ]; + TDEABC::Addressee addr = mAddrMap[ id.toString() ]; TQString msg = i18n( "Unable to update contact %1 on server. (%2)" ); addressBook()->error( msg.arg( addr.formattedName(), errorMsg ) ); @@ -423,10 +423,10 @@ void ResourceXMLRPC::updateContactFault( int, const TQString &errorMsg, void ResourceXMLRPC::deleteContactFault( int, const TQString &errorMsg, const TQVariant &id ) { - KABC::Addressee addr; + TDEABC::Addressee addr; - const KABC::Addressee::List deletedList = deletedAddressees(); - KABC::Addressee::List::ConstIterator it; + const TDEABC::Addressee::List deletedList = deletedAddressees(); + TDEABC::Addressee::List::ConstIterator it; for ( it = deletedList.begin(); it != deletedList.end(); ++it ) { if ( (*it).uid() == id.toString() ) { addr = *it; diff --git a/tderesources/egroupware/tdeabc_resourcexmlrpc.h b/tderesources/egroupware/tdeabc_resourcexmlrpc.h index b4b6411a4..d4d6e233b 100644 --- a/tderesources/egroupware/tdeabc_resourcexmlrpc.h +++ b/tderesources/egroupware/tdeabc_resourcexmlrpc.h @@ -33,7 +33,7 @@ namespace KXMLRPC { class Server; } -namespace KABC { +namespace TDEABC { class EGroupwarePrefs; @@ -82,9 +82,9 @@ class KDE_EXPORT ResourceXMLRPC : public ResourceCached void updateContactFault( int, const TQString&, const TQVariant& ); void deleteContactFault( int, const TQString&, const TQVariant& ); - void addContact( const KABC::Addressee& ); - void updateContact( const KABC::Addressee& ); - void deleteContact( const KABC::Addressee& ); + void addContact( const TDEABC::Addressee& ); + void updateContact( const TDEABC::Addressee& ); + void deleteContact( const TDEABC::Addressee& ); private: void initEGroupware(); diff --git a/tderesources/egroupware/tdeabc_resourcexmlrpcconfig.cpp b/tderesources/egroupware/tdeabc_resourcexmlrpcconfig.cpp index 60cbb83e9..5fa07d93b 100644 --- a/tderesources/egroupware/tdeabc_resourcexmlrpcconfig.cpp +++ b/tderesources/egroupware/tdeabc_resourcexmlrpcconfig.cpp @@ -31,7 +31,7 @@ #include "tdeabc_resourcexmlrpc.h" #include "tdeabc_resourcexmlrpcconfig.h" -using namespace KABC; +using namespace TDEABC; ResourceXMLRPCConfig::ResourceXMLRPCConfig( TQWidget* parent, const char* name ) : KRES::ConfigWidget( parent, name ) diff --git a/tderesources/egroupware/tdeabc_resourcexmlrpcconfig.h b/tderesources/egroupware/tdeabc_resourcexmlrpcconfig.h index 0a9dc9f06..f4893c846 100644 --- a/tderesources/egroupware/tdeabc_resourcexmlrpcconfig.h +++ b/tderesources/egroupware/tdeabc_resourcexmlrpcconfig.h @@ -27,7 +27,7 @@ class KLineEdit; class KURLRequester; -namespace KABC { +namespace TDEABC { class KDE_EXPORT ResourceXMLRPCConfig : public KRES::ConfigWidget { diff --git a/tderesources/egroupware/tdeabc_resourcexmlrpcplugin.cpp b/tderesources/egroupware/tdeabc_resourcexmlrpcplugin.cpp index 004c6a403..01666cbe7 100644 --- a/tderesources/egroupware/tdeabc_resourcexmlrpcplugin.cpp +++ b/tderesources/egroupware/tdeabc_resourcexmlrpcplugin.cpp @@ -24,7 +24,7 @@ #include <tdeglobal.h> #include <tdelocale.h> -using namespace KABC; +using namespace TDEABC; typedef KRES::PluginFactory< ResourceXMLRPC, ResourceXMLRPCConfig > XMLRPCFactory; |