summaryrefslogtreecommitdiffstats
path: root/kaddressbook/kabtools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/kabtools.cpp')
-rw-r--r--kaddressbook/kabtools.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/kaddressbook/kabtools.cpp b/kaddressbook/kabtools.cpp
index c3b1d05bc..ba3b886f0 100644
--- a/kaddressbook/kabtools.cpp
+++ b/kaddressbook/kabtools.cpp
@@ -27,14 +27,14 @@
#include <kdebug.h>
#include <ktempdir.h>
-#include <qfile.h>
+#include <tqfile.h>
#include "kabtools.h"
-static QString uniqueFileName( const KABC::Addressee &addressee, QStringList &existingFiles )
+static TQString uniqueFileName( const KABC::Addressee &addressee, TQStringList &existingFiles )
{
- QString name;
- QString uniquePart;
+ TQString name;
+ TQString uniquePart;
uint number = 0;
do {
@@ -43,7 +43,7 @@ static QString uniqueFileName( const KABC::Addressee &addressee, QStringList &ex
name.replace( '/', '_' );
++number;
- uniquePart = QString( "_%1" ).arg( number );
+ uniquePart = TQString( "_%1" ).arg( number );
} while ( existingFiles.contains( name ) );
existingFiles.append( name );
@@ -51,7 +51,7 @@ static QString uniqueFileName( const KABC::Addressee &addressee, QStringList &ex
return name;
}
-void KABTools::mailVCards( const QStringList &uids, KABC::AddressBook *ab )
+void KABTools::mailVCards( const TQStringList &uids, KABC::AddressBook *ab )
{
KURL::List urls;
@@ -61,29 +61,29 @@ void KABTools::mailVCards( const QStringList &uids, KABC::AddressBook *ab )
return;
}
- QStringList existingFiles;
- QStringList::ConstIterator it( uids.begin() );
- const QStringList::ConstIterator endIt( uids.end() );
+ TQStringList existingFiles;
+ TQStringList::ConstIterator it( uids.begin() );
+ const TQStringList::ConstIterator endIt( uids.end() );
for ( ; it != endIt; ++it ) {
KABC::Addressee addressee = ab->findByUid( *it );
if ( addressee.isEmpty() )
continue;
- QString fileName = uniqueFileName( addressee, existingFiles );
+ TQString fileName = uniqueFileName( addressee, existingFiles );
- QString path = tempDir.name() + "/" + fileName;
+ TQString path = tempDir.name() + "/" + fileName;
- QFile file( path );
+ TQFile file( path );
if ( file.open( IO_WriteOnly ) ) {
KABC::VCardConverter converter;
KABC::Addressee::List list;
list.append( addressee );
- QString vcard = converter.createVCards( list, KABC::VCardConverter::v3_0 );
+ TQString vcard = converter.createVCards( list, KABC::VCardConverter::v3_0 );
- QTextStream t( &file );
- t.setEncoding( QTextStream::UnicodeUTF8 );
+ TQTextStream t( &file );
+ t.setEncoding( TQTextStream::UnicodeUTF8 );
t << vcard;
file.close();
@@ -94,10 +94,10 @@ void KABTools::mailVCards( const QStringList &uids, KABC::AddressBook *ab )
}
}
- kapp->invokeMailer( QString::null, QString::null, QString::null,
- QString::null,
- QString::null,
- QString::null,
+ kapp->invokeMailer( TQString::null, TQString::null, TQString::null,
+ TQString::null,
+ TQString::null,
+ TQString::null,
urls.toStringList() );
}
@@ -147,11 +147,11 @@ KABC::Addressee KABTools::mergeContacts( const KABC::Addressee::List &list )
masterAddressee.setBirthday( (*contactIt).birthday() );
// CATEGORIES
- const QStringList categories = (*contactIt).categories();
- const QStringList masterCategories = masterAddressee.categories();
- QStringList newCategories( masterCategories );
- QStringList::ConstIterator it( categories.begin() );
- QStringList::ConstIterator endIt( categories.end() );
+ const TQStringList categories = (*contactIt).categories();
+ const TQStringList masterCategories = masterAddressee.categories();
+ TQStringList newCategories( masterCategories );
+ TQStringList::ConstIterator it( categories.begin() );
+ TQStringList::ConstIterator endIt( categories.end() );
for ( it = categories.begin(); it != endIt; ++it )
if ( !masterCategories.contains( *it ) )
newCategories.append( *it );
@@ -162,8 +162,8 @@ KABC::Addressee KABTools::mergeContacts( const KABC::Addressee::List &list )
masterAddressee.setSecrecy( (*contactIt).secrecy() );
// EMAIL
- const QStringList emails = (*contactIt).emails();
- const QStringList masterEmails = masterAddressee.emails();
+ const TQStringList emails = (*contactIt).emails();
+ const TQStringList masterEmails = masterAddressee.emails();
endIt = emails.end();
for ( it = emails.begin(); it != endIt; ++it )
if ( !masterEmails.contains( *it ) )
@@ -254,9 +254,9 @@ KABC::Addressee KABTools::mergeContacts( const KABC::Addressee::List &list )
masterAddressee.setUrl( (*contactIt).url() );
// X-
- const QStringList customs = (*contactIt).customs();
- const QStringList masterCustoms = masterAddressee.customs();
- QStringList newCustoms( masterCustoms );
+ const TQStringList customs = (*contactIt).customs();
+ const TQStringList masterCustoms = masterAddressee.customs();
+ TQStringList newCustoms( masterCustoms );
endIt = customs.end();
for ( it = customs.begin(); it != endIt; ++it )
if ( !masterCustoms.contains( *it ) )