summaryrefslogtreecommitdiffabout
path: root/kabc/formats
authorMichael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
committer Michael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
commita08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (side-by-side diff)
tree8ee90d686081c52e7c69b5ce946e9b1a7d690001 /kabc/formats
parent11edc920afe4f274c0964436633aa632c8288a40 (diff)
downloadkdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2
initial public commit of qt4 portp1
Diffstat (limited to 'kabc/formats') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/formats/binary/kabcformat_binaryE.pro2
-rw-r--r--kabc/formats/vcardformatplugin2.cpp20
2 files changed, 11 insertions, 11 deletions
diff --git a/kabc/formats/binary/kabcformat_binaryE.pro b/kabc/formats/binary/kabcformat_binaryE.pro
index 2d9594d..c71197e 100644
--- a/kabc/formats/binary/kabcformat_binaryE.pro
+++ b/kabc/formats/binary/kabcformat_binaryE.pro
@@ -8,7 +8,7 @@ INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../qtcomp
OBJECTS_DIR = obj/$(PLATFORM)
MOC_DIR = moc
DESTDIR = $(QPEDIR)/lib
-LIBS += -lmicrokde -lmicrokabc
+LIBS += -lxmicrokde -lxmicrokabc
LIBS += -L$(QPEDIR)/lib
DEFINES += KAB_EMBEDDED
diff --git a/kabc/formats/vcardformatplugin2.cpp b/kabc/formats/vcardformatplugin2.cpp
index 41b0c9a..fbebe92 100644
--- a/kabc/formats/vcardformatplugin2.cpp
+++ b/kabc/formats/vcardformatplugin2.cpp
@@ -11,7 +11,7 @@ $Id$
#include "addressee.h"
#include "vcardparser/vcardtool.h"
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qfile.h>
using namespace KABC;
@@ -37,8 +37,8 @@ bool VCardFormatPlugin2::load( Addressee &addressee, QFile *file )
qDebug("VCardFormatPlugin2::load");
QString data;
- QTextStream t( file );
- t.setEncoding( QTextStream::UnicodeUTF8 );
+ Q3TextStream t( file );
+ t.setEncoding( Q3TextStream::UnicodeUTF8 );
data = t.read();
VCardTool tool;
@@ -58,8 +58,8 @@ bool VCardFormatPlugin2::loadAll( AddressBook *addressBook, Resource *resource,
qDebug("VCardFormatPlugin2::loadAll");
QString data;
- QTextStream t( file );
- t.setEncoding( QTextStream::UnicodeUTF8 );
+ Q3TextStream t( file );
+ t.setEncoding( Q3TextStream::UnicodeUTF8 );
data = t.read();
VCardTool tool;
@@ -86,8 +86,8 @@ void VCardFormatPlugin2::save( const Addressee &addressee, QFile *file )
vcardlist.append( addressee );
- QTextStream t( file );
- t.setEncoding( QTextStream::UnicodeUTF8 );
+ Q3TextStream t( file );
+ t.setEncoding( Q3TextStream::UnicodeUTF8 );
t << tool.createVCards( vcardlist );
}
@@ -105,8 +105,8 @@ void VCardFormatPlugin2::saveAll( AddressBook *ab, Resource *resource, QFile *fi
}
}
- QTextStream t( file );
- t.setEncoding( QTextStream::UnicodeUTF8 );
+ Q3TextStream t( file );
+ t.setEncoding( Q3TextStream::UnicodeUTF8 );
t << tool.createVCards( vcardlist );
}
@@ -114,7 +114,7 @@ bool VCardFormatPlugin2::checkFormat( QFile *file ) const
{
QString line;
- file->readLine( line, 1024 );
+ char tmp[1024]; file->readLine( tmp, 1024 ); line = tmp;
line = line.stripWhiteSpace();
if ( line == "BEGIN:VCARD" )
return true;