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.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kaddressbook/xxport/eudora_xxport.cpp b/kaddressbook/xxport/eudora_xxport.cpp
index bb4ae373..d31cd111 100644
--- a/kaddressbook/xxport/eudora_xxport.cpp
+++ b/kaddressbook/xxport/eudora_xxport.cpp
@@ -21,7 +21,7 @@
without including the source code for Qt in the source distribution.
*/
-#include <qfile.h>
+#include <tqfile.h>
#include <kfiledialog.h>
#include <kio/netaccess.h>
@@ -38,25 +38,25 @@
K_EXPORT_KADDRESSBOOK_XXFILTER( libkaddrbk_eudora_xxport, EudoraXXPort )
-EudoraXXPort::EudoraXXPort( KABC::AddressBook *ab, QWidget *parent, const char *name )
+EudoraXXPort::EudoraXXPort( KABC::AddressBook *ab, TQWidget *parent, const char *name )
: KAB::XXPort( ab, parent, name )
{
createImportAction( i18n( "Import Eudora Addressbook..." ) );
}
-KABC::AddresseeList EudoraXXPort::importContacts( const QString& ) const
+KABC::AddresseeList EudoraXXPort::importContacts( const TQString& ) const
{
- QString fileName = KFileDialog::getOpenFileName( QDir::homeDirPath(),
+ TQString fileName = KFileDialog::getOpenFileName( TQDir::homeDirPath(),
"*.[tT][xX][tT]|" + i18n("Eudora Light Addressbook (*.txt)"), 0 );
if ( fileName.isEmpty() )
return KABC::AddresseeList();
- QFile file( fileName );
+ TQFile file( fileName );
if ( !file.open( IO_ReadOnly ) )
return KABC::AddresseeList();
- QString line;
- QTextStream stream( &file );
+ TQString line;
+ TQTextStream stream( &file );
KABC::Addressee *a = 0;
int bytesRead = 0;
@@ -65,7 +65,7 @@ KABC::AddresseeList EudoraXXPort::importContacts( const QString& ) const
while( !stream.eof() ) {
line = stream.readLine();
bytesRead += line.length();
- QString tmp;
+ TQString tmp;
if ( line.startsWith( "alias" ) ) {
if ( a ) { // Write it out
@@ -120,10 +120,10 @@ KABC::AddresseeList EudoraXXPort::importContacts( const QString& ) const
return list;
}
-QString EudoraXXPort::key( const QString& line) const
+TQString EudoraXXPort::key( const TQString& line) const
{
int e;
- QString result;
+ TQString result;
int b = line.find( '\"', 0 );
if ( b == -1 ) {
@@ -148,10 +148,10 @@ QString EudoraXXPort::key( const QString& line) const
return result;
}
-QString EudoraXXPort::email( const QString& line ) const
+TQString EudoraXXPort::email( const TQString& line ) const
{
int b;
- QString result;
+ TQString result;
b = line.findRev( '\"' );
if ( b == -1 ) {
b = line.findRev( ' ' );
@@ -163,10 +163,10 @@ QString EudoraXXPort::email( const QString& line ) const
return result;
}
-QString EudoraXXPort::comment( const QString& line ) const
+TQString EudoraXXPort::comment( const TQString& line ) const
{
int b;
- QString result;
+ TQString result;
uint i;
b = line.findRev( '>' );
if ( b == -1 ) {
@@ -184,24 +184,24 @@ QString EudoraXXPort::comment( const QString& line ) const
return result;
}
-QString EudoraXXPort::get( const QString& line, const QString& key ) const
+TQString EudoraXXPort::get( const TQString& line, const TQString& key ) const
{
- QString fd = "<" + key + ":";
+ TQString fd = "<" + key + ":";
int b, e;
uint i;
// Find formatted key, return on error
b = line.find( fd );
if ( b == -1 )
- return QString::null;
+ return TQString::null;
b += fd.length();
e = line.find( '>', b );
if ( e == -1 )
- return QString::null;
+ return TQString::null;
e--;
- QString result = line.mid( b, e - b + 1 );
+ TQString result = line.mid( b, e - b + 1 );
for ( i = 0; i < result.length(); i++ ) {
if ( result[ i ] == CTRL_C )
result[ i ] = '\n';