summaryrefslogtreecommitdiffstats
path: root/kaddressbook/xxport/opera_xxport.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/xxport/opera_xxport.cpp
parent41b65d69967ad0d35f8b4dd37ac63aad1cebdae9 (diff)
downloadtdepim-94273bcb909fac42ef9427e3d8a614cab8c29c66.tar.gz
tdepim-94273bcb909fac42ef9427e3d8a614cab8c29c66.zip
Rename KABC namespace
Diffstat (limited to 'kaddressbook/xxport/opera_xxport.cpp')
-rw-r--r--kaddressbook/xxport/opera_xxport.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kaddressbook/xxport/opera_xxport.cpp b/kaddressbook/xxport/opera_xxport.cpp
index 0a4ac4886..0332d9acc 100644
--- a/kaddressbook/xxport/opera_xxport.cpp
+++ b/kaddressbook/xxport/opera_xxport.cpp
@@ -38,15 +38,15 @@
K_EXPORT_KADDRESSBOOK_XXFILTER( libkaddrbk_opera_xxport, OperaXXPort )
-OperaXXPort::OperaXXPort( KABC::AddressBook *ab, TQWidget *parent, const char *name )
+OperaXXPort::OperaXXPort( TDEABC::AddressBook *ab, TQWidget *parent, const char *name )
: KAB::XXPort( ab, parent, name )
{
createImportAction( i18n( "Import Opera Addressbook..." ) );
}
-KABC::AddresseeList OperaXXPort::importContacts( const TQString& ) const
+TDEABC::AddresseeList OperaXXPort::importContacts( const TQString& ) const
{
- KABC::AddresseeList addrList;
+ TDEABC::AddresseeList addrList;
TQString fileName = KFileDialog::getOpenFileName( TQDir::homeDirPath() + TQString::fromLatin1( "/.opera/contacts.adr" ) );
if ( fileName.isEmpty() )
@@ -63,7 +63,7 @@ KABC::AddresseeList OperaXXPort::importContacts( const TQString& ) const
stream.setEncoding( TQTextStream::UnicodeUTF8 );
TQString line, key, value;
bool parseContact = false;
- KABC::Addressee addr;
+ TDEABC::Addressee addr;
TQRegExp separator( "\x02\x02" );
@@ -72,13 +72,13 @@ KABC::AddresseeList OperaXXPort::importContacts( const TQString& ) const
line = line.stripWhiteSpace();
if ( line == TQString::fromLatin1( "#CONTACT" ) ) {
parseContact = true;
- addr = KABC::Addressee();
+ addr = TDEABC::Addressee();
continue;
} else if ( line.isEmpty() ) {
parseContact = false;
if ( !addr.isEmpty() ) {
addrList.append( addr );
- addr = KABC::Addressee();
+ addr = TDEABC::Addressee();
}
continue;
}
@@ -99,12 +99,12 @@ KABC::AddresseeList OperaXXPort::importContacts( const TQString& ) const
preferred = false;
}
} else if ( key == TQString::fromLatin1( "phone" ) )
- addr.insertPhoneNumber( KABC::PhoneNumber( value ) );
+ addr.insertPhoneNumber( TDEABC::PhoneNumber( value ) );
else if ( key == TQString::fromLatin1( "fax" ) )
- addr.insertPhoneNumber( KABC::PhoneNumber( value,
- KABC::PhoneNumber::Fax | KABC::PhoneNumber::Home ) );
+ addr.insertPhoneNumber( TDEABC::PhoneNumber( value,
+ TDEABC::PhoneNumber::Fax | TDEABC::PhoneNumber::Home ) );
else if ( key == TQString::fromLatin1( "postaladdress" ) ) {
- KABC::Address address( KABC::Address::Home );
+ TDEABC::Address address( TDEABC::Address::Home );
address.setLabel( value.replace( separator, "\n" ) );
addr.insertAddress( address );
} else if ( key == TQString::fromLatin1( "description" ) )
@@ -112,7 +112,7 @@ KABC::AddresseeList OperaXXPort::importContacts( const TQString& ) const
else if ( key == TQString::fromLatin1( "url" ) )
addr.setUrl( KURL( value ) );
else if ( key == TQString::fromLatin1( "pictureurl" ) ) {
- KABC::Picture pic( value );
+ TDEABC::Picture pic( value );
addr.setPhoto( pic );
}
}