summaryrefslogtreecommitdiffstats
path: root/kaddressbook/xxport/eudora_xxport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/xxport/eudora_xxport.cpp')
-rw-r--r--kaddressbook/xxport/eudora_xxport.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kaddressbook/xxport/eudora_xxport.cpp b/kaddressbook/xxport/eudora_xxport.cpp
index 75f2ea24d..f310cb598 100644
--- a/kaddressbook/xxport/eudora_xxport.cpp
+++ b/kaddressbook/xxport/eudora_xxport.cpp
@@ -38,29 +38,29 @@
K_EXPORT_KADDRESSBOOK_XXFILTER( libkaddrbk_eudora_xxport, EudoraXXPort )
-EudoraXXPort::EudoraXXPort( KABC::AddressBook *ab, TQWidget *parent, const char *name )
+EudoraXXPort::EudoraXXPort( TDEABC::AddressBook *ab, TQWidget *parent, const char *name )
: KAB::XXPort( ab, parent, name )
{
createImportAction( i18n( "Import Eudora Addressbook..." ) );
}
-KABC::AddresseeList EudoraXXPort::importContacts( const TQString& ) const
+TDEABC::AddresseeList EudoraXXPort::importContacts( const TQString& ) const
{
TQString fileName = KFileDialog::getOpenFileName( TQDir::homeDirPath(),
"*.[tT][xX][tT]|" + i18n("Eudora Light Addressbook (*.txt)"), 0 );
if ( fileName.isEmpty() )
- return KABC::AddresseeList();
+ return TDEABC::AddresseeList();
TQFile file( fileName );
if ( !file.open( IO_ReadOnly ) )
- return KABC::AddresseeList();
+ return TDEABC::AddresseeList();
TQString line;
TQTextStream stream( &file );
- KABC::Addressee *a = 0;
+ TDEABC::Addressee *a = 0;
int bytesRead = 0;
- KABC::AddresseeList list;
+ TDEABC::AddresseeList list;
while( !stream.eof() ) {
line = stream.readLine();
@@ -72,9 +72,9 @@ KABC::AddresseeList EudoraXXPort::importContacts( const TQString& ) const
list << *a;
delete a;
a = 0;
- a = new KABC::Addressee();
+ a = new TDEABC::Addressee();
} else
- a = new KABC::Addressee();
+ a = new TDEABC::Addressee();
tmp = key( line ).stripWhiteSpace();
if ( !tmp.isEmpty() )
@@ -97,7 +97,7 @@ KABC::AddresseeList EudoraXXPort::importContacts( const TQString& ) const
tmp = get( line, "address" ).stripWhiteSpace();
if ( !tmp.isEmpty() ) {
- KABC::Address addr;
+ TDEABC::Address addr;
kdDebug(5720) << tmp << endl; // dump complete address
addr.setLabel( tmp );
a->insertAddress( addr );
@@ -105,7 +105,7 @@ KABC::AddresseeList EudoraXXPort::importContacts( const TQString& ) const
tmp = get( line, "phone" ).stripWhiteSpace();
if ( !tmp.isEmpty() )
- a->insertPhoneNumber( KABC::PhoneNumber( tmp, KABC::PhoneNumber::Home ) );
+ a->insertPhoneNumber( TDEABC::PhoneNumber( tmp, TDEABC::PhoneNumber::Home ) );
}
}