summaryrefslogtreecommitdiffstats
path: root/kaddressbook/kabtools.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kaddressbook/kabtools.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 ) )