summaryrefslogtreecommitdiffstats
path: root/libkcal/incidenceformatter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkcal/incidenceformatter.cpp')
-rw-r--r--libkcal/incidenceformatter.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/libkcal/incidenceformatter.cpp b/libkcal/incidenceformatter.cpp
index 1455a24a0..f8f6fa7c7 100644
--- a/libkcal/incidenceformatter.cpp
+++ b/libkcal/incidenceformatter.cpp
@@ -183,10 +183,10 @@ static TQString displayViewLinkPerson( const TQString& email, TQString name, TQS
// Make the search, if there is an email address to search on,
// and either name or uid is missing
if ( !email.isEmpty() && ( name.isEmpty() || uid.isEmpty() ) ) {
- KABC::AddressBook *add_book = KABC::StdAddressBook::self( true );
- KABC::Addressee::List addressList = add_book->findByEmail( email );
+ TDEABC::AddressBook *add_book = TDEABC::StdAddressBook::self( true );
+ TDEABC::Addressee::List addressList = add_book->findByEmail( email );
if ( !addressList.isEmpty() ) {
- KABC::Addressee o = addressList.first();
+ TDEABC::Addressee o = addressList.first();
if ( !o.isEmpty() && addressList.size() < 2 ) {
if ( name.isEmpty() ) {
// No name set, so use the one from the addressbook
@@ -1134,10 +1134,10 @@ static TQString invitationPerson( const TQString& email, TQString name, TQString
// Make the search, if there is an email address to search on,
// and either name or uid is missing
if ( !email.isEmpty() && ( name.isEmpty() || uid.isEmpty() ) ) {
- KABC::AddressBook *add_book = KABC::StdAddressBook::self( true );
- KABC::Addressee::List addressList = add_book->findByEmail( email );
+ TDEABC::AddressBook *add_book = TDEABC::StdAddressBook::self( true );
+ TDEABC::Addressee::List addressList = add_book->findByEmail( email );
if ( !addressList.isEmpty() ) {
- KABC::Addressee o = addressList.first();
+ TDEABC::Addressee o = addressList.first();
if ( !o.isEmpty() && addressList.size() < 2 ) {
if ( name.isEmpty() ) {
// No name set, so use the one from the addressbook
@@ -2832,8 +2832,8 @@ TQString IncidenceFormatter::msTNEFToVPart( const TQByteArray& tnef )
KTNEFParser parser;
TQBuffer buf( tnef );
CalendarLocal cal ( TQString::fromLatin1( "UTC" ) );
- KABC::Addressee addressee;
- KABC::VCardConverter cardConv;
+ TDEABC::Addressee addressee;
+ TDEABC::VCardConverter cardConv;
ICalFormat calFormat;
Event* event = new Event();
@@ -3069,14 +3069,14 @@ TQString IncidenceFormatter::msTNEFToVPart( const TQByteArray& tnef )
vPart += stringProp(tnefMsg, "\n","NOTE", ... , "" );
*/
- KABC::Address adr;
+ TDEABC::Address adr;
adr.setPostOfficeBox( stringProp( tnefMsg, MAPI_TAG_PR_HOME_ADDRESS_PO_BOX ) );
adr.setStreet( stringProp( tnefMsg, MAPI_TAG_PR_HOME_ADDRESS_STREET ) );
adr.setLocality( stringProp( tnefMsg, MAPI_TAG_PR_HOME_ADDRESS_CITY ) );
adr.setRegion( stringProp( tnefMsg, MAPI_TAG_PR_HOME_ADDRESS_STATE_OR_PROVINCE ) );
adr.setPostalCode( stringProp( tnefMsg, MAPI_TAG_PR_HOME_ADDRESS_POSTAL_CODE ) );
adr.setCountry( stringProp( tnefMsg, MAPI_TAG_PR_HOME_ADDRESS_COUNTRY ) );
- adr.setType(KABC::Address::Home);
+ adr.setType(TDEABC::Address::Home);
addressee.insertAddress(adr);
adr.setPostOfficeBox( sNamedProp( tnefMsg, MAPI_TAG_CONTACT_BUSINESSADDRESSPOBOX ) );
@@ -3085,7 +3085,7 @@ TQString IncidenceFormatter::msTNEFToVPart( const TQByteArray& tnef )
adr.setRegion( sNamedProp( tnefMsg, MAPI_TAG_CONTACT_BUSINESSADDRESSSTATE ) );
adr.setPostalCode( sNamedProp( tnefMsg, MAPI_TAG_CONTACT_BUSINESSADDRESSPOSTALCODE ) );
adr.setCountry( sNamedProp( tnefMsg, MAPI_TAG_CONTACT_BUSINESSADDRESSCOUNTRY ) );
- adr.setType( KABC::Address::Work );
+ adr.setType( TDEABC::Address::Work );
addressee.insertAddress( adr );
adr.setPostOfficeBox( stringProp( tnefMsg, MAPI_TAG_PR_OTHER_ADDRESS_PO_BOX ) );
@@ -3094,7 +3094,7 @@ TQString IncidenceFormatter::msTNEFToVPart( const TQByteArray& tnef )
adr.setRegion( stringProp(tnefMsg, MAPI_TAG_PR_OTHER_ADDRESS_STATE_OR_PROVINCE ) );
adr.setPostalCode( stringProp(tnefMsg, MAPI_TAG_PR_OTHER_ADDRESS_POSTAL_CODE ) );
adr.setCountry( stringProp(tnefMsg, MAPI_TAG_PR_OTHER_ADDRESS_COUNTRY ) );
- adr.setType( KABC::Address::Dom );
+ adr.setType( TDEABC::Address::Dom );
addressee.insertAddress(adr);
// problem: the 'other' address was stored by KOrganizer in
@@ -3103,15 +3103,15 @@ TQString IncidenceFormatter::msTNEFToVPart( const TQByteArray& tnef )
TQString nr;
nr = stringProp( tnefMsg, MAPI_TAG_PR_HOME_TELEPHONE_NUMBER );
- addressee.insertPhoneNumber( KABC::PhoneNumber( nr, KABC::PhoneNumber::Home ) );
+ addressee.insertPhoneNumber( TDEABC::PhoneNumber( nr, TDEABC::PhoneNumber::Home ) );
nr = stringProp( tnefMsg, MAPI_TAG_PR_BUSINESS_TELEPHONE_NUMBER );
- addressee.insertPhoneNumber( KABC::PhoneNumber( nr, KABC::PhoneNumber::Work ) );
+ addressee.insertPhoneNumber( TDEABC::PhoneNumber( nr, TDEABC::PhoneNumber::Work ) );
nr = stringProp( tnefMsg, MAPI_TAG_PR_MOBILE_TELEPHONE_NUMBER );
- addressee.insertPhoneNumber( KABC::PhoneNumber( nr, KABC::PhoneNumber::Cell ) );
+ addressee.insertPhoneNumber( TDEABC::PhoneNumber( nr, TDEABC::PhoneNumber::Cell ) );
nr = stringProp( tnefMsg, MAPI_TAG_PR_HOME_FAX_NUMBER );
- addressee.insertPhoneNumber( KABC::PhoneNumber( nr, KABC::PhoneNumber::Fax | KABC::PhoneNumber::Home ) );
+ addressee.insertPhoneNumber( TDEABC::PhoneNumber( nr, TDEABC::PhoneNumber::Fax | TDEABC::PhoneNumber::Home ) );
nr = stringProp( tnefMsg, MAPI_TAG_PR_BUSINESS_FAX_NUMBER );
- addressee.insertPhoneNumber( KABC::PhoneNumber( nr, KABC::PhoneNumber::Fax | KABC::PhoneNumber::Work ) );
+ addressee.insertPhoneNumber( TDEABC::PhoneNumber( nr, TDEABC::PhoneNumber::Fax | TDEABC::PhoneNumber::Work ) );
s = tnefMsg->findProp( MAPI_TAG_PR_BIRTHDAY )
.replace( TQChar( '-' ), TQString() )
@@ -3133,7 +3133,7 @@ TQString IncidenceFormatter::msTNEFToVPart( const TQByteArray& tnef )
return iCal;
// Not an iCal - try a vCard
- KABC::VCardConverter converter;
+ TDEABC::VCardConverter converter;
return converter.createVCard( addressee );
}
@@ -3360,10 +3360,10 @@ static TQString tooltipPerson( const TQString& email, TQString name )
// Make the search, if there is an email address to search on,
// and name is missing
if ( name.isEmpty() && !email.isEmpty() ) {
- KABC::AddressBook *add_book = KABC::StdAddressBook::self( true );
- KABC::Addressee::List addressList = add_book->findByEmail( email );
+ TDEABC::AddressBook *add_book = TDEABC::StdAddressBook::self( true );
+ TDEABC::Addressee::List addressList = add_book->findByEmail( email );
if ( !addressList.isEmpty() ) {
- KABC::Addressee o = addressList.first();
+ TDEABC::Addressee o = addressList.first();
if ( !o.isEmpty() && addressList.size() < 2 ) {
// use the name from the addressbook
name = o.formattedName();