1 #include <vcardparser.h>
2 #include <kabc/addressee.h>
12 addr.setName(
"Frank Dawson" );
13 addr.setOrganization(
"Lotus Development Corporation" );
14 addr.setUrl(
KURL(
"http://home.earthlink.net/~fdawson") );
18 |PhoneNumber::Work ) );
20 Address a( Address::Work | Address::Postal | Address::Parcel );
21 a.setStreet(
"6544 Battleford Drive" );
22 a.setLocality(
"Raleigh" );
24 a.setPostalCode(
"27613-3502" );
25 a.setCountry(
"U.S.A." );
35 addr.setName(
"Tim Howes" );
36 addr.setOrganization(
"Netscape Communications Corp." );
39 |PhoneNumber::Work) );
42 a.setStreet(
"501 E. Middlefield Rd." );
43 a.setLocality(
"Mountain View" );
45 a.setPostalCode(
"94043" );
46 a.setCountry(
"U.S.A." );
56 addr.setName(
"ian geiser" );
57 addr.setOrganization(
"Source eXtreme" );
59 addr.setTitle(
"VP of Engineering" );
65 vcardAsText(
const TQString& location )
68 TQFile file( location );
69 if ( file.open( IO_ReadOnly ) ) {
70 TQTextStream stream( &file );
71 if ( !stream.eof() ) {
80 vCardsAsAddresseeList()
94 TQString vcards = vcardAsText(
"tests/vcard1.vcf" );
95 vcards += vcardAsText(
"tests/vcard2.vcf" );
96 vcards += vcardAsText(
"tests/vcard3.vcf" );