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

tdeabc

  • tdeabc
  • vcard
vcard/testwrite.cpp
1#include <tdeaboutdata.h>
2#include <tdeapplication.h>
3#include <kdebug.h>
4#include <tdelocale.h>
5#include <tdecmdlineargs.h>
6
7#include <VCard.h>
8
9int main(int argc,char **argv)
10{
11 TDEAboutData aboutData("testwrite",I18N_NOOP("TestWritevCard"),"0.1");
12 TDECmdLineArgs::init(argc,argv,&aboutData);
13
14 TDEApplication 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}
TDEAboutData
TDEApplication
TDECmdLineArgs::init
static void init(int _argc, char **_argv, const char *_appname, const char *programName, const char *_description, const char *_version, bool noTDEApp=false)
I18N_NOOP
#define I18N_NOOP(x)
endl
kndbgstream & endl(kndbgstream &s)
kdDebug
kdbgstream kdDebug(int area=0)
tdelocale.h

tdeabc

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

tdeabc

Skip menu "tdeabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeabc by doxygen 1.9.4
This website is maintained by Timothy Pearson.