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/kolab/shared | |
parent | 41b65d69967ad0d35f8b4dd37ac63aad1cebdae9 (diff) | |
download | tdepim-94273bcb909fac42ef9427e3d8a614cab8c29c66.tar.gz tdepim-94273bcb909fac42ef9427e3d8a614cab8c29c66.zip |
Rename KABC namespace
Diffstat (limited to 'tderesources/kolab/shared')
-rw-r--r-- | tderesources/kolab/shared/kolabbase.cpp | 16 | ||||
-rw-r--r-- | tderesources/kolab/shared/kolabbase.h | 6 |
2 files changed, 11 insertions, 11 deletions
diff --git a/tderesources/kolab/shared/kolabbase.cpp b/tderesources/kolab/shared/kolabbase.cpp index 35ca5b2b8..1dc5418b8 100644 --- a/tderesources/kolab/shared/kolabbase.cpp +++ b/tderesources/kolab/shared/kolabbase.cpp @@ -80,7 +80,7 @@ void KolabBase::saveTo( KCal::Incidence* incidence ) const // TODO: Attachments } -void KolabBase::setFields( const KABC::Addressee* addressee ) +void KolabBase::setFields( const TDEABC::Addressee* addressee ) { // An addressee does not have a creation date, so somehow we should // make one, if this is a new entry @@ -114,16 +114,16 @@ void KolabBase::setFields( const KABC::Addressee* addressee ) const TQString newCreationDate = dateTimeToString( creationDate ); if ( creationString != newCreationDate ) { // We modified the creation date, so store it for future reference - const_cast<KABC::Addressee*>( addressee ) + const_cast<TDEABC::Addressee*>( addressee ) ->insertCustom( "KOLAB", "CreationDate", newCreationDate ); kdDebug(5006) << "Creation date modified. New one: " << newCreationDate << endl; } switch( addressee->secrecy().type() ) { - case KABC::Secrecy::Private: + case TDEABC::Secrecy::Private: setSensitivity( Private ); break; - case KABC::Secrecy::Confidential: + case TDEABC::Secrecy::Confidential: setSensitivity( Confidential ); break; default: @@ -133,7 +133,7 @@ void KolabBase::setFields( const KABC::Addressee* addressee ) // TODO: Attachments } -void KolabBase::saveTo( KABC::Addressee* addressee ) const +void KolabBase::saveTo( TDEABC::Addressee* addressee ) const { addressee->setUid( uid() ); addressee->setNote( body() ); @@ -144,13 +144,13 @@ void KolabBase::saveTo( KABC::Addressee* addressee ) const switch( sensitivity() ) { case Private: - addressee->setSecrecy( KABC::Secrecy( KABC::Secrecy::Private ) ); + addressee->setSecrecy( TDEABC::Secrecy( TDEABC::Secrecy::Private ) ); break; case Confidential: - addressee->setSecrecy( KABC::Secrecy( KABC::Secrecy::Confidential ) ); + addressee->setSecrecy( TDEABC::Secrecy( TDEABC::Secrecy::Confidential ) ); break; default: - addressee->setSecrecy( KABC::Secrecy( KABC::Secrecy::Public ) ); + addressee->setSecrecy( TDEABC::Secrecy( TDEABC::Secrecy::Public ) ); break; } diff --git a/tderesources/kolab/shared/kolabbase.h b/tderesources/kolab/shared/kolabbase.h index 294a7d81b..929004902 100644 --- a/tderesources/kolab/shared/kolabbase.h +++ b/tderesources/kolab/shared/kolabbase.h @@ -44,7 +44,7 @@ namespace KCal { class Incidence; } -namespace KABC { +namespace TDEABC { class Addressee; } @@ -130,10 +130,10 @@ protected: void saveTo( KCal::Incidence* ) const; /// Read all known fields from this contact - void setFields( const KABC::Addressee* ); + void setFields( const TDEABC::Addressee* ); /// Save all known fields into this contact - void saveTo( KABC::Addressee* ) const; + void saveTo( TDEABC::Addressee* ) const; // This just makes the initial dom tree with version and doctype static TQDomDocument domTree(); |