diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kabc/vcardformatplugin.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kabc/vcardformatplugin.cpp')
-rw-r--r-- | kabc/vcardformatplugin.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
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 <qfile.h> +#include <tqfile.h> #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(); |