• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kabc
 

kabc

testwrite.cpp
00001 #include <kaboutdata.h>
00002 #include <kapplication.h>
00003 #include <kdebug.h>
00004 #include <klocale.h>
00005 #include <kcmdlineargs.h>
00006 
00007 #include <VCard.h>
00008 
00009 int main(int argc,char **argv)
00010 {
00011   KAboutData aboutData("testwrite",I18N_NOOP("TestWritevCard"),"0.1");
00012   KCmdLineArgs::init(argc,argv,&aboutData);
00013 
00014   KApplication app;
00015   
00016   kdDebug() << "Test Write VCard" << endl;
00017 
00018   using namespace VCARD;
00019   
00020   VCard v;
00021 
00022   ContentLine cl1;
00023   cl1.setName(EntityTypeToParamName(EntityName));
00024   cl1.setValue(new TextValue("Hans Wurst"));
00025   v.add(cl1);
00026 
00027   ContentLine cl2;
00028   cl2.setName(EntityTypeToParamName(EntityTelephone));
00029   cl2.setValue(new TelValue("12345"));
00030   ParamList p;
00031   p.append( new TelParam("home") );
00032   p.append( new TelParam("fax") );
00033   cl2.setParamList( p );
00034   v.add(cl2);
00035 
00036   TQCString str = v.asString();
00037 
00038   kdDebug() << "--- VCard begin ---" << endl
00039             << str
00040             << "--- VCard  end  ---" << endl;
00041 }

kabc

Skip menu "kabc"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kabc

Skip menu "kabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kabc by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |