summaryrefslogtreecommitdiffabout
path: root/kabc/vcard/testwrite.cpp
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/vcard/testwrite.cpp
parent11edc920afe4f274c0964436633aa632c8288a40 (diff)
downloadkdepimpi-p1.zip
kdepimpi-p1.tar.gz
kdepimpi-p1.tar.bz2
initial public commit of qt4 portp1
Diffstat (limited to 'kabc/vcard/testwrite.cpp') (more/less context) (show whitespace changes)
-rw-r--r--kabc/vcard/testwrite.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/kabc/vcard/testwrite.cpp b/kabc/vcard/testwrite.cpp
index e4bbe7b..846e51a 100644
--- a/kabc/vcard/testwrite.cpp
+++ b/kabc/vcard/testwrite.cpp
@@ -1,41 +1,43 @@
#include <kaboutdata.h>
#include <kapplication.h>
#include <kdebug.h>
#include <klocale.h>
#include <kcmdlineargs.h>
#include <VCard.h>
+//Added by qt3to4:
+#include <Q3CString>
int main(int argc,char **argv)
{
KAboutData aboutData("testwrite",I18N_NOOP("TestWritevCard"),"0.1");
KCmdLineArgs::init(argc,argv,&aboutData);
KApplication app;
kdDebug() << "Test Write VCard" << endl;
using namespace VCARD;
VCard v;
ContentLine cl1;
cl1.setName(EntityTypeToParamName(EntityName));
cl1.setValue(new TextValue("Hans Wurst"));
v.add(cl1);
ContentLine cl2;
cl2.setName(EntityTypeToParamName(EntityTelephone));
cl2.setValue(new TelValue("12345"));
ParamList p;
p.append( new TelParam("home") );
p.append( new TelParam("fax") );
cl2.setParamList( p );
v.add(cl2);
- QCString str = v.asString();
+ Q3CString str = v.asString();
kdDebug() << "--- VCard begin ---" << endl
<< str
<< "--- VCard end ---" << endl;
}