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

kabc

  • kabc
  • vcard
testwrite.cpp
1 #include <kaboutdata.h>
2 #include <kapplication.h>
3 #include <kdebug.h>
4 #include <klocale.h>
5 #include <kcmdlineargs.h>
6 
7 #include <VCard.h>
8 
9 int main(int argc,char **argv)
10 {
11  KAboutData aboutData("testwrite",I18N_NOOP("TestWritevCard"),"0.1");
12  KCmdLineArgs::init(argc,argv,&aboutData);
13 
14  KApplication app;
15 
16  kdDebug() << "Test Write VCard" << endl;
17 
18  using namespace VCARD;
19 
20  VCard v;
21 
22  ContentLine cl1;
23  cl1.setName(EntityTypeToParamName(EntityName));
24  cl1.setValue(new TextValue("Hans Wurst"));
25  v.add(cl1);
26 
27  ContentLine cl2;
28  cl2.setName(EntityTypeToParamName(EntityTelephone));
29  cl2.setValue(new TelValue("12345"));
30  ParamList p;
31  p.append( new TelParam("home") );
32  p.append( new TelParam("fax") );
33  cl2.setParamList( p );
34  v.add(cl2);
35 
36  TQCString str = v.asString();
37 
38  kdDebug() << "--- VCard begin ---" << endl
39  << str
40  << "--- VCard end ---" << endl;
41 }
KApplication
kdDebug
kdbgstream kdDebug(int area=0)
VCARD
Definition: VCardAdrParam.h:32
klocale.h
I18N_NOOP
#define I18N_NOOP(x)
KAboutData
KCmdLineArgs::init
static void init(int _argc, char **_argv, const char *_appname, const char *programName, const char *_description, const char *_version, bool noKApp=false)
endl
kndbgstream & endl(kndbgstream &s)

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.8.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |