From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kabc/vcardformatplugin.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'kabc/vcardformatplugin.cpp') diff --git a/kabc/vcardformatplugin.cpp b/kabc/vcardformatplugin.cpp index 6725e3b65..6194cd0fe 100644 --- a/kabc/vcardformatplugin.cpp +++ b/kabc/vcardformatplugin.cpp @@ -18,7 +18,7 @@ Boston, MA 02110-1301, USA. */ -#include +#include #include "address.h" #include "addressee.h" @@ -36,12 +36,12 @@ VCardFormatPlugin::~VCardFormatPlugin() { } -bool VCardFormatPlugin::load( Addressee &addressee, QFile *file ) +bool VCardFormatPlugin::load( Addressee &addressee, TQFile *file ) { - QString data; + TQString data; - QTextStream t( file ); - t.setEncoding( QTextStream::Latin1 ); + TQTextStream t( file ); + t.setEncoding( TQTextStream::Latin1 ); data = t.read(); VCardConverter converter; @@ -55,12 +55,12 @@ bool VCardFormatPlugin::load( Addressee &addressee, QFile *file ) return false; } -bool VCardFormatPlugin::loadAll( AddressBook*, Resource *resource, QFile *file ) +bool VCardFormatPlugin::loadAll( AddressBook*, Resource *resource, TQFile *file ) { - QString data; + TQString data; - QTextStream t( file ); - t.setEncoding( QTextStream::Latin1 ); + TQTextStream t( file ); + t.setEncoding( TQTextStream::Latin1 ); data = t.read(); VCardConverter converter; @@ -78,7 +78,7 @@ bool VCardFormatPlugin::loadAll( AddressBook*, Resource *resource, QFile *file ) return true; } -void VCardFormatPlugin::save( const Addressee &addressee, QFile *file ) +void VCardFormatPlugin::save( const Addressee &addressee, TQFile *file ) { VCardConverter converter ; Addressee::List vcardlist; @@ -86,12 +86,12 @@ void VCardFormatPlugin::save( const Addressee &addressee, QFile *file ) vcardlist.append( addressee ); - QTextStream t( file ); - t.setEncoding( QTextStream::UnicodeUTF8 ); + TQTextStream t( file ); + t.setEncoding( TQTextStream::UnicodeUTF8 ); t << converter.createVCards( vcardlist ); } -void VCardFormatPlugin::saveAll( AddressBook*, Resource *resource, QFile *file ) +void VCardFormatPlugin::saveAll( AddressBook*, Resource *resource, TQFile *file ) { VCardConverter converter; Addressee::List vcardlist; @@ -102,14 +102,14 @@ void VCardFormatPlugin::saveAll( AddressBook*, Resource *resource, QFile *file ) vcardlist.append( *it ); } - QTextStream t( file ); - t.setEncoding( QTextStream::UnicodeUTF8 ); + TQTextStream t( file ); + t.setEncoding( TQTextStream::UnicodeUTF8 ); t << converter.createVCards( vcardlist ); } -bool VCardFormatPlugin::checkFormat( QFile *file ) const +bool VCardFormatPlugin::checkFormat( TQFile *file ) const { - QString line; + TQString line; file->readLine( line, 1024 ); line = line.stripWhiteSpace(); -- cgit v1.2.1